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.

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