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.

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