bootstrap-progressbar-3.0.0-rc1.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. @-ms-keyframes progress-bar-stripes {
  19. from {
  20. background-position: 40px 0;
  21. }
  22. to {
  23. background-position: 0 0;
  24. }
  25. }
  26. @-o-keyframes progress-bar-stripes {
  27. from {
  28. background-position: 0 0;
  29. }
  30. to {
  31. background-position: 40px 0;
  32. }
  33. }
  34. @keyframes progress-bar-stripes {
  35. from {
  36. background-position: 40px 0;
  37. }
  38. to {
  39. background-position: 0 0;
  40. }
  41. }
  42. .progress {
  43. overflow: hidden;
  44. height: 20px;
  45. margin-bottom: 20px;
  46. background-color: #f5f5f5;
  47. border-radius: 4px;
  48. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  49. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  50. }
  51. .progress-bar {
  52. float: left;
  53. width: 0%;
  54. height: 100%;
  55. font-size: 12px;
  56. color: #ffffff;
  57. text-align: center;
  58. background-color: #428bca;
  59. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  60. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  61. -webkit-transition: width 0.6s ease;
  62. transition: width 0.6s ease;
  63. }
  64. .progress-striped .progress-bar {
  65. background-color: #428bca;
  66. 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));
  67. 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);
  68. 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);
  69. 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);
  70. background-size: 40px 40px;
  71. }
  72. .progress.active .progress-bar {
  73. -webkit-animation: progress-bar-stripes 2s linear infinite;
  74. -moz-animation: progress-bar-stripes 2s linear infinite;
  75. -ms-animation: progress-bar-stripes 2s linear infinite;
  76. -o-animation: progress-bar-stripes 2s linear infinite;
  77. animation: progress-bar-stripes 2s linear infinite;
  78. }
  79. .progress-bar-danger {
  80. background-color: #d9534f;
  81. }
  82. .progress-striped .progress-bar-danger {
  83. background-color: #d9534f;
  84. 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));
  85. 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);
  86. 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);
  87. 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);
  88. }
  89. .progress-bar-success {
  90. background-color: #5cb85c;
  91. }
  92. .progress-striped .progress-bar-success {
  93. background-color: #5cb85c;
  94. 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));
  95. 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);
  96. 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);
  97. 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);
  98. }
  99. .progress-bar-warning {
  100. background-color: #f0ad4e;
  101. }
  102. .progress-striped .progress-bar-warning {
  103. background-color: #f0ad4e;
  104. 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));
  105. 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);
  106. 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);
  107. 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);
  108. }
  109. .progress-bar-info {
  110. background-color: #5bc0de;
  111. }
  112. .progress-striped .progress-bar-info {
  113. background-color: #5bc0de;
  114. 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));
  115. 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);
  116. 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);
  117. 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);
  118. }
  119. .progress {
  120. position: relative;
  121. }
  122. .progress .progress-bar {
  123. position: absolute;
  124. overflow: hidden;
  125. line-height: 20px;
  126. }
  127. .progress .progressbar-back-text {
  128. position: absolute;
  129. width: 100%;
  130. height: 100%;
  131. font-size: 12px;
  132. line-height: 20px;
  133. text-align: center;
  134. }
  135. .progress .progressbar-front-text {
  136. display: block;
  137. width: 100%;
  138. font-size: 12px;
  139. line-height: 20px;
  140. text-align: center;
  141. }
  142. .progress.right .progress-bar {
  143. right: 0;
  144. }
  145. .progress.right .progressbar-front-text {
  146. position: absolute;
  147. right: 0;
  148. }
  149. .progress.vertical {
  150. width: 20px;
  151. height: 100%;
  152. float: left;
  153. margin-right: 20px;
  154. }
  155. .progress.vertical.bottom {
  156. position: relative;
  157. }
  158. .progress.vertical.bottom .progressbar-front-text {
  159. position: absolute;
  160. bottom: 0;
  161. }
  162. .progress.vertical .progress-bar {
  163. width: 100%;
  164. height: 0;
  165. -webkit-transition: height 0.6s ease;
  166. transition: height 0.6s ease;
  167. }
  168. .progress.vertical.bottom .progress-bar {
  169. position: absolute;
  170. bottom: 0;
  171. }