Skip to content

Instantly share code, notes, and snippets.

@vietnt
Created June 24, 2011 19:13
Show Gist options
  • Save vietnt/1045452 to your computer and use it in GitHub Desktop.
Save vietnt/1045452 to your computer and use it in GitHub Desktop.
// inspired by stylus: http://learnboost.github.com/stylus/
// constant
transparent = 0.8
fonts = Segoe UI, Arial
// function
border-radius()
-moz-border-radius arguments
-webkit-border-radius arguments
border-radius arguments
// function with named-argument
opacity(x)
filter opacity(x*100)
opacity x
// ?
'property' rgba(r, g, b, a)
property rgb(r, g, b)
property rgba(r, g, b, a)
#profile
background-color rgba(0,0,0,transparent) // -> background-color: rgb(0,0,0); background-color:rgba(0,0,0,0.8);
border-radius 3px 3px 0px 0px
#chat-box
opacity 0.8 // #chat-box { filter: opacity(80); opacity: 0.8; }
a
color black
:hover
color green
div.button
height 20px
:hover
height +10px //height: 30px;
margin-top -5px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment