progressbar.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /* Progress Bar */
  2. .progress,
  3. .progress-bar,
  4. .progressbar,
  5. .progress-label,
  6. .progressbar-value,
  7. .progress-overlay {
  8. font-weight: bold;
  9. line-height: 20px;
  10. height: 20px;
  11. border-radius: 4px;
  12. }
  13. .progress,
  14. .progressbar {
  15. position: relative;
  16. text-align: center;
  17. background: rgba(0, 0, 0, .05);
  18. box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .2);
  19. }
  20. .progress-bar,
  21. .progressbar-value,
  22. .progress-overlay,
  23. .progress-label {
  24. position: absolute;
  25. z-index: 4;
  26. top: 0;
  27. left: 0;
  28. overflow: hidden;
  29. }
  30. .progress .progress-bar {
  31. position: relative !important;
  32. border-radius: 0;
  33. }
  34. .progressbar-value.ui-state-default,
  35. .progressbar-value.ui-state-default .progress-label {
  36. line-height: 18px;
  37. height: 18px;
  38. }
  39. .progress-label {
  40. z-index: 6;
  41. width: 100%;
  42. }
  43. .progress-overlay {
  44. z-index: 5;
  45. width: 100%;
  46. opacity: .15;
  47. background: url('../../images/animated-overlay.gif');
  48. filter: alpha(opacity=15);
  49. }
  50. .progressbar-small.progressbar,
  51. .progressbar-small .progress-label,
  52. .progressbar-small .progressbar-value,
  53. .progressbar-small .progress-overlay {
  54. height: 10px;
  55. }
  56. .progressbar-small .progressbar-value.ui-state-default {
  57. height: 8px;
  58. }
  59. .progressbar-smaller.progressbar,
  60. .progressbar-smaller .progress-label,
  61. .progressbar-smaller .progressbar-value,
  62. .progressbar-smaller .progress-overlay {
  63. height: 4px;
  64. }
  65. .progressbar-smaller .progressbar-value.ui-state-default {
  66. height: 2px;
  67. }
  68. .bg-black .progress-overlay,
  69. .bg-black .progress-overlay {
  70. opacity: 1;
  71. filter: alpha(opacity=100);
  72. }
  73. /* Bootstrap progressbar */
  74. @-webkit-keyframes progress-bar-stripes {
  75. from {
  76. background-position: 40px 0;
  77. }
  78. to {
  79. background-position: 0 0;
  80. }
  81. }
  82. @keyframes progress-bar-stripes {
  83. from {
  84. background-position: 40px 0;
  85. }
  86. to {
  87. background-position: 0 0;
  88. }
  89. }
  90. .progress {
  91. overflow: hidden;
  92. height: 20px;
  93. margin-bottom: 20px;
  94. border-radius: 4px;
  95. background-color: #f5f5f5;
  96. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
  97. box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
  98. }
  99. .progress-bar {
  100. font-size: 12px;
  101. line-height: 20px;
  102. float: left;
  103. width: 0;
  104. height: 100%;
  105. -webkit-transition: width .6s ease;
  106. transition: width .6s ease;
  107. text-align: center;
  108. color: #fff;
  109. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
  110. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
  111. }
  112. .progress-striped .progress-bar {
  113. background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
  114. background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
  115. background-size: 40px 40px;
  116. }
  117. .progress.active .progress-bar {
  118. -webkit-animation: progress-bar-stripes 2s linear infinite;
  119. animation: progress-bar-stripes 2s linear infinite;
  120. }