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.

514 lines
9.8 KiB

9 years ago
9 years ago
10 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
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
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
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
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 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
9 years ago
9 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
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
  1. /*!
  2. * # Semantic UI 2.5.0 - Progress Bar
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Progress
  12. *******************************/
  13. .ui.progress {
  14. position: relative;
  15. display: block;
  16. max-width: 100%;
  17. border: none;
  18. margin: 1em 0em 2.5em;
  19. box-shadow: none;
  20. background: rgba(0, 0, 0, 0.1);
  21. padding: 0em;
  22. border-radius: 0.28571429rem;
  23. }
  24. .ui.progress:first-child {
  25. margin: 0em 0em 2.5em;
  26. }
  27. .ui.progress:last-child {
  28. margin: 0em 0em 1.5em;
  29. }
  30. /*******************************
  31. Content
  32. *******************************/
  33. /* Activity Bar */
  34. .ui.progress .bar {
  35. display: block;
  36. line-height: 1;
  37. position: relative;
  38. width: 0%;
  39. min-width: 2em;
  40. background: #888888;
  41. border-radius: 0.28571429rem;
  42. transition: width 0.1s ease, background-color 0.1s ease;
  43. }
  44. /* Percent Complete */
  45. .ui.progress .bar > .progress {
  46. white-space: nowrap;
  47. position: absolute;
  48. width: auto;
  49. font-size: 0.92857143em;
  50. top: 50%;
  51. right: 0.5em;
  52. left: auto;
  53. bottom: auto;
  54. color: rgba(255, 255, 255, 0.7);
  55. text-shadow: none;
  56. margin-top: -0.5em;
  57. font-weight: bold;
  58. text-align: left;
  59. }
  60. /* Label */
  61. .ui.progress > .label {
  62. position: absolute;
  63. width: 100%;
  64. font-size: 1em;
  65. top: 100%;
  66. right: auto;
  67. left: 0%;
  68. bottom: auto;
  69. color: rgba(0, 0, 0, 0.87);
  70. font-weight: bold;
  71. text-shadow: none;
  72. margin-top: 0.2em;
  73. text-align: center;
  74. transition: color 0.4s ease;
  75. }
  76. /*******************************
  77. Types
  78. *******************************/
  79. /* Indicating */
  80. .ui.indicating.progress[data-percent^="1"] .bar,
  81. .ui.indicating.progress[data-percent^="2"] .bar {
  82. background-color: #D95C5C;
  83. }
  84. .ui.indicating.progress[data-percent^="3"] .bar {
  85. background-color: #EFBC72;
  86. }
  87. .ui.indicating.progress[data-percent^="4"] .bar,
  88. .ui.indicating.progress[data-percent^="5"] .bar {
  89. background-color: #E6BB48;
  90. }
  91. .ui.indicating.progress[data-percent^="6"] .bar {
  92. background-color: #DDC928;
  93. }
  94. .ui.indicating.progress[data-percent^="7"] .bar,
  95. .ui.indicating.progress[data-percent^="8"] .bar {
  96. background-color: #B4D95C;
  97. }
  98. .ui.indicating.progress[data-percent^="9"] .bar,
  99. .ui.indicating.progress[data-percent^="100"] .bar {
  100. background-color: #66DA81;
  101. }
  102. /* Indicating Label */
  103. .ui.indicating.progress[data-percent^="1"] .label,
  104. .ui.indicating.progress[data-percent^="2"] .label {
  105. color: rgba(0, 0, 0, 0.87);
  106. }
  107. .ui.indicating.progress[data-percent^="3"] .label {
  108. color: rgba(0, 0, 0, 0.87);
  109. }
  110. .ui.indicating.progress[data-percent^="4"] .label,
  111. .ui.indicating.progress[data-percent^="5"] .label {
  112. color: rgba(0, 0, 0, 0.87);
  113. }
  114. .ui.indicating.progress[data-percent^="6"] .label {
  115. color: rgba(0, 0, 0, 0.87);
  116. }
  117. .ui.indicating.progress[data-percent^="7"] .label,
  118. .ui.indicating.progress[data-percent^="8"] .label {
  119. color: rgba(0, 0, 0, 0.87);
  120. }
  121. .ui.indicating.progress[data-percent^="9"] .label,
  122. .ui.indicating.progress[data-percent^="100"] .label {
  123. color: rgba(0, 0, 0, 0.87);
  124. }
  125. /* Single Digits */
  126. .ui.indicating.progress[data-percent="1"] .bar,
  127. .ui.indicating.progress[data-percent="2"] .bar,
  128. .ui.indicating.progress[data-percent="3"] .bar,
  129. .ui.indicating.progress[data-percent="4"] .bar,
  130. .ui.indicating.progress[data-percent="5"] .bar,
  131. .ui.indicating.progress[data-percent="6"] .bar,
  132. .ui.indicating.progress[data-percent="7"] .bar,
  133. .ui.indicating.progress[data-percent="8"] .bar,
  134. .ui.indicating.progress[data-percent="9"] .bar {
  135. background-color: #D95C5C;
  136. }
  137. .ui.indicating.progress[data-percent="1"] .label,
  138. .ui.indicating.progress[data-percent="2"] .label,
  139. .ui.indicating.progress[data-percent="3"] .label,
  140. .ui.indicating.progress[data-percent="4"] .label,
  141. .ui.indicating.progress[data-percent="5"] .label,
  142. .ui.indicating.progress[data-percent="6"] .label,
  143. .ui.indicating.progress[data-percent="7"] .label,
  144. .ui.indicating.progress[data-percent="8"] .label,
  145. .ui.indicating.progress[data-percent="9"] .label {
  146. color: rgba(0, 0, 0, 0.87);
  147. }
  148. /* Indicating Success */
  149. .ui.indicating.progress.success .label {
  150. color: #1A531B;
  151. }
  152. /*******************************
  153. States
  154. *******************************/
  155. /*--------------
  156. Success
  157. ---------------*/
  158. .ui.progress.success .bar {
  159. background-color: #21BA45 !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: #1A531B;
  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: #794B02;
  182. }
  183. /*--------------
  184. Error
  185. ---------------*/
  186. .ui.progress.error .bar {
  187. background-color: #DB2828 !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.28571429rem;
  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.08);
  256. border: none;
  257. }
  258. .ui.inverted.progress .bar {
  259. background: #888888;
  260. }
  261. .ui.inverted.progress .bar > .progress {
  262. color: #F9FAFB;
  263. }
  264. .ui.inverted.progress > .label {
  265. color: #FFFFFF;
  266. }
  267. .ui.inverted.progress.success > .label {
  268. color: #21BA45;
  269. }
  270. .ui.inverted.progress.warning > .label {
  271. color: #F2C037;
  272. }
  273. .ui.inverted.progress.error > .label {
  274. color: #DB2828;
  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.28571429rem 0.28571429rem;
  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.28571429rem 0.28571429rem 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. /* Red */
  324. .ui.red.progress .bar {
  325. background-color: #DB2828;
  326. }
  327. .ui.red.inverted.progress .bar {
  328. background-color: #FF695E;
  329. }
  330. /* Orange */
  331. .ui.orange.progress .bar {
  332. background-color: #F2711C;
  333. }
  334. .ui.orange.inverted.progress .bar {
  335. background-color: #FF851B;
  336. }
  337. /* Yellow */
  338. .ui.yellow.progress .bar {
  339. background-color: #FBBD08;
  340. }
  341. .ui.yellow.inverted.progress .bar {
  342. background-color: #FFE21F;
  343. }
  344. /* Olive */
  345. .ui.olive.progress .bar {
  346. background-color: #B5CC18;
  347. }
  348. .ui.olive.inverted.progress .bar {
  349. background-color: #D9E778;
  350. }
  351. /* Green */
  352. .ui.green.progress .bar {
  353. background-color: #21BA45;
  354. }
  355. .ui.green.inverted.progress .bar {
  356. background-color: #2ECC40;
  357. }
  358. /* Teal */
  359. .ui.teal.progress .bar {
  360. background-color: #00B5AD;
  361. }
  362. .ui.teal.inverted.progress .bar {
  363. background-color: #6DFFFF;
  364. }
  365. /* Blue */
  366. .ui.blue.progress .bar {
  367. background-color: #2185D0;
  368. }
  369. .ui.blue.inverted.progress .bar {
  370. background-color: #54C8FF;
  371. }
  372. /* Violet */
  373. .ui.violet.progress .bar {
  374. background-color: #6435C9;
  375. }
  376. .ui.violet.inverted.progress .bar {
  377. background-color: #A291FB;
  378. }
  379. /* Purple */
  380. .ui.purple.progress .bar {
  381. background-color: #A333C8;
  382. }
  383. .ui.purple.inverted.progress .bar {
  384. background-color: #DC73FF;
  385. }
  386. /* Pink */
  387. .ui.pink.progress .bar {
  388. background-color: #E03997;
  389. }
  390. .ui.pink.inverted.progress .bar {
  391. background-color: #FF8EDF;
  392. }
  393. /* Brown */
  394. .ui.brown.progress .bar {
  395. background-color: #A5673F;
  396. }
  397. .ui.brown.inverted.progress .bar {
  398. background-color: #D67C1C;
  399. }
  400. /* Grey */
  401. .ui.grey.progress .bar {
  402. background-color: #767676;
  403. }
  404. .ui.grey.inverted.progress .bar {
  405. background-color: #DCDDDE;
  406. }
  407. /* Black */
  408. .ui.black.progress .bar {
  409. background-color: #1B1C1D;
  410. }
  411. .ui.black.inverted.progress .bar {
  412. background-color: #545454;
  413. }
  414. /*--------------
  415. Sizes
  416. ---------------*/
  417. .ui.tiny.progress {
  418. font-size: 0.85714286rem;
  419. }
  420. .ui.tiny.progress .bar {
  421. height: 0.5em;
  422. }
  423. .ui.small.progress {
  424. font-size: 0.92857143rem;
  425. }
  426. .ui.small.progress .bar {
  427. height: 1em;
  428. }
  429. .ui.progress {
  430. font-size: 1rem;
  431. }
  432. .ui.progress .bar {
  433. height: 1.75em;
  434. }
  435. .ui.large.progress {
  436. font-size: 1.14285714rem;
  437. }
  438. .ui.large.progress .bar {
  439. height: 2.5em;
  440. }
  441. .ui.big.progress {
  442. font-size: 1.28571429rem;
  443. }
  444. .ui.big.progress .bar {
  445. height: 3.5em;
  446. }
  447. /*******************************
  448. Progress
  449. *******************************/
  450. /*******************************
  451. Site Overrides
  452. *******************************/