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.

461 lines
9.1 KiB

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