No Description

progress-bars.less 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // stylelint-disable at-rule-no-vendor-prefix
  2. //
  3. // Progress bars
  4. // --------------------------------------------------
  5. // Bar animations
  6. // -------------------------
  7. // WebKit
  8. @-webkit-keyframes progress-bar-stripes {
  9. from { background-position: 40px 0; }
  10. to { background-position: 0 0; }
  11. }
  12. // Spec and IE10+
  13. @keyframes progress-bar-stripes {
  14. from { background-position: 40px 0; }
  15. to { background-position: 0 0; }
  16. }
  17. // Bar itself
  18. // -------------------------
  19. // Outer container
  20. .progress {
  21. height: @line-height-computed;
  22. margin-bottom: @line-height-computed;
  23. overflow: hidden;
  24. background-color: @progress-bg;
  25. border-radius: @progress-border-radius;
  26. .box-shadow(inset 0 1px 2px rgba(0, 0, 0, .1));
  27. }
  28. // Bar of progress
  29. .progress-bar {
  30. float: left;
  31. width: 0%;
  32. height: 100%;
  33. font-size: @font-size-small;
  34. line-height: @line-height-computed;
  35. color: @progress-bar-color;
  36. text-align: center;
  37. background-color: @progress-bar-bg;
  38. .box-shadow(inset 0 -1px 0 rgba(0, 0, 0, .15));
  39. .transition(width .6s ease);
  40. }
  41. // Striped bars
  42. //
  43. // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
  44. // `.progress-bar-striped` class, which you just add to an existing
  45. // `.progress-bar`.
  46. .progress-striped .progress-bar,
  47. .progress-bar-striped {
  48. #gradient > .striped();
  49. background-size: 40px 40px;
  50. }
  51. // Call animation for the active one
  52. //
  53. // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
  54. // `.progress-bar.active` approach.
  55. .progress.active .progress-bar,
  56. .progress-bar.active {
  57. .animation(progress-bar-stripes 2s linear infinite);
  58. }
  59. // Variations
  60. // -------------------------
  61. .progress-bar-success {
  62. .progress-bar-variant(@progress-bar-success-bg);
  63. }
  64. .progress-bar-info {
  65. .progress-bar-variant(@progress-bar-info-bg);
  66. }
  67. .progress-bar-warning {
  68. .progress-bar-variant(@progress-bar-warning-bg);
  69. }
  70. .progress-bar-danger {
  71. .progress-bar-variant(@progress-bar-danger-bg);
  72. }