Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created August 5, 2010 20:38
Show Gist options
  • Save chriseppstein/510337 to your computer and use it in GitHub Desktop.
Save chriseppstein/510337 to your computer and use it in GitHub Desktop.
.bar
.fill{:style => "width: #{(percent_full*100).round}%"}
$bar-fill-color: #A9C13B
.bar
border: 1px solid #666
margin-top: 0.25em
.fill
height: 1.333em
background: $bar-fill-color
+linear-gradient(color-stops($bar-fill-color, darken($bar-fill-color, 25%)))
.bar, .fill
+border-radius(3px)
@hagenburger
Copy link

I think .fill should have 2px border-radius. Currently you see a small white pixel in the corner.

@cbfrance
Copy link

cbfrance commented Aug 5, 2010

Cute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment