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.

361 lines
7.1 KiB

  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. -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:
  36. width 1s ease-in-out,
  37. background-color 1s ease-out
  38. ;
  39. -moz-transition:
  40. width 1s ease-in-out,
  41. background-color 1s ease-out
  42. ;
  43. -ms-transition:
  44. width 1s ease-in-out,
  45. background-color 1s ease-out
  46. ;
  47. -o-transition:
  48. width 1s ease-in-out,
  49. background-color 1s ease-out
  50. ;
  51. transition:
  52. width 1s ease-in-out,
  53. background-color 1s ease-out
  54. ;
  55. }
  56. /*******************************
  57. States
  58. *******************************/
  59. /*--------------
  60. Successful
  61. ---------------*/
  62. .ui.successful.progress .bar {
  63. background-color: #73E064 !important;
  64. }
  65. .ui.successful.progress .bar,
  66. .ui.successful.progress .bar::after {
  67. -webkit-animation: none !important;
  68. -moz-animation: none !important;
  69. animation: none !important;
  70. }
  71. .ui.warning.progress .bar {
  72. background-color: #E96633 !important;
  73. }
  74. .ui.warning.progress .bar,
  75. .ui.warning.progress .bar::after {
  76. -webkit-animation: none !important;
  77. -moz-animation: none !important;
  78. animation: none !important;
  79. }
  80. /*--------------
  81. Failed
  82. ---------------*/
  83. .ui.failed.progress .bar {
  84. background-color: #DF9BA4 !important;
  85. }
  86. .ui.failed.progress .bar,
  87. .ui.failed.progress .bar::after {
  88. -webkit-animation: none !important;
  89. -moz-animation: none !important;
  90. animation: none !important;
  91. }
  92. /*--------------
  93. Active
  94. ---------------*/
  95. .ui.active.progress .bar {
  96. position: relative;
  97. }
  98. .ui.active.progress .bar::after {
  99. content: '';
  100. opacity: 0;
  101. position: absolute;
  102. top: 0px;
  103. left: 0px;
  104. right: 0px;
  105. bottom: 0px;
  106. background: #FFFFFF;
  107. -moz-border-radius: 3px;
  108. -webkit-border-radius: 3px;
  109. border-radius: 3px;
  110. -webkit-animation: progress-active 2s ease-out infinite;
  111. -moz-animation: progress-active 2s ease-out infinite;
  112. animation: progress-active 2s ease-out infinite;
  113. }
  114. @-webkit-keyframes progress-active {
  115. 0% {
  116. opacity: 0;
  117. width: 0;
  118. }
  119. 50% {
  120. opacity: 0.3;
  121. }
  122. 100% {
  123. opacity: 0;
  124. width: 95%;
  125. }
  126. }
  127. @-moz-keyframes progress-active {
  128. 0% {
  129. opacity: 0;
  130. width: 0;
  131. }
  132. 50% {
  133. opacity: 0.3;
  134. }
  135. 100% {
  136. opacity: 0;
  137. width: 100%;
  138. }
  139. }
  140. @keyframes progress-active {
  141. 0% {
  142. opacity: 0;
  143. width: 0;
  144. }
  145. 50% {
  146. opacity: 0.3;
  147. }
  148. 100% {
  149. opacity: 0;
  150. width: 100%;
  151. }
  152. }
  153. /*--------------
  154. Disabled
  155. ---------------*/
  156. .ui.disabled.progress {
  157. opacity: 0.35;
  158. }
  159. .ui.disabled.progress .bar,
  160. .ui.disabled.progress .bar::after {
  161. -webkit-animation: none !important;
  162. -moz-animation: none !important;
  163. animation: none !important;
  164. }
  165. /*******************************
  166. Variations
  167. *******************************/
  168. /*--------------
  169. Attached
  170. ---------------*/
  171. /* bottom attached */
  172. .ui.progress.attached {
  173. position: relative;
  174. border: none;
  175. }
  176. .ui.progress.attached,
  177. .ui.progress.attached .bar {
  178. display: block;
  179. height: 3px;
  180. padding: 0px;
  181. overflow: hidden;
  182. -webkit-border-radius: 0em 0em 0.3125em 0.3125em;
  183. -moz-border-radius: 0em 0em 0.3125em 0.3125em;
  184. border-radius: 0em 0em 0.3125em 0.3125em;
  185. }
  186. .ui.progress.attached .bar {
  187. -webkit-border-radius: 0em;
  188. -moz-border-radius: 0em;
  189. border-radius: 0em;
  190. }
  191. /* top attached */
  192. .ui.progress.top.attached,
  193. .ui.progress.top.attached .bar {
  194. top: -2px;
  195. -webkit-border-radius: 0.3125em 0.3125em 0em 0em;
  196. -moz-border-radius: 0.3125em 0.3125em 0em 0em;
  197. border-radius: 0.3125em 0.3125em 0em 0em;
  198. }
  199. .ui.progress.top.attached .bar {
  200. -webkit-border-radius: 0em;
  201. -moz-border-radius: 0em;
  202. border-radius: 0em;
  203. }
  204. /*--------------
  205. Colors
  206. ---------------*/
  207. .ui.blue.progress .bar {
  208. background-color: #6ECFF5;
  209. }
  210. .ui.black.progress .bar {
  211. background-color: #5C6166;
  212. }
  213. .ui.green.progress .bar {
  214. background-color: #A1CF64;
  215. }
  216. .ui.red.progress .bar {
  217. background-color: #EF4D6D;
  218. }
  219. .ui.purple.progress .bar {
  220. background-color: #564F8A;
  221. }
  222. .ui.teal.progress .bar {
  223. background-color: #00B5AD;
  224. }
  225. /*--------------
  226. Striped
  227. ---------------*/
  228. .ui.progress.striped .bar {
  229. -webkit-background-size: 30px 30px;
  230. -moz-background-size: 30px 30px;
  231. background-size: 30px 30px;
  232. background-image:
  233. -webkit-gradient(linear, left top, right bottom,
  234. color-stop(.25, rgba(255, 255, 255, .15)), color-stop(.25, transparent),
  235. color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .15)),
  236. color-stop(.75, rgba(255, 255, 255, .15)), color-stop(.75, transparent),
  237. to(transparent)
  238. )
  239. ;
  240. background-image:
  241. -webkit-linear-gradient(
  242. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  243. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  244. transparent 75%, transparent
  245. )
  246. ;
  247. background-image:
  248. -moz-linear-gradient(
  249. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  250. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  251. transparent 75%, transparent
  252. )
  253. ;
  254. background-image:
  255. -ms-linear-gradient(
  256. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  257. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  258. transparent 75%, transparent
  259. )
  260. ;
  261. background-image:
  262. -o-linear-gradient(
  263. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  264. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  265. transparent 75%, transparent
  266. )
  267. ;
  268. background-image:
  269. linear-gradient(
  270. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  271. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  272. transparent 75%, transparent
  273. )
  274. ;
  275. }
  276. .ui.progress.active.striped .bar:after {
  277. -webkit-animation: none;
  278. -moz-animation: none;
  279. -ms-animation: none;
  280. -o-animation: none;
  281. animation: none;
  282. }
  283. .ui.progress.active.striped .bar {
  284. -webkit-animation: progress-striped 3s linear infinite;
  285. -moz-animation: progress-striped 3s linear infinite;
  286. animation: progress-striped 3s linear infinite;
  287. }
  288. @-webkit-keyframes progress-striped {
  289. 0% {
  290. background-position: 0px 0;
  291. }
  292. 100% {
  293. background-position: 60px 0;
  294. }
  295. }
  296. @-moz-keyframes progress-striped {
  297. 0% {
  298. background-position: 0px 0;
  299. }
  300. 100% {
  301. background-position: 60px 0;
  302. }
  303. }
  304. @keyframes progress-striped {
  305. 0% {
  306. background-position: 0px 0;
  307. }
  308. 100% {
  309. background-position: 60px 0;
  310. }
  311. }
  312. /*--------------
  313. Sizes
  314. ---------------*/
  315. .ui.small.progress .bar {
  316. height: 14px;
  317. }