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.

256 lines
6.6 KiB

  1. /*
  2. * # Semantic - Progress Bar
  3. * http://github.com/jlukic/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. -webkit-border-radius: 0.3125em;
  21. -moz-border-radius: 0.3125em;
  22. border-radius: 0.3125em;
  23. -webkit-box-sizing: border-box;
  24. -moz-box-sizing: border-box;
  25. -ms-box-sizing: border-box;
  26. box-sizing: border-box;
  27. }
  28. .ui.progress .bar {
  29. display: inline-block;
  30. height: 100%;
  31. background-color: #CCCCCC;
  32. -moz-border-radius: 3px;
  33. -webkit-border-radius: 3px;
  34. border-radius: 3px;
  35. -webkit-transition: width 1s ease-in-out, background-color 1s ease-out;
  36. -moz-transition: width 1s ease-in-out, background-color 1s ease-out;
  37. -ms-transition: width 1s ease-in-out, background-color 1s ease-out;
  38. -o-transition: width 1s ease-in-out, background-color 1s ease-out;
  39. transition: width 1s ease-in-out, background-color 1s ease-out;
  40. }
  41. /*******************************
  42. States
  43. *******************************/
  44. /*--------------
  45. Successful
  46. ---------------*/
  47. .ui.successful.progress .bar {
  48. background-color: #73E064 !important;
  49. }
  50. .ui.successful.progress .bar,
  51. .ui.successful.progress .bar::after {
  52. -webkit-animation: none !important;
  53. -moz-animation: none !important;
  54. animation: none !important;
  55. }
  56. /*--------------
  57. Failed
  58. ---------------*/
  59. .ui.failed.progress .bar {
  60. background-color: #DF9BA4 !important;
  61. }
  62. .ui.failed.progress .bar,
  63. .ui.failed.progress .bar::after {
  64. -webkit-animation: none !important;
  65. -moz-animation: none !important;
  66. animation: none !important;
  67. }
  68. /*--------------
  69. Active
  70. ---------------*/
  71. .ui.active.progress .bar {
  72. position: relative;
  73. }
  74. .ui.active.progress .bar::after {
  75. content: '';
  76. opacity: 0;
  77. position: absolute;
  78. top: 0px;
  79. left: 0px;
  80. right: 0px;
  81. bottom: 0px;
  82. background: #FFFFFF;
  83. -moz-border-radius: 3px;
  84. -webkit-border-radius: 3px;
  85. border-radius: 3px;
  86. -webkit-animation: progress-active 2s ease-out infinite;
  87. -moz-animation: progress-active 2s ease-out infinite;
  88. animation: progress-active 2s ease-out infinite;
  89. }
  90. @-webkit-keyframes progress-active {
  91. 0% {
  92. opacity: 0;
  93. width: 0;
  94. }
  95. 50% {
  96. opacity: 0.3;
  97. }
  98. 100% {
  99. opacity: 0;
  100. width: 95%;
  101. }
  102. }
  103. @-moz-keyframes progress-active {
  104. 0% {
  105. opacity: 0;
  106. width: 0;
  107. }
  108. 50% {
  109. opacity: 0.3;
  110. }
  111. 100% {
  112. opacity: 0;
  113. width: 100%;
  114. }
  115. }
  116. @keyframes progress-active {
  117. 0% {
  118. opacity: 0;
  119. width: 0;
  120. }
  121. 50% {
  122. opacity: 0.3;
  123. }
  124. 100% {
  125. opacity: 0;
  126. width: 100%;
  127. }
  128. }
  129. /*--------------
  130. Disabled
  131. ---------------*/
  132. .ui.disabled.progress {
  133. opacity: 0.35;
  134. }
  135. .ui.disabled.progress .bar,
  136. .ui.disabled.progress .bar::after {
  137. -webkit-animation: none !important;
  138. -moz-animation: none !important;
  139. animation: none !important;
  140. }
  141. /*******************************
  142. Variations
  143. *******************************/
  144. /*--------------
  145. Attached
  146. ---------------*/
  147. /* bottom attached */
  148. .ui.progress.attached {
  149. position: relative;
  150. border: none;
  151. }
  152. .ui.progress.attached,
  153. .ui.progress.attached .bar {
  154. display: block;
  155. height: 3px;
  156. padding: 0px;
  157. overflow: hidden;
  158. -webkit-border-radius: 0em 0em 0.3125em 0.3125em;
  159. -moz-border-radius: 0em 0em 0.3125em 0.3125em;
  160. border-radius: 0em 0em 0.3125em 0.3125em;
  161. }
  162. .ui.progress.attached .bar {
  163. -webkit-border-radius: 0em;
  164. -moz-border-radius: 0em;
  165. border-radius: 0em;
  166. }
  167. /* top attached */
  168. .ui.progress.top.attached,
  169. .ui.progress.top.attached .bar {
  170. top: -2px;
  171. -webkit-border-radius: 0.3125em 0.3125em 0em 0em;
  172. -moz-border-radius: 0.3125em 0.3125em 0em 0em;
  173. border-radius: 0.3125em 0.3125em 0em 0em;
  174. }
  175. .ui.progress.top.attached .bar {
  176. -webkit-border-radius: 0em;
  177. -moz-border-radius: 0em;
  178. border-radius: 0em;
  179. }
  180. /*--------------
  181. Colors
  182. ---------------*/
  183. .ui.blue.progress .bar {
  184. background-color: #6ECFF5;
  185. }
  186. .ui.black.progress .bar {
  187. background-color: #5C6166;
  188. }
  189. .ui.green.progress .bar {
  190. background-color: #A1CF64;
  191. }
  192. .ui.red.progress .bar {
  193. background-color: #EF4D6D;
  194. }
  195. .ui.purple.progress .bar {
  196. background-color: #564F8A;
  197. }
  198. .ui.teal.progress .bar {
  199. background-color: #00B5AD;
  200. }
  201. /*--------------
  202. Striped
  203. ---------------*/
  204. .ui.progress.striped .bar {
  205. -webkit-background-size: 30px 30px;
  206. -moz-background-size: 30px 30px;
  207. background-size: 30px 30px;
  208. 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));
  209. 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);
  210. background-image: -moz-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);
  211. background-image: -ms-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);
  212. background-image: -o-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);
  213. 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);
  214. }
  215. .ui.progress.active.striped .bar:after {
  216. -webkit-animation: none;
  217. -moz-animation: none;
  218. -ms-animation: none;
  219. -o-animation: none;
  220. animation: none;
  221. }
  222. .ui.progress.active.striped .bar {
  223. -webkit-animation: progress-striped 3s linear infinite;
  224. -moz-animation: progress-striped 3s linear infinite;
  225. animation: progress-striped 3s linear infinite;
  226. }
  227. @-webkit-keyframes progress-striped {
  228. 0% {
  229. background-position: 0px 0;
  230. }
  231. 100% {
  232. background-position: 60px 0;
  233. }
  234. }
  235. @-moz-keyframes progress-striped {
  236. 0% {
  237. background-position: 0px 0;
  238. }
  239. 100% {
  240. background-position: 60px 0;
  241. }
  242. }
  243. @keyframes progress-striped {
  244. 0% {
  245. background-position: 0px 0;
  246. }
  247. 100% {
  248. background-position: 60px 0;
  249. }
  250. }
  251. /*--------------
  252. Sizes
  253. ---------------*/
  254. .ui.small.progress .bar {
  255. height: 14px;
  256. }