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.

363 lines
8.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Progress Bar
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Default
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Solid Background Color */
  86. /* Status */
  87. /* Darkened Headers */
  88. /*-------------------
  89. Neutral Text
  90. --------------------*/
  91. /*-------------------
  92. Brand Colors
  93. --------------------*/
  94. /*-------------------
  95. Grid Columns
  96. --------------------*/
  97. /*-------------------
  98. Borders
  99. --------------------*/
  100. /*-------------------
  101. Sizes
  102. --------------------*/
  103. /*-------------------
  104. Transitions
  105. --------------------*/
  106. /*******************************
  107. States
  108. *******************************/
  109. /*-------------------
  110. Disabled
  111. --------------------*/
  112. /*-------------------
  113. Hover
  114. --------------------*/
  115. /*--- Colors ---*/
  116. /*--- Emotive ---*/
  117. /*--- Neutrals ---*/
  118. /*-------------------
  119. Down (:active)
  120. --------------------*/
  121. /*--- Colors ---*/
  122. /*--- Emotive ---*/
  123. /*--- Neutrals ---*/
  124. /*-------------------
  125. Active
  126. --------------------*/
  127. /*--- Standard ---*/
  128. /*--- Emotive ---*/
  129. /*--- Neutrals ---*/
  130. /*******************************
  131. Progress
  132. *******************************/
  133. /*-------------------
  134. Element
  135. --------------------*/
  136. /*-------------------
  137. States
  138. --------------------*/
  139. /*-------------------
  140. Types
  141. --------------------*/
  142. /*-------------------
  143. Variations
  144. --------------------*/
  145. /*------------------
  146. Load Theme
  147. -------------------*/
  148. /*------------------
  149. Load Site
  150. -------------------*/
  151. /*******************************
  152. User Global Variables
  153. *******************************/
  154. /*******************************
  155. User Variable Overrides
  156. *******************************/
  157. /*------------------
  158. Override Mix-in
  159. -------------------*/
  160. .ui.progress {
  161. border: 1px solid rgba(0, 0, 0, 0.1);
  162. width: 100%;
  163. height: 35px;
  164. background-color: #FAFAFA;
  165. padding: 5px;
  166. border-radius: 0.3125em;
  167. }
  168. .ui.progress .bar {
  169. display: inline-block;
  170. height: 100%;
  171. background-color: #CCCCCC;
  172. border-radius: 3px;
  173. -webkit-transition: width 1s ease-in-out, background-color 1s ease-out;
  174. transition: width 1s ease-in-out, background-color 1s ease-out;
  175. }
  176. /*******************************
  177. States
  178. *******************************/
  179. /*--------------
  180. Successful
  181. ---------------*/
  182. .ui.successful.progress .bar {
  183. background-color: #2ecc40 !important;
  184. }
  185. .ui.successful.progress .bar,
  186. .ui.successful.progress .bar::after {
  187. -webkit-animation: none !important;
  188. animation: none !important;
  189. }
  190. .ui.warning.progress .bar {
  191. background-color: #ffcb08 !important;
  192. }
  193. .ui.warning.progress .bar,
  194. .ui.warning.progress .bar::after {
  195. -webkit-animation: none !important;
  196. animation: none !important;
  197. }
  198. /*--------------
  199. Failed
  200. ---------------*/
  201. .ui.failed.progress .bar {
  202. background-color: #ff4136 !important;
  203. }
  204. .ui.failed.progress .bar,
  205. .ui.failed.progress .bar::after {
  206. -webkit-animation: none !important;
  207. animation: none !important;
  208. }
  209. /*--------------
  210. Active
  211. ---------------*/
  212. .ui.active.progress .bar {
  213. position: relative;
  214. }
  215. .ui.active.progress .bar::after {
  216. content: '';
  217. opacity: 0;
  218. position: absolute;
  219. top: 0px;
  220. left: 0px;
  221. right: 0px;
  222. bottom: 0px;
  223. background: #FFFFFF;
  224. border-radius: 3px;
  225. -webkit-animation: progress-active 2s ease-out infinite;
  226. animation: progress-active 2s ease-out infinite;
  227. }
  228. @-webkit-keyframes progress-active {
  229. 0% {
  230. opacity: 0;
  231. width: 0;
  232. }
  233. 50% {
  234. opacity: 0.3;
  235. }
  236. 100% {
  237. opacity: 0;
  238. width: 100%;
  239. }
  240. }
  241. @keyframes progress-active {
  242. 0% {
  243. opacity: 0;
  244. width: 0;
  245. }
  246. 50% {
  247. opacity: 0.3;
  248. }
  249. 100% {
  250. opacity: 0;
  251. width: 100%;
  252. }
  253. }
  254. /*--------------
  255. Disabled
  256. ---------------*/
  257. .ui.disabled.progress {
  258. opacity: 0.35;
  259. }
  260. .ui.disabled.progress .bar,
  261. .ui.disabled.progress .bar::after {
  262. -webkit-animation: none !important;
  263. animation: none !important;
  264. }
  265. /*******************************
  266. Variations
  267. *******************************/
  268. /*--------------
  269. Attached
  270. ---------------*/
  271. /* bottom attached */
  272. .ui.progress.attached {
  273. position: relative;
  274. border: none;
  275. }
  276. .ui.progress.attached,
  277. .ui.progress.attached .bar {
  278. display: block;
  279. height: 3px;
  280. padding: 0px;
  281. overflow: hidden;
  282. border-radius: 0em 0em 0.3125em 0.3125em;
  283. }
  284. .ui.progress.attached .bar {
  285. border-radius: 0em;
  286. }
  287. /* top attached */
  288. .ui.progress.top.attached,
  289. .ui.progress.top.attached .bar {
  290. top: 0px;
  291. border-radius: 0.3125em 0.3125em 0em 0em;
  292. }
  293. .ui.progress.top.attached .bar {
  294. border-radius: 0em;
  295. }
  296. /*--------------
  297. Colors
  298. ---------------*/
  299. .ui.blue.progress .bar {
  300. background-color: #0074d9;
  301. }
  302. .ui.black.progress .bar {
  303. background-color: #191919;
  304. }
  305. .ui.green.progress .bar {
  306. background-color: #2ecc40;
  307. }
  308. .ui.red.progress .bar {
  309. background-color: #ff4136;
  310. }
  311. .ui.purple.progress .bar {
  312. background-color: #a24096;
  313. }
  314. .ui.teal.progress .bar {
  315. background-color: #39cccc;
  316. }
  317. /*--------------
  318. Striped
  319. ---------------*/
  320. .ui.progress.striped .bar {
  321. background-size: 30px 30px;
  322. 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);
  323. 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);
  324. }
  325. .ui.progress.active.striped .bar:after {
  326. -webkit-animation: none;
  327. animation: none;
  328. }
  329. .ui.progress.active.striped .bar {
  330. -webkit-animation: progress-striped 3s linear infinite;
  331. animation: progress-striped 3s linear infinite;
  332. }
  333. @-webkit-keyframes progress-striped {
  334. 0% {
  335. background-position: 0px 0;
  336. }
  337. 100% {
  338. background-position: 60px 0;
  339. }
  340. }
  341. @keyframes progress-striped {
  342. 0% {
  343. background-position: 0px 0;
  344. }
  345. 100% {
  346. background-position: 60px 0;
  347. }
  348. }
  349. /*--------------
  350. Sizes
  351. ---------------*/
  352. .ui.small.progress .bar {
  353. height: 14px;
  354. }