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.

405 lines
8.3 KiB

10 years ago
10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git#1.0
  4. *
  5. *
  6. * Copyright 2014 Contributors
  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. }
  107. /*--------------
  108. Text Value
  109. ---------------*/
  110. .ui.statistics .statistic > .text.value,
  111. .ui.statistic > .text.value {
  112. line-height: 1em;
  113. min-height: 2em;
  114. text-align: center;
  115. }
  116. .ui.statistics .statistic > .text.value + .label,
  117. .ui.statistic > .text.value + .label {
  118. text-align: center;
  119. }
  120. /*--------------
  121. Image Value
  122. ---------------*/
  123. .ui.statistics .statistic > .value img,
  124. .ui.statistic > .value img {
  125. max-height: 3rem;
  126. vertical-align: baseline;
  127. }
  128. /*******************************
  129. Variations
  130. *******************************/
  131. /*--------------
  132. Horizontal
  133. ---------------*/
  134. .ui.horizontal.statistics,
  135. .ui.horizontal.statistic {
  136. display: block;
  137. margin: 0em;
  138. max-width: 9999px;
  139. }
  140. .ui.horizontal.statistics .statistic {
  141. float: none;
  142. margin: 1em 0em;
  143. max-width: 9999px;
  144. }
  145. .ui.horizontal.statistic > .text.value,
  146. .ui.horizontal.statistics > .statistic > .text.value {
  147. min-height: 0em !important;
  148. }
  149. .ui.horizontal.statistics .statistic > .value,
  150. .ui.horizontal.statistic > .value {
  151. display: inline-block;
  152. vertical-align: middle;
  153. }
  154. .ui.horizontal.statistics .statistic > .label,
  155. .ui.horizontal.statistic > .label {
  156. display: inline-block;
  157. vertical-align: middle;
  158. margin: 0em 0em 0em 0.75em;
  159. }
  160. /*--------------
  161. Colors
  162. ---------------*/
  163. .ui.blue.statistics .statistic > .value,
  164. .ui.statistics .blue.statistic > .value,
  165. .ui.blue.statistic > .value {
  166. color: #3b83c0;
  167. }
  168. .ui.green.statistics .statistic > .value,
  169. .ui.statistics .green.statistic > .value,
  170. .ui.green.statistic > .value {
  171. color: #5bbd72;
  172. }
  173. .ui.orange.statistics .statistic > .value,
  174. .ui.statistics .orange.statistic > .value,
  175. .ui.orange.statistic > .value {
  176. color: #e07b53;
  177. }
  178. .ui.pink.statistics .statistic > .value,
  179. .ui.statistics .pink.statistic > .value,
  180. .ui.pink.statistic > .value {
  181. color: #d9499a;
  182. }
  183. .ui.purple.statistics .statistic > .value,
  184. .ui.statistics .purple.statistic > .value,
  185. .ui.purple.statistic > .value {
  186. color: #564f8a;
  187. }
  188. .ui.red.statistics .statistic > .value,
  189. .ui.statistics .red.statistic > .value,
  190. .ui.red.statistic > .value {
  191. color: #d95c5c;
  192. }
  193. .ui.teal.statistics .statistic > .value,
  194. .ui.statistics .teal.statistic > .value,
  195. .ui.teal.statistic > .value {
  196. color: #00b5ad;
  197. }
  198. .ui.yellow.statistics .statistic > .value,
  199. .ui.statistics .yellow.statistic > .value,
  200. .ui.yellow.statistic > .value {
  201. color: #f2c61f;
  202. }
  203. /*--------------
  204. Floated
  205. ---------------*/
  206. .ui.left.floated.statistic {
  207. float: left;
  208. margin: 0em 2em 1em 0em;
  209. }
  210. .ui.right.floated.statistic {
  211. float: right;
  212. margin: 0em 0em 1em 2em;
  213. }
  214. .ui.floated.statistic:last-child {
  215. margin-bottom: 0em;
  216. }
  217. /*--------------
  218. Inverted
  219. ---------------*/
  220. .ui.inverted.statistic .value {
  221. color: #ffffff;
  222. }
  223. .ui.inverted.statistic .label {
  224. color: rgba(255, 255, 255, 0.8);
  225. }
  226. .ui.inverted.blue.statistics .statistic > .value,
  227. .ui.statistics .inverted.blue.statistic > .value,
  228. .ui.inverted.blue.statistic > .value {
  229. color: #54c8ff;
  230. }
  231. .ui.inverted.green.statistics .statistic > .value,
  232. .ui.statistics .inverted.green.statistic > .value,
  233. .ui.inverted.green.statistic > .value {
  234. color: #2ecc40;
  235. }
  236. .ui.inverted.orange.statistics .statistic > .value,
  237. .ui.statistics .inverted.orange.statistic > .value,
  238. .ui.inverted.orange.statistic > .value {
  239. color: #ff851b;
  240. }
  241. .ui.inverted.pink.statistics .statistic > .value,
  242. .ui.statistics .inverted.pink.statistic > .value,
  243. .ui.inverted.pink.statistic > .value {
  244. color: #ff8edf;
  245. }
  246. .ui.inverted.purple.statistics .statistic > .value,
  247. .ui.statistics .inverted.purple.statistic > .value,
  248. .ui.inverted.purple.statistic > .value {
  249. color: #cdc6ff;
  250. }
  251. .ui.inverted.red.statistics .statistic > .value,
  252. .ui.statistics .inverted.red.statistic > .value,
  253. .ui.inverted.red.statistic > .value {
  254. color: #ff695e;
  255. }
  256. .ui.inverted.teal.statistics .statistic > .value,
  257. .ui.statistics .inverted.teal.statistic > .value,
  258. .ui.inverted.teal.statistic > .value {
  259. color: #6dffff;
  260. }
  261. .ui.inverted.yellow.statistics .statistic > .value,
  262. .ui.statistics .inverted.yellow.statistic > .value,
  263. .ui.inverted.yellow.statistic > .value {
  264. color: #ffe21f;
  265. }
  266. /*--------------
  267. Sizes
  268. ---------------*/
  269. /* Mini */
  270. .ui.mini.statistics .statistic > .value,
  271. .ui.mini.statistic > .value {
  272. font-size: 1.5rem;
  273. }
  274. .ui.mini.horizontal.statistics .statistic > .value,
  275. .ui.mini.horizontal.statistic > .value {
  276. font-size: 1.5rem;
  277. }
  278. .ui.mini.statistics .statistic > .text.value,
  279. .ui.mini.statistic > .text.value {
  280. font-size: 1rem;
  281. }
  282. /* Tiny */
  283. .ui.tiny.statistics .statistic > .value,
  284. .ui.tiny.statistic > .value {
  285. font-size: 2rem;
  286. }
  287. .ui.tiny.horizontal.statistics .statistic > .value,
  288. .ui.tiny.horizontal.statistic > .value {
  289. font-size: 2rem;
  290. }
  291. .ui.tiny.statistics .statistic > .text.value,
  292. .ui.tiny.statistic > .text.value {
  293. font-size: 1rem;
  294. }
  295. /* Small */
  296. .ui.small.statistics .statistic > .value,
  297. .ui.small.statistic > .value {
  298. font-size: 3rem;
  299. }
  300. .ui.small.horizontal.statistics .statistic > .value,
  301. .ui.small.horizontal.statistic > .value {
  302. font-size: 2rem;
  303. }
  304. .ui.small.statistics .statistic > .text.value,
  305. .ui.small.statistic > .text.value {
  306. font-size: 1.5rem;
  307. }
  308. /* Medium */
  309. .ui.statistics .statistic > .value,
  310. .ui.statistic > .value {
  311. font-size: 4rem;
  312. }
  313. .ui.horizontal.statistics .statistic > .value,
  314. .ui.horizontal.statistic > .value {
  315. font-size: 3rem;
  316. }
  317. .ui.statistics .statistic > .text.value,
  318. .ui.statistic > .text.value {
  319. font-size: 2rem;
  320. }
  321. /* Large */
  322. .ui.large.statistics .statistic > .value,
  323. .ui.large.statistic > .value {
  324. font-size: 5rem;
  325. }
  326. .ui.large.horizontal.statistics .statistic > .value,
  327. .ui.large.horizontal.statistic > .value {
  328. font-size: 4rem;
  329. }
  330. .ui.large.statistics .statistic > .text.value,
  331. .ui.large.statistic > .text.value {
  332. font-size: 2.5rem;
  333. }
  334. /* Huge */
  335. .ui.huge.statistics .statistic > .value,
  336. .ui.huge.statistic > .value {
  337. font-size: 6rem;
  338. }
  339. .ui.huge.horizontal.statistics .statistic > .value,
  340. .ui.huge.horizontal.statistic > .value {
  341. font-size: 5rem;
  342. }
  343. .ui.huge.statistics .statistic > .text.value,
  344. .ui.huge.statistic > .text.value {
  345. font-size: 2.5rem;
  346. }
  347. /*******************************
  348. Theme Overrides
  349. *******************************/
  350. /*******************************
  351. User Variable Overrides
  352. *******************************/