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.

213 lines
5.0 KiB

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