Skip to content

Instantly share code, notes, and snippets.

@davejlong
Created February 1, 2011 01:54
Show Gist options
  • Save davejlong/805265 to your computer and use it in GitHub Desktop.
Save davejlong/805265 to your computer and use it in GitHub Desktop.
A few demos of Stylus, a robust CSS solution on Node.js
width = 960px
div.wrapper
width width
div.wrapper
div.left
width width - 10
margin width - width - 5
float left
div.wrapper
div.right
width width - 10
margin width - width - 5
float right
#btn_pretty{
-moz-border-radius: 4px;-webkit-border-radius: 4px;border-radius: 4px;
-moz-box-shadow: 0px 0px 4px #000;-webkit-box-shadow: 0px 0px 4px #000;box-shadow: 0px 0px 4px #000;
border:none;
background-color:#E7AF00;
padding:5px;
display:inline-block;
text-decoration:none;
color:#Fff;
text-shadow: 1px 1px 1px #2e2e2e;
filter: dropshadow(color=#2e2e2e, offx=1, offy=1);
font-size:150%;
vertical-align:middle;
}
#btn_pretty:hover{
-webkit-box-shadow: 0px 0px 0px ;
-moz-box-shadow: 0px 0px 0px ;
box-shadow: 0px 0px 0px;
}
#btn_pretty
-moz-border-radius 4px
-webkit-border-radius 4px
border-radius 4px
-moz-box-shadow 0px 0px 4px #000
-webkit-box-shadow 0px 0px 4px #000
box-shadow 0px 0px 4px #000
border none
background-color #E7AF00
padding 5px
display inline-block
text-decoration none
color #Fff
text-shadow 1px 1px 1px #2e2e2e
filter dropshadow(color=#2e2e2e, offx=1, offy=1)
font-size 150%
vertical-align middle
#btn_pretty:hover
-webkit-box-shadow 0px 0px 0px
-moz-box-shadow 0px 0px 0px
box-shadow 0px 0px 0px
border-radius(n)
-moz-border-radius n
border-radius n
form input.text
border-radius 5px
a.button
input[type=button]
border 1px solid #eee
padding 5px
ul.nav#primary
li
a
background:url('../images/nav-bkg.png') #FF0000
font-family:'American Typewriter',Times, serif
size = 14px
body
font size Arial, sans-serif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment