Browse files

clean a bit the code and take out color as a var

  • Loading branch information...
1 parent a117277 commit 0734f3d0ad92d18a503e3fef3d8395938a5e14e7 @dciccale committed Dec 10, 2012
Showing with 8 additions and 7 deletions.
  1. +8 −7 css3-github-ribbon.styl
View
15 css3-github-ribbon.styl
@@ -1,15 +1,16 @@
@import mixins
-// ribbon options
-$ribbon-color = #121621
-$ribbon-position = 'top-right' // top-left
+//options
+$background-color = #121621
+$color = rgba(255, 255, 255, 0.9)
+$position = 'top-right'
// ribbon
.github-ribbon
- background-color $ribbon-color
- ribbon-position $ribbon-position
- box-shadow 0 0 0px 1px lighten(desaturate($ribbon-color, 20%), 5%) inset, 0 0 2px 1px white inset, 0 0 1em #888
- color rgba(255, 255, 255, 0.9)
+ background-color $background-color
+ ribbon-position $position
+ box-shadow 0 0 0px 1px lighten(desaturate($background-color, 20%), 5%) inset, 0 0 2px 1px white inset, 0 0 1em #888
+ color $color
display block
padding 0.6em 3.5em
position fixed

0 comments on commit 0734f3d

Please sign in to comment.