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.

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