You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
5.1 KiB

10 years ago
  1. /*
  2. * # Semantic - Progress Bar
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Progress Bar
  13. *******************************/
  14. .ui.progress {
  15. border: 1px solid rgba(0, 0, 0, 0.1);
  16. width: 100%;
  17. height: 35px;
  18. background-color: #FAFAFA;
  19. padding: 5px;
  20. border-radius: 0.3125em;
  21. -webkit-box-sizing: border-box;
  22. -ms-box-sizing: border-box;
  23. box-sizing: border-box;
  24. }
  25. .ui.progress .bar {
  26. display: inline-block;
  27. height: 100%;
  28. background-color: #CCCCCC;
  29. border-radius: 3px;
  30. -webkit-transition: width 1s ease-in-out, background-color 1s ease-out;
  31. transition: width 1s ease-in-out, background-color 1s ease-out;
  32. }
  33. /*******************************
  34. States
  35. *******************************/
  36. /*--------------
  37. Successful
  38. ---------------*/
  39. .ui.successful.progress .bar {
  40. background-color: #73E064 !important;
  41. }
  42. .ui.successful.progress .bar,
  43. .ui.successful.progress .bar::after {
  44. -webkit-animation: none !important;
  45. animation: none !important;
  46. }
  47. .ui.warning.progress .bar {
  48. background-color: #E96633 !important;
  49. }
  50. .ui.warning.progress .bar,
  51. .ui.warning.progress .bar::after {
  52. -webkit-animation: none !important;
  53. animation: none !important;
  54. }
  55. /*--------------
  56. Failed
  57. ---------------*/
  58. .ui.failed.progress .bar {
  59. background-color: #DF9BA4 !important;
  60. }
  61. .ui.failed.progress .bar,
  62. .ui.failed.progress .bar::after {
  63. -webkit-animation: none !important;
  64. animation: none !important;
  65. }
  66. /*--------------
  67. Active
  68. ---------------*/
  69. .ui.active.progress .bar {
  70. position: relative;
  71. }
  72. .ui.active.progress .bar::after {
  73. content: '';
  74. opacity: 0;
  75. position: absolute;
  76. top: 0px;
  77. left: 0px;
  78. right: 0px;
  79. bottom: 0px;
  80. background: #FFFFFF;
  81. border-radius: 3px;
  82. -webkit-animation: progress-active 2s ease-out infinite;
  83. animation: progress-active 2s ease-out infinite;
  84. }
  85. @-webkit-keyframes progress-active {
  86. 0% {
  87. opacity: 0;
  88. width: 0;
  89. }
  90. 50% {
  91. opacity: 0.3;
  92. }
  93. 100% {
  94. opacity: 0;
  95. width: 95%;
  96. }
  97. }
  98. @keyframes progress-active {
  99. 0% {
  100. opacity: 0;
  101. width: 0;
  102. }
  103. 50% {
  104. opacity: 0.3;
  105. }
  106. 100% {
  107. opacity: 0;
  108. width: 100%;
  109. }
  110. }
  111. /*--------------
  112. Disabled
  113. ---------------*/
  114. .ui.disabled.progress {
  115. opacity: 0.35;
  116. }
  117. .ui.disabled.progress .bar,
  118. .ui.disabled.progress .bar::after {
  119. -webkit-animation: none !important;
  120. animation: none !important;
  121. }
  122. /*******************************
  123. Variations
  124. *******************************/
  125. /*--------------
  126. Attached
  127. ---------------*/
  128. /* bottom attached */
  129. .ui.progress.attached {
  130. position: relative;
  131. border: none;
  132. }
  133. .ui.progress.attached,
  134. .ui.progress.attached .bar {
  135. display: block;
  136. height: 3px;
  137. padding: 0px;
  138. overflow: hidden;
  139. border-radius: 0em 0em 0.3125em 0.3125em;
  140. }
  141. .ui.progress.attached .bar {
  142. border-radius: 0em;
  143. }
  144. /* top attached */
  145. .ui.progress.top.attached,
  146. .ui.progress.top.attached .bar {
  147. top: -2px;
  148. border-radius: 0.3125em 0.3125em 0em 0em;
  149. }
  150. .ui.progress.top.attached .bar {
  151. border-radius: 0em;
  152. }
  153. /*--------------
  154. Colors
  155. ---------------*/
  156. .ui.blue.progress .bar {
  157. background-color: #6ECFF5;
  158. }
  159. .ui.black.progress .bar {
  160. background-color: #5C6166;
  161. }
  162. .ui.green.progress .bar {
  163. background-color: #A1CF64;
  164. }
  165. .ui.red.progress .bar {
  166. background-color: #EF4D6D;
  167. }
  168. .ui.purple.progress .bar {
  169. background-color: #564F8A;
  170. }
  171. .ui.teal.progress .bar {
  172. background-color: #00B5AD;
  173. }
  174. /*--------------
  175. Striped
  176. ---------------*/
  177. .ui.progress.striped .bar {
  178. -webkit-background-size: 30px 30px;
  179. background-size: 30px 30px;
  180. background-image: -webkit-gradient(linear, left top, right bottom, 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));
  181. background-image: -webkit-linear-gradient(135deg, 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);
  182. background-image: -webkit-linear-gradient(315deg, 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);
  183. background-image: linear-gradient(135deg, 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);
  184. }
  185. .ui.progress.active.striped .bar:after {
  186. -webkit-animation: none;
  187. -ms-animation: none;
  188. animation: none;
  189. }
  190. .ui.progress.active.striped .bar {
  191. -webkit-animation: progress-striped 3s linear infinite;
  192. animation: progress-striped 3s linear infinite;
  193. }
  194. @-webkit-keyframes progress-striped {
  195. 0% {
  196. background-position: 0px 0;
  197. }
  198. 100% {
  199. background-position: 60px 0;
  200. }
  201. }
  202. @keyframes progress-striped {
  203. 0% {
  204. background-position: 0px 0;
  205. }
  206. 100% {
  207. background-position: 60px 0;
  208. }
  209. }
  210. /*--------------
  211. Sizes
  212. ---------------*/
  213. .ui.small.progress .bar {
  214. height: 14px;
  215. }