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.

208 lines
5.4 KiB

  1. /*
  2. * # Semantic Progress Bar
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: Nay 14, 2013
  11. */
  12. /*******************************
  13. Progress Bar
  14. *******************************/
  15. .ui.progress {
  16. border: 1px solid rgba(0, 0, 0, 0.1);
  17. width: 100%;
  18. max-width: 400px;
  19. height: 35px;
  20. background-color: #FAFAFA;
  21. padding: 5px;
  22. -webkit-border-radius: 0.3125em;
  23. -moz-border-radius: 0.3125em;
  24. border-radius: 0.3125em;
  25. -webkit-box-sizing: border-box;
  26. -moz-box-sizing: border-box;
  27. -ms-box-sizing: border-box;
  28. box-sizing: border-box;
  29. }
  30. .ui.progress .bar {
  31. display: inline-block;
  32. height: 100%;
  33. background-color: #CCCCCC;
  34. -moz-border-radius: 3px;
  35. -webkit-border-radius: 3px;
  36. border-radius: 3px;
  37. -webkit-transition: width 1s ease-in-out, background-color 1s ease-out;
  38. -moz-transition: width 1s ease-in-out, background-color 1s ease-out;
  39. -ms-transition: width 1s ease-in-out, background-color 1s ease-out;
  40. -o-transition: width 1s ease-in-out, background-color 1s ease-out;
  41. transition: width 1s ease-in-out, background-color 1s ease-out;
  42. }
  43. /*******************************
  44. States
  45. *******************************/
  46. /*--------------
  47. Successful
  48. ---------------*/
  49. .ui.successful.progress .bar {
  50. background-color: #73E064 !important;
  51. }
  52. .ui.successful.progress .bar,
  53. .ui.successful.progress .bar::after {
  54. -webkit-animation: none !important;
  55. -moz-animation: none !important;
  56. }
  57. /*--------------
  58. Failed
  59. ---------------*/
  60. .ui.failed.progress .bar {
  61. background-color: #DF9BA4 !important;
  62. }
  63. .ui.failed.progress .bar,
  64. .ui.failed.progress .bar::after {
  65. -webkit-animation: none !important;
  66. -moz-animation: none !important;
  67. }
  68. /*--------------
  69. Active
  70. ---------------*/
  71. .ui.active.progress .bar {
  72. position: relative;
  73. }
  74. .ui.active.progress .bar::after {
  75. content: '';
  76. opacity: 0;
  77. position: absolute;
  78. top: 0px;
  79. left: 0px;
  80. right: 0px;
  81. bottom: 0px;
  82. background: #FFFFFF;
  83. -moz-border-radius: 3px;
  84. -webkit-border-radius: 3px;
  85. border-radius: 3px;
  86. -webkit-animation: animate-emphasis 2s ease-out infinite;
  87. -moz-animation: animate-emphasis 2s ease-out infinite;
  88. animation: animate-emphasis 2s ease-out infinite;
  89. }
  90. @-webkit-keyframes animate-emphasis {
  91. 0% {
  92. opacity: 0;
  93. width: 0;
  94. }
  95. 50% {
  96. opacity: 0.3;
  97. }
  98. 100% {
  99. opacity: 0;
  100. width: 95%;
  101. }
  102. }
  103. @-moz-keyframes animate-emphasis {
  104. 0% {
  105. opacity: 0;
  106. width: 0;
  107. }
  108. 50% {
  109. opacity: 0.3;
  110. }
  111. 100% {
  112. opacity: 0;
  113. width: 100%;
  114. }
  115. }
  116. @keyframes animate-emphasis {
  117. 0% {
  118. opacity: 0;
  119. width: 0;
  120. }
  121. 50% {
  122. opacity: 0.3;
  123. }
  124. 100% {
  125. opacity: 0;
  126. width: 100%;
  127. }
  128. }
  129. /*--------------
  130. Disabled
  131. ---------------*/
  132. .ui.disabled.progress {
  133. opacity: 0.35;
  134. }
  135. .ui.disabled.progress .bar,
  136. .ui.disabled.progress .bar::after {
  137. -webkit-animation: none !important;
  138. -moz-animation: none !important;
  139. }
  140. /*******************************
  141. Variations
  142. *******************************/
  143. /*--------------
  144. Colors
  145. ---------------*/
  146. .ui.blue.progress .bar {
  147. background-color: #6ECFF5;
  148. }
  149. .ui.black.progress .bar {
  150. background-color: #5C6166;
  151. }
  152. .ui.green.progress .bar {
  153. background-color: #A1CF64;
  154. }
  155. .ui.red.progress .bar {
  156. background-color: #EF4D6D;
  157. }
  158. .ui.purple.progress .bar {
  159. background-color: #564F8A;
  160. }
  161. .ui.teal.progress .bar {
  162. background-color: #00B5AD;
  163. }
  164. /*--------------
  165. Attached
  166. ---------------*/
  167. /*--------------
  168. Striped
  169. ---------------*/
  170. .ui.progress.striped .bar {
  171. -webkit-background-size: 30px 30px;
  172. -moz-background-size: 30px 30px;
  173. background-size: 30px 30px;
  174. 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));
  175. 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);
  176. 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);
  177. background-image: -ms-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);
  178. background-image: -o-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);
  179. 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);
  180. }
  181. .ui.progress.active.striped .bar {
  182. -webkit-animation: animate-striped 3s linear infinite;
  183. -moz-animation: animate-striped 3s linear infinite;
  184. }
  185. @-webkit-keyframes animate-striped {
  186. 0% {
  187. background-position: 0px 0;
  188. }
  189. 100% {
  190. background-position: 60px 0;
  191. }
  192. }
  193. @-moz-keyframes animate-striped {
  194. 0% {
  195. background-position: 0px 0;
  196. }
  197. 100% {
  198. background-position: 60px 0;
  199. }
  200. }
  201. @keyframes animate-striped {
  202. 0% {
  203. background-position: 0px 0;
  204. }
  205. 100% {
  206. background-position: 60px 0;
  207. }
  208. }