Sass style guide
来源:互联网 发布:检测fps的软件 编辑:程序博客网 时间:2024/06/11 19:17
Syntax
- Use the
.scss
syntax, not original.sass
indention syntax - Order the regular CSS and
@include
declarations logically
Features
- Prefer dash-cased variable names (e.g.
$my-variable
) over camelCase or snake_case variable names. - Mixins should apply DRY (Don’t Repeat Yourself). Code with Mixins is as to program with functions. Encapsulation is also a powerful tool here. But pay attention to the styles compiled from mixins because there may be extra codes or conflict styles, which you should avoid
- Extend directive should be avoided, since it bring potential dangers. Mixins completely provide the function you want from extend
- Nested selector gives you the feeling that CSS styles are aligned to html template structure though, you Should Never nest selectors more that three levels. Nested selector make your style tightly couple and unreusable.
阅读全文
0 0
- Sass style guide
- Style Guide
- FW: C++ Style Guide : C++ Style Guide
- C# Coding Style Guide
- C# Coding Style Guide
- C# Coding Style Guide
- Mozilla Coding Style Guide
- C# Coding Style Guide
- X.509 Style Guide
- Dojo Style Guide(存照)
- C++ Style Guide
- Google C++ Style Guide
- Google C++ Style Guide
- Google C++ style guide
- Dojo Style Guide
- Google c++ style guide
- C++ Style Guide
- Google C++ Style Guide
- web四大内置对象及转发重定向的基本区别
- gdb
- Entity Framework Code First关系映射约定
- Android 进程保活系列:(一)利用 Activity 提升权限
- Android中16进制颜色大全
- Sass style guide
- python按行写入到文件 另存为文件
- 基类和派生类的构造函数,隐式调用与显式调用
- 控件缩写
- Spring Boot实战之Spring基础配置
- saltstack
- 十、提升state
- C++中的mutable和volatile关键字
- TCP协议报文段首部的控制位中URG与PSH的比较