Permalink
Browse files

Update to Sass 3

  • Loading branch information...
1 parent 9caae72 commit 17f78900f01a8dc7427556de0f0413045d2ce4d6 @wycats wycats committed Mar 31, 2010
Showing with 21 additions and 21 deletions.
  1. +21 −21 src/stylesheets/application.sass
View
42 src/stylesheets/application.sass
@@ -4,23 +4,23 @@
@import compass/css3/border_radius.sass
@import compass/css3/box_sizing.sass
-=flexbox(!direction, !align="center")
+=flexbox($direction, $align: center)
display: -webkit-box
display: -moz-box
- -webkit-box-orient= !direction
- -moz-box-orient= !direction
- -webkit-box-align= !align
- -moz-box-align= !align
+ -webkit-box-orient: $direction
+ -moz-box-orient: $direction
+ -webkit-box-align: $align
+ -moz-box-align: $align
-=distribute-children(!distribute)
- -webkit-box-pack= !distribute
- -moz-box-pack= !distribute
+=distribute-children($distribute)
+ -webkit-box-pack: $distribute
+ -moz-box-pack: $distribute
-=liquid(!size = 1)
- -webkit-box-flex= !size
- -moz-box-flex= !size
+=liquid($size: 1)
+ -webkit-box-flex: $size
+ -moz-box-flex: $size
-!width = 850px
+$width: 850px
html
width: 100%
@@ -31,11 +31,11 @@ img
border: 0
#body
- +flexbox("vertical", "center")
+ +flexbox(vertical, center)
width: 100%
#contents
- +flexbox("vertical", "justify")
+ +flexbox(vertical, justify)
#header
h1
@@ -49,12 +49,12 @@ img
background-color: #bcc
width: 100%
margin-top: 30px
- +box-sizing("border-box")
- +flexbox("horizontal", "center")
- +distribute-children("justify")
+ +box-sizing(border-box)
+ +flexbox(horizontal, center)
+ +distribute-children(justify)
img:first-child
- +box-shadow("blue", 0, 0, 5px)
+ +box-shadow(blue, 0, 0, 5px)
.spacer
+liquid
@@ -71,7 +71,7 @@ img
color: #699
.contents
- width= !width
+ width: $width
h2
padding: 5px
@@ -83,7 +83,7 @@ h2
.bullet
width: 100%
- +flexbox("horizontal", "start")
+ +flexbox(horizontal, start)
padding: 10px
.description
@@ -103,7 +103,7 @@ h2
text-align: center
.how
- +flexbox("vertical", "justify")
+ +flexbox(vertical, justify)
+liquid
.notes
margin-top: 10px

0 comments on commit 17f7890

Please sign in to comment.