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

scss #11

Open
wangbinyq opened this issue Oct 14, 2016 · 0 comments
Open

scss #11

wangbinyq opened this issue Oct 14, 2016 · 0 comments
Labels

Comments

@wangbinyq
Copy link
Owner

sass/scss 指南

why scss ?

chrome live sass

变量

变量以 $ 开头.

嵌套

分部文件, @import

以下划线 _ 开头的文件可以作为分部文件, 通过 @import 导入, 在 scss 编译时会像 c++ 预处理 #include 在进行文件合并. (以减少普通 css @import 造成的 http 请求)

@minixs, @include

@minixsscss 中代码复用的方法, 通过 @include 复用.

@extend

@extend 也可以复用代码, 它复用的是 css 选择器

运算符

scss 支持基本的算术操作符 +, - *, /, % 等.

@wangbinyq wangbinyq added the note label Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant