Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Baidu Map Web App Front-end Sty...

Hongru Hou
February 20, 2014

Introduction to Baidu Map Web App Front-end Style Guide

Hongru Hou

February 20, 2014
Tweet

More Decks by Hongru Hou

Other Decks in Technology

Transcript

  1. Contents What is Front-end style guide? How did our SG

    born? What dose it include? How to use it? How to maintain it? Further thinking
  2. –Anna Debenham “Front-end style guides […] to make maintaining a

    site easier […] built specifically for the web […] uses real code and works in the browser […] living documentation and grows organically with a site throughout its lifetime.” £2.00
  3. Results of the battle Before After % Background bg-color 11

    7 -36.7% opacity 5 2 -60% Font font-family 2 1 -50% font-size 8 4 -50% color 29 7 -75.9%
  4. Style tile #FFFFFF #F9F9F9 #F2F2F2 #EAEAEA #6BB1F7 #000000 Мࣟ࿾೤ #FFFFFF

    #CFCFCF #848484 #555555 #6BB1F7 #3b3b3b ሳุ࿾೤ Мࣟ࿾೤๩ૼ؇ 0.8 0.8 ሳุնཬ 24pt 28pt 30pt 32pt Mac:  PC:  ሳุဢൔ шॿ #D4D4D4  1px #F6F6F6  1px
  5. Hand in hand with Sass Variables Nesting Partials (@import) Mixins

    (@include) Inheritance (@extend) Control Directives (e.g. @for)
  6. –Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification

    “In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit.”
  7. Q&A