Giter Site home page Giter Site logo

cute-css's Introduction

#cute-css

一套可爱、简单的CSS解决方案

##全局规范

  1. 请用utf-8文件编码;

##命名

  1. 涉及到单词组合,请用中划线“-”
  2. ,不要用style.css,global-nav要有意义;
  3. reset.css里只写reset,global-nav.css里只写项目CSS
  4. 因为id有唯一性,不够灵活,所以请用class
  5. 请用BEM写法:block__element,block__element--modifier。单词间请用“-”连接
  6. CSS每个属性请回车换行,不鼓励并排写法
  7. 属性请按照显示属性、自身属性、文本属性和其他的顺序书写
  8. 私有属性在前,W3C标准在后
  9. 请不要写hack来兼容某一个浏览器
  10. 如果可以用css做到,请不要麻烦js
  11. 尽量操作className来操作交互效果
  12. 每个css文件抬头必须有注释,后面修改的人必须加上自己的注释
  13. 除了注释外,CSS里不要出现中文
  14. 不要用引号,必须要用的时候,请用单引号

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.