bootstrap-progressbar-3.0.1.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /*! bootstrap-progressbar v0.9.0 | Copyright (c) 2012-2015 Stephan Groß | MIT license | http://www.minddust.com */
  2. @-webkit-keyframes progress-bar-stripes {
  3. from {
  4. background-position: 40px 0;
  5. }
  6. to {
  7. background-position: 0 0;
  8. }
  9. }
  10. @-moz-keyframes progress-bar-stripes {
  11. from {
  12. background-position: 40px 0;
  13. }
  14. to {
  15. background-position: 0 0;
  16. }
  17. }
  18. @-o-keyframes progress-bar-stripes {
  19. from {
  20. background-position: 0 0;
  21. }
  22. to {
  23. background-position: 40px 0;
  24. }
  25. }
  26. @keyframes progress-bar-stripes {
  27. from {
  28. background-position: 40px 0;
  29. }
  30. to {
  31. background-position: 0 0;
  32. }
  33. }
  34. .progress {
  35. overflow: hidden;
  36. height: 20px;
  37. margin-bottom: 20px;
  38. background-color: #f5f5f5;
  39. border-radius: 4px;
  40. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  41. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  42. }
  43. .progress-bar {
  44. float: left;
  45. width: 0%;
  46. height: 100%;
  47. font-size: 12px;
  48. line-height: 20px;
  49. color: #ffffff;
  50. text-align: center;
  51. background-color: #428bca;
  52. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  53. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  54. -webkit-transition: width 0.6s ease;
  55. transition: width 0.6s ease;
  56. }
  57. .progress-striped .progress-bar {
  58. background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
  59. background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  60. background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  61. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  62. background-size: 40px 40px;
  63. }
  64. .progress.active .progress-bar {
  65. -webkit-animation: progress-bar-stripes 2s linear infinite;
  66. animation: progress-bar-stripes 2s linear infinite;
  67. }
  68. .progress-bar-success {
  69. background-color: #5cb85c;
  70. }
  71. .progress-striped .progress-bar-success {
  72. background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
  73. background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  74. background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  75. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  76. }
  77. .progress-bar-info {
  78. background-color: #5bc0de;
  79. }
  80. .progress-striped .progress-bar-info {
  81. background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
  82. background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  83. background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  84. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  85. }
  86. .progress-bar-warning {
  87. background-color: #f0ad4e;
  88. }
  89. .progress-striped .progress-bar-warning {
  90. background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
  91. background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  92. background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  93. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  94. }
  95. .progress-bar-danger {
  96. background-color: #d9534f;
  97. }
  98. .progress-striped .progress-bar-danger {
  99. background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
  100. background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  101. background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  102. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  103. }
  104. .progress {
  105. position: relative;
  106. }
  107. .progress .progress-bar {
  108. position: absolute;
  109. overflow: hidden;
  110. line-height: 20px;
  111. }
  112. .progress .progressbar-back-text {
  113. position: absolute;
  114. width: 100%;
  115. height: 100%;
  116. font-size: 12px;
  117. line-height: 20px;
  118. text-align: center;
  119. }
  120. .progress .progressbar-front-text {
  121. display: block;
  122. width: 100%;
  123. font-size: 12px;
  124. line-height: 20px;
  125. text-align: center;
  126. }
  127. .progress.right .progress-bar {
  128. right: 0;
  129. }
  130. .progress.right .progressbar-front-text {
  131. position: absolute;
  132. right: 0;
  133. }
  134. .progress.vertical {
  135. width: 20px;
  136. height: 100%;
  137. float: left;
  138. margin-right: 20px;
  139. }
  140. .progress.vertical.bottom {
  141. position: relative;
  142. }
  143. .progress.vertical.bottom .progressbar-front-text {
  144. position: absolute;
  145. bottom: 0;
  146. }
  147. .progress.vertical .progress-bar {
  148. width: 100%;
  149. height: 0;
  150. -webkit-transition: height 0.6s ease;
  151. transition: height 0.6s ease;
  152. }
  153. .progress.vertical.bottom .progress-bar {
  154. position: absolute;
  155. bottom: 0;
  156. }