Skip to content

Instantly share code, notes, and snippets.

@mtetlow
Created January 23, 2017 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtetlow/24c79407db9510a78957694c493443b6 to your computer and use it in GitHub Desktop.
Save mtetlow/24c79407db9510a78957694c493443b6 to your computer and use it in GitHub Desktop.
css progress bar indicator
<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 .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