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.

364 lines
9.0 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
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. /* Used to match floats with text */
  57. /*-------------------
  58. Background Colors
  59. --------------------*/
  60. /* Used for differentiating neutrals */
  61. /* Used for differentiating layers */
  62. /*-------------------
  63. Grid
  64. --------------------*/
  65. /*-------------------
  66. Breakpoints
  67. --------------------*/
  68. /*******************************
  69. Power-User
  70. *******************************/
  71. /*-------------------
  72. Icons
  73. --------------------*/
  74. /* Max Width of Icon */
  75. /*-------------------
  76. Easing
  77. --------------------*/
  78. /*--- Neutrals ---*/
  79. /*--- Colored Backgrounds ---*/
  80. /*--- Colored Text ---*/
  81. /*--- Colored Headers ---*/
  82. /*-------------------
  83. Emotive Colors
  84. --------------------*/
  85. /* Mood */
  86. /* Solid Background Color */
  87. /* Status */
  88. /* Darkened Headers */
  89. /*-------------------
  90. Neutral Text
  91. --------------------*/
  92. /*-------------------
  93. Brand Colors
  94. --------------------*/
  95. /*-------------------
  96. Grid Columns
  97. --------------------*/
  98. /*-------------------
  99. Borders
  100. --------------------*/
  101. /*-------------------
  102. Sizes
  103. --------------------*/
  104. /*-------------------
  105. Transitions
  106. --------------------*/
  107. /*******************************
  108. States
  109. *******************************/
  110. /*-------------------
  111. Disabled
  112. --------------------*/
  113. /*-------------------
  114. Hover
  115. --------------------*/
  116. /*--- Colors ---*/
  117. /*--- Emotive ---*/
  118. /*--- Neutrals ---*/
  119. /*-------------------
  120. Down (:active)
  121. --------------------*/
  122. /*--- Colors ---*/
  123. /*--- Emotive ---*/
  124. /*--- Neutrals ---*/
  125. /*-------------------
  126. Active
  127. --------------------*/
  128. /*--- Standard ---*/
  129. /*--- Emotive ---*/
  130. /*--- Neutrals ---*/
  131. /*******************************
  132. Progress
  133. *******************************/
  134. /*-------------------
  135. Element
  136. --------------------*/
  137. /*-------------------
  138. States
  139. --------------------*/
  140. /*-------------------
  141. Types
  142. --------------------*/
  143. /*-------------------
  144. Variations
  145. --------------------*/
  146. /*------------------
  147. Load Theme
  148. -------------------*/
  149. /*------------------
  150. Load Site
  151. -------------------*/
  152. /*******************************
  153. User Global Variables
  154. *******************************/
  155. /*******************************
  156. User Variable Overrides
  157. *******************************/
  158. /*------------------
  159. Override Mix-in
  160. -------------------*/
  161. .ui.progress {
  162. border: 1px solid rgba(0, 0, 0, 0.1);
  163. width: 100%;
  164. height: 35px;
  165. background-color: #FAFAFA;
  166. padding: 5px;
  167. border-radius: 0.3125em;
  168. }
  169. .ui.progress .bar {
  170. display: inline-block;
  171. height: 100%;
  172. background-color: #CCCCCC;
  173. border-radius: 3px;
  174. -webkit-transition: width 1s ease-in-out, background-color 1s ease-out;
  175. transition: width 1s ease-in-out, background-color 1s ease-out;
  176. }
  177. /*******************************
  178. States
  179. *******************************/
  180. /*--------------
  181. Successful
  182. ---------------*/
  183. .ui.successful.progress .bar {
  184. background-color: #5bbd72 !important;
  185. }
  186. .ui.successful.progress .bar,
  187. .ui.successful.progress .bar::after {
  188. -webkit-animation: none !important;
  189. animation: none !important;
  190. }
  191. .ui.warning.progress .bar {
  192. background-color: #e9bd16 !important;
  193. }
  194. .ui.warning.progress .bar,
  195. .ui.warning.progress .bar::after {
  196. -webkit-animation: none !important;
  197. animation: none !important;
  198. }
  199. /*--------------
  200. Failed
  201. ---------------*/
  202. .ui.failed.progress .bar {
  203. background-color: #d95c5c !important;
  204. }
  205. .ui.failed.progress .bar,
  206. .ui.failed.progress .bar::after {
  207. -webkit-animation: none !important;
  208. animation: none !important;
  209. }
  210. /*--------------
  211. Active
  212. ---------------*/
  213. .ui.active.progress .bar {
  214. position: relative;
  215. }
  216. .ui.active.progress .bar::after {
  217. content: '';
  218. opacity: 0;
  219. position: absolute;
  220. top: 0px;
  221. left: 0px;
  222. right: 0px;
  223. bottom: 0px;
  224. background: #FFFFFF;
  225. border-radius: 3px;
  226. -webkit-animation: progress-active 2s ease-out infinite;
  227. animation: progress-active 2s ease-out infinite;
  228. }
  229. @-webkit-keyframes progress-active {
  230. 0% {
  231. opacity: 0;
  232. width: 0;
  233. }
  234. 50% {
  235. opacity: 0.3;
  236. }
  237. 100% {
  238. opacity: 0;
  239. width: 100%;
  240. }
  241. }
  242. @keyframes progress-active {
  243. 0% {
  244. opacity: 0;
  245. width: 0;
  246. }
  247. 50% {
  248. opacity: 0.3;
  249. }
  250. 100% {
  251. opacity: 0;
  252. width: 100%;
  253. }
  254. }
  255. /*--------------
  256. Disabled
  257. ---------------*/
  258. .ui.disabled.progress {
  259. opacity: 0.35;
  260. }
  261. .ui.disabled.progress .bar,
  262. .ui.disabled.progress .bar::after {
  263. -webkit-animation: none !important;
  264. animation: none !important;
  265. }
  266. /*******************************
  267. Variations
  268. *******************************/
  269. /*--------------
  270. Attached
  271. ---------------*/
  272. /* bottom attached */
  273. .ui.progress.attached {
  274. position: relative;
  275. border: none;
  276. }
  277. .ui.progress.attached,
  278. .ui.progress.attached .bar {
  279. display: block;
  280. height: 3px;
  281. padding: 0px;
  282. overflow: hidden;
  283. border-radius: 0em 0em 0.3125em 0.3125em;
  284. }
  285. .ui.progress.attached .bar {
  286. border-radius: 0em;
  287. }
  288. /* top attached */
  289. .ui.progress.top.attached,
  290. .ui.progress.top.attached .bar {
  291. top: 0px;
  292. border-radius: 0.3125em 0.3125em 0em 0em;
  293. }
  294. .ui.progress.top.attached .bar {
  295. border-radius: 0em;
  296. }
  297. /*--------------
  298. Colors
  299. ---------------*/
  300. .ui.blue.progress .bar {
  301. background-color: #3b83c0;
  302. }
  303. .ui.black.progress .bar {
  304. background-color: #1b1c1d;
  305. }
  306. .ui.green.progress .bar {
  307. background-color: #5bbd72;
  308. }
  309. .ui.red.progress .bar {
  310. background-color: #d95c5c;
  311. }
  312. .ui.purple.progress .bar {
  313. background-color: #564f8a;
  314. }
  315. .ui.teal.progress .bar {
  316. background-color: #00b5ad;
  317. }
  318. /*--------------
  319. Striped
  320. ---------------*/
  321. .ui.progress.striped .bar {
  322. background-size: 30px 30px;
  323. 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);
  324. 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);
  325. }
  326. .ui.progress.active.striped .bar:after {
  327. -webkit-animation: none;
  328. animation: none;
  329. }
  330. .ui.progress.active.striped .bar {
  331. -webkit-animation: progress-striped 3s linear infinite;
  332. animation: progress-striped 3s linear infinite;
  333. }
  334. @-webkit-keyframes progress-striped {
  335. 0% {
  336. background-position: 0px 0;
  337. }
  338. 100% {
  339. background-position: 60px 0;
  340. }
  341. }
  342. @keyframes progress-striped {
  343. 0% {
  344. background-position: 0px 0;
  345. }
  346. 100% {
  347. background-position: 60px 0;
  348. }
  349. }
  350. /*--------------
  351. Sizes
  352. ---------------*/
  353. .ui.small.progress .bar {
  354. height: 14px;
  355. }