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.

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