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.

352 lines
6.8 KiB

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