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.

409 lines
8.4 KiB

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
10 years ago
  1. /*!
  2. * # Semantic UI 1.10.3 - Statistic
  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. Statistic
  13. *******************************/
  14. /* Standalone */
  15. .ui.statistic {
  16. display: inline-block;
  17. margin: 1em 0em;
  18. max-width: 175px;
  19. }
  20. .ui.statistic + .ui.statistic {
  21. margin: 0em 0em 0em 1em;
  22. }
  23. .ui.statistic:first-child {
  24. margin-top: 0em;
  25. }
  26. .ui.statistic:last-child {
  27. margin-bottom: 0em;
  28. }
  29. /* Grouped */
  30. .ui.statistics > .statistic {
  31. display: block;
  32. float: left;
  33. margin: 0em 1em 2em;
  34. max-width: 175px;
  35. }
  36. /*******************************
  37. Group
  38. *******************************/
  39. .ui.statistics {
  40. display: block;
  41. margin: 1em -1em;
  42. }
  43. /* Clearing */
  44. .ui.statistics:after {
  45. display: block;
  46. content: ' ';
  47. height: 0px;
  48. clear: both;
  49. overflow: hidden;
  50. visibility: hidden;
  51. }
  52. .ui.statistics:first-child {
  53. margin-top: 0em;
  54. }
  55. .ui.statistics:last-child {
  56. margin-bottom: 0em;
  57. }
  58. /*******************************
  59. Content
  60. *******************************/
  61. /*--------------
  62. Value
  63. ---------------*/
  64. .ui.statistics .statistic > .value,
  65. .ui.statistic > .value {
  66. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  67. font-size: 4rem;
  68. font-weight: normal;
  69. line-height: 1em;
  70. color: #1b1c1d;
  71. text-transform: uppercase;
  72. text-align: center;
  73. }
  74. /*--------------
  75. Label
  76. ---------------*/
  77. .ui.statistics .statistic > .label,
  78. .ui.statistic > .label {
  79. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  80. font-size: 1rem;
  81. font-weight: normal;
  82. color: rgba(0, 0, 0, 0.4);
  83. text-transform: none;
  84. text-align: center;
  85. }
  86. /* Top Label */
  87. .ui.statistics .statistic > .label ~ .value,
  88. .ui.statistic > .label ~ .value {
  89. margin-top: 0rem;
  90. }
  91. /* Bottom Label */
  92. .ui.statistics .statistic > .value ~ .label,
  93. .ui.statistic > .value ~ .label {
  94. margin-top: 0.25rem;
  95. }
  96. /*******************************
  97. Types
  98. *******************************/
  99. /*--------------
  100. Icon Value
  101. ---------------*/
  102. .ui.statistics .statistic > .value .icon,
  103. .ui.statistic > .value .icon {
  104. opacity: 1;
  105. width: auto;
  106. margin: 0em;
  107. }
  108. /*--------------
  109. Text Value
  110. ---------------*/
  111. .ui.statistics .statistic > .text.value,
  112. .ui.statistic > .text.value {
  113. line-height: 1em;
  114. min-height: 2em;
  115. text-align: center;
  116. }
  117. .ui.statistics .statistic > .text.value + .label,
  118. .ui.statistic > .text.value + .label {
  119. text-align: center;
  120. }
  121. /*--------------
  122. Image Value
  123. ---------------*/
  124. .ui.statistics .statistic > .value img,
  125. .ui.statistic > .value img {
  126. max-height: 3rem;
  127. vertical-align: baseline;
  128. }
  129. /*******************************
  130. Variations
  131. *******************************/
  132. /*--------------
  133. Horizontal
  134. ---------------*/
  135. .ui.horizontal.statistics,
  136. .ui.horizontal.statistic {
  137. display: block;
  138. margin: 0em;
  139. max-width: 9999px;
  140. }
  141. .ui.horizontal.statistics .statistic {
  142. float: none;
  143. margin: 1em 0em;
  144. max-width: 9999px;
  145. }
  146. .ui.horizontal.statistic > .text.value,
  147. .ui.horizontal.statistics > .statistic > .text.value {
  148. min-height: 0em !important;
  149. }
  150. .ui.horizontal.statistics .statistic > .value .icon,
  151. .ui.horizontal.statistic > .value .icon {
  152. width: 1.18em;
  153. }
  154. .ui.horizontal.statistics .statistic > .value,
  155. .ui.horizontal.statistic > .value {
  156. display: inline-block;
  157. vertical-align: middle;
  158. }
  159. .ui.horizontal.statistics .statistic > .label,
  160. .ui.horizontal.statistic > .label {
  161. display: inline-block;
  162. vertical-align: middle;
  163. margin: 0em 0em 0em 0.75em;
  164. }
  165. /*--------------
  166. Colors
  167. ---------------*/
  168. .ui.blue.statistics .statistic > .value,
  169. .ui.statistics .blue.statistic > .value,
  170. .ui.blue.statistic > .value {
  171. color: #3b83c0;
  172. }
  173. .ui.green.statistics .statistic > .value,
  174. .ui.statistics .green.statistic > .value,
  175. .ui.green.statistic > .value {
  176. color: #5bbd72;
  177. }
  178. .ui.orange.statistics .statistic > .value,
  179. .ui.statistics .orange.statistic > .value,
  180. .ui.orange.statistic > .value {
  181. color: #e07b53;
  182. }
  183. .ui.pink.statistics .statistic > .value,
  184. .ui.statistics .pink.statistic > .value,
  185. .ui.pink.statistic > .value {
  186. color: #d9499a;
  187. }
  188. .ui.purple.statistics .statistic > .value,
  189. .ui.statistics .purple.statistic > .value,
  190. .ui.purple.statistic > .value {
  191. color: #564f8a;
  192. }
  193. .ui.red.statistics .statistic > .value,
  194. .ui.statistics .red.statistic > .value,
  195. .ui.red.statistic > .value {
  196. color: #d95c5c;
  197. }
  198. .ui.teal.statistics .statistic > .value,
  199. .ui.statistics .teal.statistic > .value,
  200. .ui.teal.statistic > .value {
  201. color: #00b5ad;
  202. }
  203. .ui.yellow.statistics .statistic > .value,
  204. .ui.statistics .yellow.statistic > .value,
  205. .ui.yellow.statistic > .value {
  206. color: #f2c61f;
  207. }
  208. /*--------------
  209. Floated
  210. ---------------*/
  211. .ui[class*="left floated"].statistic {
  212. float: left;
  213. margin: 0em 2em 1em 0em;
  214. }
  215. .ui[class*="right floated"].statistic {
  216. float: right;
  217. margin: 0em 0em 1em 2em;
  218. }
  219. .ui.floated.statistic:last-child {
  220. margin-bottom: 0em;
  221. }
  222. /*--------------
  223. Inverted
  224. ---------------*/
  225. .ui.inverted.statistic .value {
  226. color: #ffffff;
  227. }
  228. .ui.inverted.statistic .label {
  229. color: rgba(255, 255, 255, 0.8);
  230. }
  231. .ui.inverted.blue.statistics .statistic > .value,
  232. .ui.statistics .inverted.blue.statistic > .value,
  233. .ui.inverted.blue.statistic > .value {
  234. color: #54c8ff;
  235. }
  236. .ui.inverted.green.statistics .statistic > .value,
  237. .ui.statistics .inverted.green.statistic > .value,
  238. .ui.inverted.green.statistic > .value {
  239. color: #2ecc40;
  240. }
  241. .ui.inverted.orange.statistics .statistic > .value,
  242. .ui.statistics .inverted.orange.statistic > .value,
  243. .ui.inverted.orange.statistic > .value {
  244. color: #ff851b;
  245. }
  246. .ui.inverted.pink.statistics .statistic > .value,
  247. .ui.statistics .inverted.pink.statistic > .value,
  248. .ui.inverted.pink.statistic > .value {
  249. color: #ff8edf;
  250. }
  251. .ui.inverted.purple.statistics .statistic > .value,
  252. .ui.statistics .inverted.purple.statistic > .value,
  253. .ui.inverted.purple.statistic > .value {
  254. color: #cdc6ff;
  255. }
  256. .ui.inverted.red.statistics .statistic > .value,
  257. .ui.statistics .inverted.red.statistic > .value,
  258. .ui.inverted.red.statistic > .value {
  259. color: #ff695e;
  260. }
  261. .ui.inverted.teal.statistics .statistic > .value,
  262. .ui.statistics .inverted.teal.statistic > .value,
  263. .ui.inverted.teal.statistic > .value {
  264. color: #6dffff;
  265. }
  266. .ui.inverted.yellow.statistics .statistic > .value,
  267. .ui.statistics .inverted.yellow.statistic > .value,
  268. .ui.inverted.yellow.statistic > .value {
  269. color: #ffe21f;
  270. }
  271. /*--------------
  272. Sizes
  273. ---------------*/
  274. /* Mini */
  275. .ui.mini.statistics .statistic > .value,
  276. .ui.mini.statistic > .value {
  277. font-size: 1.5rem;
  278. }
  279. .ui.mini.horizontal.statistics .statistic > .value,
  280. .ui.mini.horizontal.statistic > .value {
  281. font-size: 1.5rem;
  282. }
  283. .ui.mini.statistics .statistic > .text.value,
  284. .ui.mini.statistic > .text.value {
  285. font-size: 1rem;
  286. }
  287. /* Tiny */
  288. .ui.tiny.statistics .statistic > .value,
  289. .ui.tiny.statistic > .value {
  290. font-size: 2rem;
  291. }
  292. .ui.tiny.horizontal.statistics .statistic > .value,
  293. .ui.tiny.horizontal.statistic > .value {
  294. font-size: 2rem;
  295. }
  296. .ui.tiny.statistics .statistic > .text.value,
  297. .ui.tiny.statistic > .text.value {
  298. font-size: 1rem;
  299. }
  300. /* Small */
  301. .ui.small.statistics .statistic > .value,
  302. .ui.small.statistic > .value {
  303. font-size: 3rem;
  304. }
  305. .ui.small.horizontal.statistics .statistic > .value,
  306. .ui.small.horizontal.statistic > .value {
  307. font-size: 2rem;
  308. }
  309. .ui.small.statistics .statistic > .text.value,
  310. .ui.small.statistic > .text.value {
  311. font-size: 1.5rem;
  312. }
  313. /* Medium */
  314. .ui.statistics .statistic > .value,
  315. .ui.statistic > .value {
  316. font-size: 4rem;
  317. }
  318. .ui.horizontal.statistics .statistic > .value,
  319. .ui.horizontal.statistic > .value {
  320. font-size: 3rem;
  321. }
  322. .ui.statistics .statistic > .text.value,
  323. .ui.statistic > .text.value {
  324. font-size: 2rem;
  325. }
  326. /* Large */
  327. .ui.large.statistics .statistic > .value,
  328. .ui.large.statistic > .value {
  329. font-size: 5rem;
  330. }
  331. .ui.large.horizontal.statistics .statistic > .value,
  332. .ui.large.horizontal.statistic > .value {
  333. font-size: 4rem;
  334. }
  335. .ui.large.statistics .statistic > .text.value,
  336. .ui.large.statistic > .text.value {
  337. font-size: 2.5rem;
  338. }
  339. /* Huge */
  340. .ui.huge.statistics .statistic > .value,
  341. .ui.huge.statistic > .value {
  342. font-size: 6rem;
  343. }
  344. .ui.huge.horizontal.statistics .statistic > .value,
  345. .ui.huge.horizontal.statistic > .value {
  346. font-size: 5rem;
  347. }
  348. .ui.huge.statistics .statistic > .text.value,
  349. .ui.huge.statistic > .text.value {
  350. font-size: 2.5rem;
  351. }
  352. /*******************************
  353. Theme Overrides
  354. *******************************/
  355. /*******************************
  356. User Variable Overrides
  357. *******************************/