| 1 |
/* ProgressBar |
| 2 |
* |
| 3 |
* Styling of the ProgressBar consists of the following: |
| 4 |
* |
| 5 |
* 1. the base progress bar |
| 6 |
* .dijitProgressBar - sets margins for the progress bar |
| 7 |
* |
| 8 |
* 2. the empty bar |
| 9 |
* .dijitProgressBarEmpty - sets background img and color for bar or parts of bar that are not finished yet |
| 10 |
* Also sets border color for whole bar |
| 11 |
* |
| 12 |
* 3. tile mode |
| 13 |
* .dijitProgressBarTile |
| 14 |
* inner container for finished portion when in 'tile' (image) mode |
| 15 |
* |
| 16 |
* 4. full bar mode |
| 17 |
* .dijitProgressBarFull |
| 18 |
* adds border to right side of the filled portion of bar |
| 19 |
* |
| 20 |
* 5. text for label of bar |
| 21 |
* .dijitProgressBarLabel - sets text color, which must contrast with both the "Empty" and "Full" parts. |
| 22 |
* |
| 23 |
* 6. indeterminate mode |
| 24 |
* .dijitProgressBarIndeterminate .dijitProgressBarTile |
| 25 |
* sets animated gif for the progress bar in 'indeterminate' mode |
| 26 |
*/ |
| 27 |
|
| 28 |
@import 'dijit_variables'; |
| 29 |
|
| 30 |
.{$theme-name} { |
| 31 |
|
| 32 |
.dijitProgressBar { |
| 33 |
background-color: $progress-bar-empty-color; |
| 34 |
border: 0 none; |
| 35 |
border-radius: $progress-bar-border-radius; |
| 36 |
} |
| 37 |
|
| 38 |
.dijitProgressBarTile { |
| 39 |
background: url($progress-bar-strips-image-url) repeat-x top; |
| 40 |
animation: progress-bar-stripes 2s linear infinite; |
| 41 |
} |
| 42 |
|
| 43 |
.dijitProgressBarFull { |
| 44 |
_progress-bar-color-properties($progress-bar-color); |
| 45 |
transition-property: width; |
| 46 |
transition-duration: .25s; |
| 47 |
height: 100%; |
| 48 |
} |
| 49 |
|
| 50 |
// alternative colors |
| 51 |
for class in $progress-bar-alternative-colors { |
| 52 |
.dijitProgressBar.{class} .dijitProgressBarFull { |
| 53 |
_progress-bar-color-properties($progress-bar-alternative-colors[class]); |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
.dijitProgressBarLabel { |
| 58 |
margin-top: 0.2em; |
| 59 |
margin-bottom: 0.2em; |
| 60 |
color: $progress-bar-text-color; |
| 61 |
font-size: $progress-bar-font-size; |
| 62 |
text-shadow: $progress-bar-text-shadow; |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
// animation |
| 67 |
@keyframes progress-bar-stripes { |
| 68 |
from { background-position: 75px 0; } |
| 69 |
to { background-position: 0 0; } |
| 70 |
} |