CSS style guide
来源:互联网 发布:广电网络的未来前景 编辑:程序博客网 时间:2024/05/21 11:03
Formatting
- Use soft tabs (2 spaces) for indentation
- Prefer dashes over camelCasing in class names
- Do not use ID selectors
- When using multiple selectors in a rule declaration, give each selector its own line
- Put a space before the opening brace { in rule declarations
- In properties, put a space after, but not before, the : character
- Put closing braces } of rule declarations on a new line
- Put blank lines between rule declarations
Comment
- Prefer line comments (// in Sass-land) to block comments.
- Prefer comments on their own line. Avoid end-of-line comments.
- Write detailed comments for code that isn’t self-documenting:
- Uses of z-index
- Compatibility or browser-specific hacks
Order
- Positioning properties
- Display properties
- Box properties
- Content properties (including background)
- Pseudo properties
阅读全文
0 0
- CSS style guide
- Google HTML/CSS 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
- Android实现高斯模糊效果(已做成依赖库很方便)
- 宗地权属图生成的解决方案设计
- 非数组对象借用数组方法/《设计模式与开发实践》p52例子的扩展笔记
- fragment 与viewpager预加载的解决 懒加载
- 命令指示符操作
- CSS style guide
- 省市二级ztree格式json数据
- Android Fragment 真正的完全解析(上)
- 项目中遇到的问题
- WCF RESTful CrossDomain 服务
- php工厂方法模式
- 工作中Linux命令整理
- BeanUtils.copyProperties的用法
- JAVA多线程下载