Last active
August 29, 2015 14:14
-
-
Save dongliu/ba9e635da7e1570b6f22 to your computer and use it in GitHub Desktop.
bootstrap progress bar with markers and labels
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
mixin progress(id) | |
.bar-wrap | |
.progress.no-extra-space(id=id) | |
.progress-marker(style='right:25%') | |
.progress-marker(style='right:50%') | |
.progress-marker(style='right:75%') | |
mixin time-axis | |
.time-axis | |
.time-spot-end now | |
.time-spot.text-center 6 hours ago | |
.time-spot.text-center 12 hours ago | |
.time-spot.text-center 18 hours ago | |
.time-spot-end.text-right 24 hours ago | |
.row | |
+progress('my_status') | |
.row | |
+time-axis |
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
.bar-wrap { | |
position: relative; | |
} | |
.progress-marker { | |
width: 2px; | |
height: 10px; | |
position: absolute; | |
background: black; | |
bottom: -5px; | |
} | |
.time-axis { | |
display: block; | |
float: left; | |
width: 100%; | |
/*margin: 0px 0 10px 0;*/ | |
} | |
.time-spot { | |
display: block; | |
float: left; | |
width: 25%; | |
} | |
.time-spot-end { | |
display: block; | |
float: left; | |
width: 12.5%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment