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.

323 lines
6.3 KiB

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