Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass / SCSS 預處理器 - Variables 變數宣告與取用方式 | Roya's Blog #63

Open
awdr74100 opened this issue May 26, 2020 · 0 comments

Comments

@awdr74100
Copy link
Owner

https://awdr74100.github.io/2020-05-25-scss-variables/

先前我們就有提到 Sass / SCSS 真正意義上的將樣式表變為了一門程式語言,即 SassScript,而身為程式語言,想當然就會有所謂的變數可以使用,這也是我跳坑的其中一個原因,你能想像樣式表居然能夠使用變數做撰寫嗎?這指的變數與其他語言差不多,同樣有分為字串、陣列、物件等型態可做使用,大幅提高了代碼的重用性,以後如有更改的需求,也只需針對變數做處理即可,改善傳統樣式表不易維護問題。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant