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.

247 lines
6.1 KiB

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