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.

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