Created
January 23, 2017 16:57
-
-
Save mtetlow/24c79407db9510a78957694c493443b6 to your computer and use it in GitHub Desktop.
css progress bar indicator
This file contains hidden or 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
<div class="progress-bar--container"> | |
<div class="{!(v.projectCompletionPercentage == 0) ? 'progress-bar--bar progress-bar--zerowidthbar' : 'progress-bar--bar'}" style="{!'width: '+v.projectCompletionPercentage+'%'}"> | |
<span class="progress-bar--pct-complete-label">{!v.projectCompletionPercentage+'%'}</span> | |
</div> | |
</div> |
This file contains hidden or 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 .progress-bar--container{ | |
width: 100%; | |
border-radius:4px; | |
height:20px; | |
background-color:#cfd5df; | |
} | |
.THIS .progress-bar--bar{ | |
background-color: #44a2b8; | |
border-radius:4px; | |
height:20px; | |
text-align:center; | |
} | |
.THIS .progress-bar--zerowidthbar{ | |
background-color: transparent !important; | |
width: 100% !important; | |
} | |
.THIS .progress-bar--pct-complete-label{ | |
color:white; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment