bootstrap-progressbar-3.0.3.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. @keyframes progress-bar-stripes {
  11. from {
  12. background-position: 40px 0;
  13. }
  14. to {
  15. background-position: 0 0;
  16. }
  17. }
  18. .progress {
  19. overflow: hidden;
  20. height: 20px;
  21. margin-bottom: 20px;
  22. background-color: #f5f5f5;
  23. border-radius: 4px;
  24. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  25. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  26. }
  27. .progress-bar {
  28. float: left;
  29. width: 0%;
  30. height: 100%;
  31. font-size: 12px;
  32. line-height: 20px;
  33. color: #ffffff;
  34. text-align: center;
  35. background-color: #428bca;
  36. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  37. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  38. -webkit-transition: width 0.6s ease;
  39. transition: width 0.6s ease;
  40. }
  41. .progress-striped .progress-bar {
  42. 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);
  43. 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);
  44. background-size: 40px 40px;
  45. }
  46. .progress.active .progress-bar {
  47. -webkit-animation: progress-bar-stripes 2s linear infinite;
  48. animation: progress-bar-stripes 2s linear infinite;
  49. }
  50. .progress-bar-success {
  51. background-color: #5cb85c;
  52. }
  53. .progress-striped .progress-bar-success {
  54. 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);
  55. 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);
  56. }
  57. .progress-bar-info {
  58. background-color: #5bc0de;
  59. }
  60. .progress-striped .progress-bar-info {
  61. 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);
  62. 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);
  63. }
  64. .progress-bar-warning {
  65. background-color: #f0ad4e;
  66. }
  67. .progress-striped .progress-bar-warning {
  68. 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);
  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. }
  71. .progress-bar-danger {
  72. background-color: #d9534f;
  73. }
  74. .progress-striped .progress-bar-danger {
  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: 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. }
  78. .progress {
  79. position: relative;
  80. }
  81. .progress .progress-bar {
  82. position: absolute;
  83. overflow: hidden;
  84. line-height: 20px;
  85. }
  86. .progress .progressbar-back-text {
  87. position: absolute;
  88. width: 100%;
  89. height: 100%;
  90. font-size: 12px;
  91. line-height: 20px;
  92. text-align: center;
  93. }
  94. .progress .progressbar-front-text {
  95. display: block;
  96. width: 100%;
  97. font-size: 12px;
  98. line-height: 20px;
  99. text-align: center;
  100. }
  101. .progress.right .progress-bar {
  102. right: 0;
  103. }
  104. .progress.right .progressbar-front-text {
  105. position: absolute;
  106. right: 0;
  107. }
  108. .progress.vertical {
  109. width: 20px;
  110. height: 100%;
  111. float: left;
  112. margin-right: 20px;
  113. }
  114. .progress.vertical.bottom {
  115. position: relative;
  116. }
  117. .progress.vertical.bottom .progressbar-front-text {
  118. position: absolute;
  119. bottom: 0;
  120. }
  121. .progress.vertical .progress-bar {
  122. width: 100%;
  123. height: 0;
  124. -webkit-transition: height 0.6s ease;
  125. transition: height 0.6s ease;
  126. }
  127. .progress.vertical.bottom .progress-bar {
  128. position: absolute;
  129. bottom: 0;
  130. }