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.

311 lines
6.7 KiB

  1. .ui.progress {
  2. border: 1px solid #DDDDDD;
  3. width: 350px;
  4. max-width: 100%;
  5. height: 35px;
  6. background-color: #FAFAFA;
  7. padding: 5px;
  8. -moz-border-radius: 5px;
  9. -webkit-border-radius: 5px;
  10. border-radius: 5px;
  11. -webkit-box-sizing: border-box;
  12. -moz-box-sizing: border-box;
  13. -ms-box-sizing: border-box;
  14. box-sizing: border-box;
  15. }
  16. .ui.progress .bar {
  17. display: inline-block;
  18. height: 100%;
  19. background-color: #CCCCCC;
  20. -moz-border-radius: 3px;
  21. -webkit-border-radius: 3px;
  22. border-radius: 3px;
  23. -moz-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5) inset;
  24. -webkit-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5) inset;
  25. box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5) inset;
  26. -webkit-transition:
  27. width 1s ease-out,
  28. background-color 1s ease-out
  29. ;
  30. -moz-transition:
  31. width 1s ease-out,
  32. background-color 1s ease-out
  33. ;
  34. -ms-transition:
  35. width 1s ease-out,
  36. background-color 1s ease-out
  37. ;
  38. -o-transition:
  39. width 1s ease-out,
  40. background-color 1s ease-out
  41. ;
  42. transition:
  43. width 1s ease-out,
  44. background-color 1s ease-out
  45. ;
  46. }
  47. /* Colors */
  48. .ui.blue.progress .bar {
  49. background-color: #6ECFF5;
  50. }
  51. /* Fluid Width */
  52. .ui.fluid.progress {
  53. width: 100%;
  54. }
  55. /* State */
  56. .ui.success.progress .bar {
  57. background-color: #73E064 !important;
  58. }
  59. .ui.success.progress .bar,
  60. .ui.success.progress .bar::after {
  61. -webkit-animation: none !important;
  62. -moz-animation: none !important;
  63. }
  64. .ui.error.progress .bar {
  65. background-color: #DF9BA4 !important;
  66. }
  67. .ui.error.progress .bar,
  68. .ui.error.progress .bar::after {
  69. -webkit-animation: none !important;
  70. -moz-animation: none !important;
  71. }
  72. /* Variations */
  73. .ui.progress.striped .bar {
  74. -webkit-background-size: 30px 30px;
  75. -moz-background-size: 30px 30px;
  76. background-size: 30px 30px;
  77. background-image:
  78. -webkit-gradient(linear, left top, right bottom,
  79. color-stop(.25, rgba(255, 255, 255, .15)), color-stop(.25, transparent),
  80. color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .15)),
  81. color-stop(.75, rgba(255, 255, 255, .15)), color-stop(.75, transparent),
  82. to(transparent)
  83. )
  84. ;
  85. background-image:
  86. -webkit-linear-gradient(
  87. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  88. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  89. transparent 75%, transparent
  90. )
  91. ;
  92. background-image:
  93. -moz-linear-gradient(
  94. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  95. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  96. transparent 75%, transparent
  97. )
  98. ;
  99. background-image:
  100. -ms-linear-gradient(
  101. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  102. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  103. transparent 75%, transparent
  104. )
  105. ;
  106. background-image:
  107. -o-linear-gradient(
  108. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  109. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  110. transparent 75%, transparent
  111. )
  112. ;
  113. background-image:
  114. linear-gradient(
  115. 135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  116. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  117. transparent 75%, transparent
  118. )
  119. ;
  120. -webkit-animation: animate-striped 3s linear infinite;
  121. -moz-animation: animate-striped 3s linear infinite;
  122. }
  123. @-webkit-keyframes animate-striped {
  124. 0% {
  125. background-position: 0px 0;
  126. }
  127. 100% {
  128. background-position: 60px 0;
  129. }
  130. }
  131. @-moz-keyframes animate-striped {
  132. 0% {
  133. background-position: 0px 0;
  134. }
  135. 100% {
  136. background-position: 60px 0;
  137. }
  138. }
  139. @keyframes animate-striped {
  140. 0% {
  141. background-position: 0px 0;
  142. }
  143. 100% {
  144. background-position: 60px 0;
  145. }
  146. }
  147. /* Shining animation */
  148. .ui.shiny.progress .bar {
  149. position: relative;
  150. }
  151. .ui.shiny.progress .bar::after {
  152. content: '';
  153. opacity: 0;
  154. position: absolute;
  155. top: 0px;
  156. left: 0px;
  157. right: 0px;
  158. bottom: 0px;
  159. background: #FFFFFF;
  160. -moz-border-radius: 3px;
  161. -webkit-border-radius: 3px;
  162. border-radius: 3px;
  163. -webkit-animation: animate-shiny 2s ease-out infinite;
  164. -moz-animation: animate-shiny 2s ease-out infinite;
  165. }
  166. @-webkit-keyframes animate-shiny {
  167. 0% {
  168. opacity: 0;
  169. width: 0;
  170. }
  171. 50% {
  172. opacity: 0.3;
  173. }
  174. 100% {
  175. opacity: 0;
  176. width: 95%;
  177. }
  178. }
  179. @-moz-keyframes animate-shiny {
  180. 0% {
  181. opacity: 0;
  182. width: 0;
  183. }
  184. 50% {
  185. opacity: 0.3;
  186. }
  187. 100% {
  188. opacity: 0;
  189. width: 100%;
  190. }
  191. }
  192. @keyframes animate-shiny {
  193. 0% {
  194. opacity: 0;
  195. width: 0;
  196. }
  197. 50% {
  198. opacity: 0.3;
  199. }
  200. 100% {
  201. opacity: 0;
  202. width: 100%;
  203. }
  204. }
  205. /* Glowing animation */
  206. .ui.glowing.progress .bar {
  207. -moz-box-shadow:
  208. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  209. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  210. ;
  211. -webkit-box-shadow:
  212. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  213. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  214. ;
  215. box-shadow:
  216. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  217. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  218. ;
  219. -webkit-animation: animate-glow 1s ease-out infinite;
  220. -moz-animation: animate-glow 1s ease-out infinite;
  221. }
  222. @-webkit-keyframes animate-glow {
  223. 0% {
  224. -webkit-box-shadow:
  225. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  226. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  227. ;
  228. box-shadow:
  229. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  230. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  231. ;
  232. }
  233. 50% {
  234. -webkit-box-shadow:
  235. 0px 5px 5px rgba(255, 255, 255, 0.3) inset,
  236. 0px -5px 5px rgba(255, 255, 255, 0.3) inset
  237. ;
  238. box-shadow:
  239. 0px 5px 5px rgba(255, 255, 255, 0.3) inset,
  240. 0px -5px 5px rgba(255, 255, 255, 0.3) inset
  241. ;
  242. }
  243. 100% {
  244. -webkit-box-shadow:
  245. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  246. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  247. ;
  248. box-shadow:
  249. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  250. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  251. ;
  252. }
  253. }
  254. @-moz-keyframes animate-glow {
  255. 0% {
  256. -moz-box-shadow:
  257. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  258. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  259. ;
  260. box-shadow:
  261. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  262. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  263. ;
  264. }
  265. 50% {
  266. -moz-box-shadow:
  267. 0px 5px 5px rgba(255, 255, 255, 0.3) inset,
  268. 0px -5px 5px rgba(255, 255, 255, 0.3) inset
  269. ;
  270. box-shadow:
  271. 0px 5px 5px rgba(255, 255, 255, 0.3) inset,
  272. 0px -5px 5px rgba(255, 255, 255, 0.3) inset
  273. ;
  274. }
  275. 100% {
  276. -moz-box-shadow:
  277. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  278. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  279. ;
  280. box-shadow:
  281. 0px 5px 5px rgba(255, 255, 255, 0.7) inset,
  282. 0px -5px 5px rgba(255, 255, 255, 0.7) inset
  283. ;
  284. }
  285. }