ProgressBar.less 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. @import "variables";
  28. .claro .dijitProgressBar {
  29. margin:2px 0 2px 0;
  30. }
  31. .claro .dijitProgressBarEmpty {
  32. /* outer container and background of the bar that's not finished yet*/
  33. background: @progressbar-empty-background-color url(@image-progressbar-empty) no-repeat left;
  34. border-color: @progressbar-border-color;
  35. }
  36. .claro .dijitProgressBarTile {
  37. /* inner container for finished portion when in 'tile' (image) mode */
  38. background: @progressbar-full-background-color url(@image-progressbar-full) repeat-x top;
  39. }
  40. .dj_ie6 .claro .dijitProgressBarTile {
  41. background-image: none;
  42. }
  43. .claro .dijitProgressBarFull {
  44. border-right:1px solid @progressbar-border-color;
  45. .transition-property(width);
  46. .transition-duration(.25s);
  47. }
  48. .claro .dijitProgressBarLabel {
  49. /* Set to a color that contrasts with both the "Empty" and "Full" parts. */
  50. color: @progressbar-text-color;
  51. }
  52. .claro .dijitProgressBarIndeterminate .dijitProgressBarTile {
  53. /* use an animated gif for the progress bar in 'indeterminate' mode;
  54. background-color won't appear unless user has turned off background images */
  55. background: @bar-background-color url(@image-progressbar-anim) repeat-x top;
  56. }