Zhengzheng ZHANG
I'm a front-end engineer and UI designer.
bodyfont-size 16px.headerheight 40px#navpadding-bottom 10px
To yield:
body {
font-size: 16px;
}
body .header {
height: 40px;
}
body .header #nav {
padding-bottom: 10px;
}
headHeight = 20%$headWidth = 1000pxbodyheight 100% - headHeightheaderwidth $headWidth*1.08
body {height: 80%;}body header { width: 1080px; }
vendors = webkit moz o ms official
border-radius()
for vendor in vendors
if vendor == official
border-radius arguments
else
-{vendor}-border-radius arguments
#content
border-radius (5px)To yield:
#content {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
-ms-border-radius: 5px;
border-radius: 5px;
}
clearfix(el, other)
{el}::after
overflow hidden
other(1px,solid,lighten(red, 60%))
border(args...)
border-bottom args
clearfix('.content', border)
.content::after {
overflow: hidden;
border-bottom: 1px solid #f99;
}
red(#c00)// => 204light(#eee)// => truelightness(#e70)// => 46.66666666666%width = 960px 1080px 1280pxpush(width, 1440px, 1920px)// width => 960px 1080px 1280px 1440px 1920pxunit(15%, 'px')// => 15pxbase-convert(1811208624,36)// => tychio
@import "reset.css"
@import "reset"
@import reset
By Zhengzheng ZHANG
a simple stylus guide