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.

400 lines
8.3 KiB

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