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.

467 lines
9.2 KiB

9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 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
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
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Progress Bar
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Progress
  13. *******************************/
  14. .ui.progress {
  15. position: relative;
  16. display: block;
  17. max-width: 100%;
  18. border: none;
  19. margin: 1em 0em 2.5em;
  20. box-shadow: none;
  21. background: rgba(0, 0, 0, 0.1);
  22. padding: 0em;
  23. border-radius: 0.2857rem;
  24. }
  25. .ui.progress:first-child {
  26. margin: 0em 0em 2.5em;
  27. }
  28. .ui.progress:last-child {
  29. margin: 0em 0em 1.5em;
  30. }
  31. /*******************************
  32. Content
  33. *******************************/
  34. /* Activity Bar */
  35. .ui.progress .bar {
  36. display: block;
  37. line-height: 1;
  38. position: relative;
  39. width: 0%;
  40. min-width: 2em;
  41. background: #888888;
  42. border-radius: 0.2857rem;
  43. -webkit-transition: width 0.2s ease, background-color 0.2s ease;
  44. transition: width 0.2s ease, background-color 0.2s ease;
  45. }
  46. /* Percent Complete */
  47. .ui.progress .bar > .progress {
  48. white-space: nowrap;
  49. position: absolute;
  50. width: auto;
  51. font-size: 0.92857143em;
  52. top: 50%;
  53. right: 0.5em;
  54. left: auto;
  55. bottom: auto;
  56. color: rgba(255, 255, 255, 0.7);
  57. text-shadow: none;
  58. margin-top: -0.5em;
  59. font-weight: bold;
  60. text-align: left;
  61. }
  62. /* Label */
  63. .ui.progress > .label {
  64. position: absolute;
  65. width: 100%;
  66. font-size: 1em;
  67. top: 100%;
  68. right: auto;
  69. left: 0%;
  70. bottom: auto;
  71. color: rgba(0, 0, 0, 0.87);
  72. font-weight: bold;
  73. text-shadow: none;
  74. margin-top: 0.2em;
  75. text-align: center;
  76. -webkit-transition: color 0.4s ease;
  77. transition: color 0.4s ease;
  78. }
  79. /*******************************
  80. Types
  81. *******************************/
  82. /* Indicating */
  83. .ui.indicating.progress[data-percent^="1"] .bar,
  84. .ui.indicating.progress[data-percent^="2"] .bar {
  85. background-color: #d95c5c;
  86. }
  87. .ui.indicating.progress[data-percent^="3"] .bar {
  88. background-color: #efbc72;
  89. }
  90. .ui.indicating.progress[data-percent^="4"] .bar,
  91. .ui.indicating.progress[data-percent^="5"] .bar {
  92. background-color: #e6bb48;
  93. }
  94. .ui.indicating.progress[data-percent^="6"] .bar {
  95. background-color: #ddc928;
  96. }
  97. .ui.indicating.progress[data-percent^="7"] .bar,
  98. .ui.indicating.progress[data-percent^="8"] .bar {
  99. background-color: #b4d95c;
  100. }
  101. .ui.indicating.progress[data-percent^="9"] .bar,
  102. .ui.indicating.progress[data-percent^="100"] .bar {
  103. background-color: #66da81;
  104. }
  105. /* Indicating Label */
  106. .ui.indicating.progress[data-percent^="1"] .label,
  107. .ui.indicating.progress[data-percent^="2"] .label {
  108. color: #ca4d4d;
  109. }
  110. .ui.indicating.progress[data-percent^="3"] .label {
  111. color: #b27f22;
  112. }
  113. .ui.indicating.progress[data-percent^="4"] .label,
  114. .ui.indicating.progress[data-percent^="5"] .label {
  115. color: #c09522;
  116. }
  117. .ui.indicating.progress[data-percent^="6"] .label {
  118. color: #ada422;
  119. }
  120. .ui.indicating.progress[data-percent^="7"] .label,
  121. .ui.indicating.progress[data-percent^="8"] .label {
  122. color: #7a9f22;
  123. }
  124. .ui.indicating.progress[data-percent^="9"] .label,
  125. .ui.indicating.progress[data-percent^="100"] .label {
  126. color: #22963d;
  127. }
  128. /* Single Digits */
  129. .ui.indicating.progress[data-percent="1"] .bar,
  130. .ui.indicating.progress[data-percent="2"] .bar,
  131. .ui.indicating.progress[data-percent="3"] .bar,
  132. .ui.indicating.progress[data-percent="4"] .bar,
  133. .ui.indicating.progress[data-percent="5"] .bar,
  134. .ui.indicating.progress[data-percent="6"] .bar,
  135. .ui.indicating.progress[data-percent="7"] .bar,
  136. .ui.indicating.progress[data-percent="8"] .bar,
  137. .ui.indicating.progress[data-percent="9"] .bar {
  138. background-color: #d95c5c;
  139. }
  140. .ui.indicating.progress[data-percent="1"] .label,
  141. .ui.indicating.progress[data-percent="2"] .label,
  142. .ui.indicating.progress[data-percent="3"] .label,
  143. .ui.indicating.progress[data-percent="4"] .label,
  144. .ui.indicating.progress[data-percent="5"] .label,
  145. .ui.indicating.progress[data-percent="6"] .label,
  146. .ui.indicating.progress[data-percent="7"] .label,
  147. .ui.indicating.progress[data-percent="8"] .label,
  148. .ui.indicating.progress[data-percent="9"] .label {
  149. color: #ca4d4d;
  150. }
  151. /* Indicating Success */
  152. .ui.indicating.progress.success .label {
  153. color: #1a531b;
  154. }
  155. /*******************************
  156. States
  157. *******************************/
  158. /*--------------
  159. Success
  160. ---------------*/
  161. .ui.progress.success .bar {
  162. background-color: #21ba45 !important;
  163. }
  164. .ui.progress.success .bar,
  165. .ui.progress.success .bar::after {
  166. -webkit-animation: none !important;
  167. animation: none !important;
  168. }
  169. .ui.progress.success > .label {
  170. color: #1a531b;
  171. }
  172. /*--------------
  173. Warning
  174. ---------------*/
  175. .ui.progress.warning .bar {
  176. background-color: #f2c037 !important;
  177. }
  178. .ui.progress.warning .bar,
  179. .ui.progress.warning .bar::after {
  180. -webkit-animation: none !important;
  181. animation: none !important;
  182. }
  183. .ui.progress.warning > .label {
  184. color: #794b02;
  185. }
  186. /*--------------
  187. Error
  188. ---------------*/
  189. .ui.progress.error .bar {
  190. background-color: #db2828 !important;
  191. }
  192. .ui.progress.error .bar,
  193. .ui.progress.error .bar::after {
  194. -webkit-animation: none !important;
  195. animation: none !important;
  196. }
  197. .ui.progress.error > .label {
  198. color: #912d2b;
  199. }
  200. /*--------------
  201. Active
  202. ---------------*/
  203. .ui.active.progress .bar {
  204. position: relative;
  205. min-width: 2em;
  206. }
  207. .ui.active.progress .bar::after {
  208. content: '';
  209. opacity: 0;
  210. position: absolute;
  211. top: 0px;
  212. left: 0px;
  213. right: 0px;
  214. bottom: 0px;
  215. background: #ffffff;
  216. border-radius: 0.2857rem;
  217. -webkit-animation: progress-active 2s ease infinite;
  218. animation: progress-active 2s ease infinite;
  219. }
  220. @-webkit-keyframes progress-active {
  221. 0% {
  222. opacity: 0.3;
  223. width: 0;
  224. }
  225. 100% {
  226. opacity: 0;
  227. width: 100%;
  228. }
  229. }
  230. @keyframes progress-active {
  231. 0% {
  232. opacity: 0.3;
  233. width: 0;
  234. }
  235. 100% {
  236. opacity: 0;
  237. width: 100%;
  238. }
  239. }
  240. /*--------------
  241. Disabled
  242. ---------------*/
  243. .ui.disabled.progress {
  244. opacity: 0.35;
  245. }
  246. .ui.disabled.progress .bar,
  247. .ui.disabled.progress .bar::after {
  248. -webkit-animation: none !important;
  249. animation: none !important;
  250. }
  251. /*******************************
  252. Variations
  253. *******************************/
  254. /*--------------
  255. Inverted
  256. ---------------*/
  257. .ui.inverted.progress {
  258. background: rgba(255, 255, 255, 0.08);
  259. border: none;
  260. }
  261. .ui.inverted.progress .bar {
  262. background: #888888;
  263. }
  264. .ui.inverted.progress .bar > .progress {
  265. color: #fafafa;
  266. }
  267. .ui.inverted.progress > .label {
  268. color: #ffffff;
  269. }
  270. .ui.inverted.progress.success > .label {
  271. color: #21ba45;
  272. }
  273. .ui.inverted.progress.warning > .label {
  274. color: #f2c037;
  275. }
  276. .ui.inverted.progress.error > .label {
  277. color: #db2828;
  278. }
  279. /*--------------
  280. Attached
  281. ---------------*/
  282. /* bottom attached */
  283. .ui.progress.attached {
  284. background: transparent;
  285. position: relative;
  286. border: none;
  287. margin: 0em;
  288. }
  289. .ui.progress.attached,
  290. .ui.progress.attached .bar {
  291. display: block;
  292. height: 0.2rem;
  293. padding: 0px;
  294. overflow: hidden;
  295. border-radius: 0em 0em 0.2857rem 0.2857rem;
  296. }
  297. .ui.progress.attached .bar {
  298. border-radius: 0em;
  299. }
  300. /* top attached */
  301. .ui.progress.top.attached,
  302. .ui.progress.top.attached .bar {
  303. top: 0px;
  304. border-radius: 0.2857rem 0.2857rem 0em 0em;
  305. }
  306. .ui.progress.top.attached .bar {
  307. border-radius: 0em;
  308. }
  309. /* Coupling */
  310. .ui.segment > .ui.attached.progress,
  311. .ui.card > .ui.attached.progress {
  312. position: absolute;
  313. top: auto;
  314. left: 0;
  315. bottom: 100%;
  316. width: 100%;
  317. }
  318. .ui.segment > .ui.bottom.attached.progress,
  319. .ui.card > .ui.bottom.attached.progress {
  320. top: 100%;
  321. bottom: auto;
  322. }
  323. /*--------------
  324. Colors
  325. ---------------*/
  326. .ui.black.progress .bar {
  327. background-color: #1b1c1d;
  328. }
  329. .ui.blue.progress .bar {
  330. background-color: #2185d0;
  331. }
  332. .ui.green.progress .bar {
  333. background-color: #21ba45;
  334. }
  335. .ui.orange.progress .bar {
  336. background-color: #f2711c;
  337. }
  338. .ui.pink.progress .bar {
  339. background-color: #e03997;
  340. }
  341. .ui.purple.progress .bar {
  342. background-color: #6a33c8;
  343. }
  344. .ui.red.progress .bar {
  345. background-color: #db2828;
  346. }
  347. .ui.teal.progress .bar {
  348. background-color: #00b5ad;
  349. }
  350. .ui.yellow.progress .bar {
  351. background-color: #fbbd08;
  352. }
  353. .ui.black.inverted.progress .bar {
  354. background-color: #545454;
  355. }
  356. .ui.blue.inverted.progress .bar {
  357. background-color: #54c8ff;
  358. }
  359. .ui.green.inverted.progress .bar {
  360. background-color: #2ecc40;
  361. }
  362. .ui.orange.inverted.progress .bar {
  363. background-color: #ff851b;
  364. }
  365. .ui.pink.inverted.progress .bar {
  366. background-color: #ff8edf;
  367. }
  368. .ui.purple.inverted.progress .bar {
  369. background-color: #cdc6ff;
  370. }
  371. .ui.red.inverted.progress .bar {
  372. background-color: #ff695e;
  373. }
  374. .ui.teal.inverted.progress .bar {
  375. background-color: #6dffff;
  376. }
  377. .ui.yellow.inverted.progress .bar {
  378. background-color: #ffe21f;
  379. }
  380. /*--------------
  381. Sizes
  382. ---------------*/
  383. .ui.tiny.progress {
  384. font-size: 0.85714286rem;
  385. }
  386. .ui.tiny.progress .bar {
  387. height: 0.5em;
  388. }
  389. .ui.small.progress {
  390. font-size: 0.92857143rem;
  391. }
  392. .ui.small.progress .bar {
  393. height: 1em;
  394. }
  395. .ui.progress {
  396. font-size: 1rem;
  397. }
  398. .ui.progress .bar {
  399. height: 1.75em;
  400. }
  401. .ui.large.progress {
  402. font-size: 1.14285714rem;
  403. }
  404. .ui.large.progress .bar {
  405. height: 2.5em;
  406. }
  407. .ui.big.progress {
  408. font-size: 1.28571429rem;
  409. }
  410. .ui.big.progress .bar {
  411. height: 3.5em;
  412. }
  413. /*******************************
  414. Progress
  415. *******************************/
  416. /*******************************
  417. Site Overrides
  418. *******************************/