Created
October 25, 2012 18:40
-
-
Save ColemanCollins/3954579 to your computer and use it in GitHub Desktop.
Extra Progress Bar Haml and CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this is the haml structure—make sure you replace COUNTER VARIABLE with the actual variable. | |
#progress.gray | |
#progress-outer | |
#progress-inner{style: "height: 100%; width: #{ (5) + ((COUNTER VARIABLE / 200) * 95) }% ;"} | |
.count= COUNTER VARIABLE | |
.goalcount="2,000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//matching CSS, to go at the bottom of the current css file. You can re-namespace and recolor as you see fit, just make sure that .gray class matches the haml. | |
.gray #progress-inner, .gray #progress-inner::before, .gray #progress-inner::after{ | |
background:#333; | |
} | |
.gray .goalcount { | |
color:#333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment