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.

207 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. height: 35px;
  19. background-color: #FAFAFA;
  20. padding: 5px;
  21. -webkit-border-radius: 0.3125em;
  22. -moz-border-radius: 0.3125em;
  23. border-radius: 0.3125em;
  24. -webkit-box-sizing: border-box;
  25. -moz-box-sizing: border-box;
  26. -ms-box-sizing: border-box;
  27. box-sizing: border-box;
  28. }
  29. .ui.progress .bar {
  30. display: inline-block;
  31. height: 100%;
  32. background-color: #CCCCCC;
  33. -moz-border-radius: 3px;
  34. -webkit-border-radius: 3px;
  35. border-radius: 3px;
  36. -webkit-transition: width 1s ease-in-out, background-color 1s ease-out;
  37. -moz-transition: width 1s ease-in-out, background-color 1s ease-out;
  38. -ms-transition: width 1s ease-in-out, background-color 1s ease-out;
  39. -o-transition: width 1s ease-in-out, background-color 1s ease-out;
  40. transition: width 1s ease-in-out, background-color 1s ease-out;
  41. }
  42. /*******************************
  43. States
  44. *******************************/
  45. /*--------------
  46. Successful
  47. ---------------*/
  48. .ui.successful.progress .bar {
  49. background-color: #73E064 !important;
  50. }
  51. .ui.successful.progress .bar,
  52. .ui.successful.progress .bar::after {
  53. -webkit-animation: none !important;
  54. -moz-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. -moz-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. left: 0px;
  79. right: 0px;
  80. bottom: 0px;
  81. background: #FFFFFF;
  82. -moz-border-radius: 3px;
  83. -webkit-border-radius: 3px;
  84. border-radius: 3px;
  85. -webkit-animation: animate-emphasis 2s ease-out infinite;
  86. -moz-animation: animate-emphasis 2s ease-out infinite;
  87. animation: animate-emphasis 2s ease-out infinite;
  88. }
  89. @-webkit-keyframes animate-emphasis {
  90. 0% {
  91. opacity: 0;
  92. width: 0;
  93. }
  94. 50% {
  95. opacity: 0.3;
  96. }
  97. 100% {
  98. opacity: 0;
  99. width: 95%;
  100. }
  101. }
  102. @-moz-keyframes animate-emphasis {
  103. 0% {
  104. opacity: 0;
  105. width: 0;
  106. }
  107. 50% {
  108. opacity: 0.3;
  109. }
  110. 100% {
  111. opacity: 0;
  112. width: 100%;
  113. }
  114. }
  115. @keyframes animate-emphasis {
  116. 0% {
  117. opacity: 0;
  118. width: 0;
  119. }
  120. 50% {
  121. opacity: 0.3;
  122. }
  123. 100% {
  124. opacity: 0;
  125. width: 100%;
  126. }
  127. }
  128. /*--------------
  129. Disabled
  130. ---------------*/
  131. .ui.disabled.progress {
  132. opacity: 0.35;
  133. }
  134. .ui.disabled.progress .bar,
  135. .ui.disabled.progress .bar::after {
  136. -webkit-animation: none !important;
  137. -moz-animation: none !important;
  138. }
  139. /*******************************
  140. Variations
  141. *******************************/
  142. /*--------------
  143. Colors
  144. ---------------*/
  145. .ui.blue.progress .bar {
  146. background-color: #6ECFF5;
  147. }
  148. .ui.black.progress .bar {
  149. background-color: #5C6166;
  150. }
  151. .ui.green.progress .bar {
  152. background-color: #A1CF64;
  153. }
  154. .ui.red.progress .bar {
  155. background-color: #EF4D6D;
  156. }
  157. .ui.purple.progress .bar {
  158. background-color: #564F8A;
  159. }
  160. .ui.teal.progress .bar {
  161. background-color: #00B5AD;
  162. }
  163. /*--------------
  164. Attached
  165. ---------------*/
  166. /*--------------
  167. Striped
  168. ---------------*/
  169. .ui.progress.striped .bar {
  170. -webkit-background-size: 30px 30px;
  171. -moz-background-size: 30px 30px;
  172. background-size: 30px 30px;
  173. 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));
  174. 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);
  175. 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);
  176. 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);
  177. 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);
  178. 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);
  179. }
  180. .ui.progress.active.striped .bar {
  181. -webkit-animation: animate-striped 3s linear infinite;
  182. -moz-animation: animate-striped 3s linear infinite;
  183. }
  184. @-webkit-keyframes animate-striped {
  185. 0% {
  186. background-position: 0px 0;
  187. }
  188. 100% {
  189. background-position: 60px 0;
  190. }
  191. }
  192. @-moz-keyframes animate-striped {
  193. 0% {
  194. background-position: 0px 0;
  195. }
  196. 100% {
  197. background-position: 60px 0;
  198. }
  199. }
  200. @keyframes animate-striped {
  201. 0% {
  202. background-position: 0px 0;
  203. }
  204. 100% {
  205. background-position: 60px 0;
  206. }
  207. }