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.

517 lines
9.9 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
9 years ago
10 years ago
9 years ago
9 years ago
9 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
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 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
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
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
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
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
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.1.4 - 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.28571429rem;
  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.28571429rem;
  43. -webkit-transition: width 0.1s ease, background-color 0.1s ease;
  44. transition: width 0.1s ease, background-color 0.1s 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: rgba(0, 0, 0, 0.87);
  109. }
  110. .ui.indicating.progress[data-percent^="3"] .label {
  111. color: rgba(0, 0, 0, 0.87);
  112. }
  113. .ui.indicating.progress[data-percent^="4"] .label,
  114. .ui.indicating.progress[data-percent^="5"] .label {
  115. color: rgba(0, 0, 0, 0.87);
  116. }
  117. .ui.indicating.progress[data-percent^="6"] .label {
  118. color: rgba(0, 0, 0, 0.87);
  119. }
  120. .ui.indicating.progress[data-percent^="7"] .label,
  121. .ui.indicating.progress[data-percent^="8"] .label {
  122. color: rgba(0, 0, 0, 0.87);
  123. }
  124. .ui.indicating.progress[data-percent^="9"] .label,
  125. .ui.indicating.progress[data-percent^="100"] .label {
  126. color: rgba(0, 0, 0, 0.87);
  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: rgba(0, 0, 0, 0.87);
  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.28571429rem;
  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: #f9fafb;
  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.28571429rem 0.28571429rem;
  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.28571429rem 0.28571429rem 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. /* Red */
  327. .ui.red.progress .bar {
  328. background-color: #db2828;
  329. }
  330. .ui.red.inverted.progress .bar {
  331. background-color: #ff695e;
  332. }
  333. /* Orange */
  334. .ui.orange.progress .bar {
  335. background-color: #f2711c;
  336. }
  337. .ui.orange.inverted.progress .bar {
  338. background-color: #ff851b;
  339. }
  340. /* Yellow */
  341. .ui.yellow.progress .bar {
  342. background-color: #fbbd08;
  343. }
  344. .ui.yellow.inverted.progress .bar {
  345. background-color: #ffe21f;
  346. }
  347. /* Olive */
  348. .ui.olive.progress .bar {
  349. background-color: #b5cc18;
  350. }
  351. .ui.olive.inverted.progress .bar {
  352. background-color: #d9e778;
  353. }
  354. /* Green */
  355. .ui.green.progress .bar {
  356. background-color: #21ba45;
  357. }
  358. .ui.green.inverted.progress .bar {
  359. background-color: #2ecc40;
  360. }
  361. /* Teal */
  362. .ui.teal.progress .bar {
  363. background-color: #00b5ad;
  364. }
  365. .ui.teal.inverted.progress .bar {
  366. background-color: #6dffff;
  367. }
  368. /* Blue */
  369. .ui.blue.progress .bar {
  370. background-color: #2185d0;
  371. }
  372. .ui.blue.inverted.progress .bar {
  373. background-color: #54c8ff;
  374. }
  375. /* Violet */
  376. .ui.violet.progress .bar {
  377. background-color: #6435c9;
  378. }
  379. .ui.violet.inverted.progress .bar {
  380. background-color: #a291fb;
  381. }
  382. /* Purple */
  383. .ui.purple.progress .bar {
  384. background-color: #a333c8;
  385. }
  386. .ui.purple.inverted.progress .bar {
  387. background-color: #dc73ff;
  388. }
  389. /* Pink */
  390. .ui.pink.progress .bar {
  391. background-color: #e03997;
  392. }
  393. .ui.pink.inverted.progress .bar {
  394. background-color: #ff8edf;
  395. }
  396. /* Brown */
  397. .ui.brown.progress .bar {
  398. background-color: #a5673f;
  399. }
  400. .ui.brown.inverted.progress .bar {
  401. background-color: #d67c1c;
  402. }
  403. /* Grey */
  404. .ui.grey.progress .bar {
  405. background-color: #767676;
  406. }
  407. .ui.grey.inverted.progress .bar {
  408. background-color: #dcddde;
  409. }
  410. /* Black */
  411. .ui.black.progress .bar {
  412. background-color: #1b1c1d;
  413. }
  414. .ui.black.inverted.progress .bar {
  415. background-color: #545454;
  416. }
  417. /*--------------
  418. Sizes
  419. ---------------*/
  420. .ui.tiny.progress {
  421. font-size: 0.85714286rem;
  422. }
  423. .ui.tiny.progress .bar {
  424. height: 0.5em;
  425. }
  426. .ui.small.progress {
  427. font-size: 0.92857143rem;
  428. }
  429. .ui.small.progress .bar {
  430. height: 1em;
  431. }
  432. .ui.progress {
  433. font-size: 1rem;
  434. }
  435. .ui.progress .bar {
  436. height: 1.75em;
  437. }
  438. .ui.large.progress {
  439. font-size: 1.14285714rem;
  440. }
  441. .ui.large.progress .bar {
  442. height: 2.5em;
  443. }
  444. .ui.big.progress {
  445. font-size: 1.28571429rem;
  446. }
  447. .ui.big.progress .bar {
  448. height: 3.5em;
  449. }
  450. /*******************************
  451. Progress
  452. *******************************/
  453. /*******************************
  454. Site Overrides
  455. *******************************/