bootstrap-progressbar-3.0.0-rc2.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. color: #ffffff;
  49. text-align: center;
  50. background-color: #428bca;
  51. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  52. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  53. -webkit-transition: width 0.6s ease;
  54. transition: width 0.6s ease;
  55. }
  56. .progress-striped .progress-bar {
  57. 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));
  58. 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);
  59. 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);
  60. 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);
  61. background-size: 40px 40px;
  62. }
  63. .progress.active .progress-bar {
  64. -webkit-animation: progress-bar-stripes 2s linear infinite;
  65. -moz-animation: progress-bar-stripes 2s linear infinite;
  66. -ms-animation: progress-bar-stripes 2s linear infinite;
  67. -o-animation: progress-bar-stripes 2s linear infinite;
  68. animation: progress-bar-stripes 2s linear infinite;
  69. }
  70. .progress-bar-danger {
  71. background-color: #d9534f;
  72. }
  73. .progress-striped .progress-bar-danger {
  74. 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));
  75. 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);
  76. 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);
  77. 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);
  78. }
  79. .progress-bar-success {
  80. background-color: #5cb85c;
  81. }
  82. .progress-striped .progress-bar-success {
  83. 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));
  84. 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);
  85. 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);
  86. 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);
  87. }
  88. .progress-bar-warning {
  89. background-color: #f0ad4e;
  90. }
  91. .progress-striped .progress-bar-warning {
  92. 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));
  93. 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);
  94. 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);
  95. 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);
  96. }
  97. .progress-bar-info {
  98. background-color: #5bc0de;
  99. }
  100. .progress-striped .progress-bar-info {
  101. 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));
  102. 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);
  103. 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);
  104. 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);
  105. }
  106. .progress {
  107. position: relative;
  108. }
  109. .progress .progress-bar {
  110. position: absolute;
  111. overflow: hidden;
  112. line-height: 20px;
  113. }
  114. .progress .progressbar-back-text {
  115. position: absolute;
  116. width: 100%;
  117. height: 100%;
  118. font-size: 12px;
  119. line-height: 20px;
  120. text-align: center;
  121. }
  122. .progress .progressbar-front-text {
  123. display: block;
  124. width: 100%;
  125. font-size: 12px;
  126. line-height: 20px;
  127. text-align: center;
  128. }
  129. .progress.right .progress-bar {
  130. right: 0;
  131. }
  132. .progress.right .progressbar-front-text {
  133. position: absolute;
  134. right: 0;
  135. }
  136. .progress.vertical {
  137. width: 20px;
  138. height: 100%;
  139. float: left;
  140. margin-right: 20px;
  141. }
  142. .progress.vertical.bottom {
  143. position: relative;
  144. }
  145. .progress.vertical.bottom .progressbar-front-text {
  146. position: absolute;
  147. bottom: 0;
  148. }
  149. .progress.vertical .progress-bar {
  150. width: 100%;
  151. height: 0;
  152. -webkit-transition: height 0.6s ease;
  153. transition: height 0.6s ease;
  154. }
  155. .progress.vertical.bottom .progress-bar {
  156. position: absolute;
  157. bottom: 0;
  158. }