statistic.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /*!
  2. * # Semantic UI 2.5.0 - Statistic
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Statistic
  12. *******************************/
  13. /* Standalone */
  14. .ui.statistic {
  15. display: inline-flex;
  16. flex-direction: column;
  17. margin: 1em 0em;
  18. max-width: auto;
  19. }
  20. .ui.statistic + .ui.statistic {
  21. margin: 0em 0em 0em 1.5em;
  22. }
  23. .ui.statistic:first-child {
  24. margin-top: 0em;
  25. }
  26. .ui.statistic:last-child {
  27. margin-bottom: 0em;
  28. }
  29. /*******************************
  30. Group
  31. *******************************/
  32. /* Grouped */
  33. .ui.statistics {
  34. display: flex;
  35. align-items: flex-start;
  36. flex-wrap: wrap;
  37. }
  38. .ui.statistics > .statistic {
  39. display: inline-flex;
  40. flex: 0 1 auto;
  41. flex-direction: column;
  42. margin: 0em 1.5em 1em;
  43. max-width: auto;
  44. }
  45. .ui.statistics {
  46. display: flex;
  47. margin: 1em -1.5em -1em;
  48. }
  49. /* Clearing */
  50. .ui.statistics:after {
  51. display: block;
  52. content: ' ';
  53. height: 0px;
  54. clear: both;
  55. overflow: hidden;
  56. visibility: hidden;
  57. }
  58. .ui.statistics:first-child {
  59. margin-top: 0em;
  60. }
  61. /*******************************
  62. Content
  63. *******************************/
  64. /*--------------
  65. Value
  66. ---------------*/
  67. .ui.statistics .statistic > .value,
  68. .ui.statistic > .value {
  69. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  70. font-size: 4rem;
  71. font-weight: normal;
  72. line-height: 1em;
  73. color: #1B1C1D;
  74. text-transform: uppercase;
  75. text-align: center;
  76. }
  77. /*--------------
  78. Label
  79. ---------------*/
  80. .ui.statistics .statistic > .label,
  81. .ui.statistic > .label {
  82. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  83. font-size: 1em;
  84. font-weight: bold;
  85. color: rgba(0, 0, 0, 0.87);
  86. text-transform: uppercase;
  87. text-align: center;
  88. }
  89. /* Top Label */
  90. .ui.statistics .statistic > .label ~ .value,
  91. .ui.statistic > .label ~ .value {
  92. margin-top: 0rem;
  93. }
  94. /* Bottom Label */
  95. .ui.statistics .statistic > .value ~ .label,
  96. .ui.statistic > .value ~ .label {
  97. margin-top: 0rem;
  98. }
  99. /*******************************
  100. Types
  101. *******************************/
  102. /*--------------
  103. Icon Value
  104. ---------------*/
  105. .ui.statistics .statistic > .value .icon,
  106. .ui.statistic > .value .icon {
  107. opacity: 1;
  108. width: auto;
  109. margin: 0em;
  110. }
  111. /*--------------
  112. Text Value
  113. ---------------*/
  114. .ui.statistics .statistic > .text.value,
  115. .ui.statistic > .text.value {
  116. line-height: 1em;
  117. min-height: 2em;
  118. font-weight: bold;
  119. text-align: center;
  120. }
  121. .ui.statistics .statistic > .text.value + .label,
  122. .ui.statistic > .text.value + .label {
  123. text-align: center;
  124. }
  125. /*--------------
  126. Image Value
  127. ---------------*/
  128. .ui.statistics .statistic > .value img,
  129. .ui.statistic > .value img {
  130. max-height: 3rem;
  131. vertical-align: baseline;
  132. }
  133. /*******************************
  134. Variations
  135. *******************************/
  136. /*--------------
  137. Count
  138. ---------------*/
  139. .ui.ten.statistics {
  140. margin: 0em 0em -1em;
  141. }
  142. .ui.ten.statistics .statistic {
  143. min-width: 10%;
  144. margin: 0em 0em 1em;
  145. }
  146. .ui.nine.statistics {
  147. margin: 0em 0em -1em;
  148. }
  149. .ui.nine.statistics .statistic {
  150. min-width: 11.11111111%;
  151. margin: 0em 0em 1em;
  152. }
  153. .ui.eight.statistics {
  154. margin: 0em 0em -1em;
  155. }
  156. .ui.eight.statistics .statistic {
  157. min-width: 12.5%;
  158. margin: 0em 0em 1em;
  159. }
  160. .ui.seven.statistics {
  161. margin: 0em 0em -1em;
  162. }
  163. .ui.seven.statistics .statistic {
  164. min-width: 14.28571429%;
  165. margin: 0em 0em 1em;
  166. }
  167. .ui.six.statistics {
  168. margin: 0em 0em -1em;
  169. }
  170. .ui.six.statistics .statistic {
  171. min-width: 16.66666667%;
  172. margin: 0em 0em 1em;
  173. }
  174. .ui.five.statistics {
  175. margin: 0em 0em -1em;
  176. }
  177. .ui.five.statistics .statistic {
  178. min-width: 20%;
  179. margin: 0em 0em 1em;
  180. }
  181. .ui.four.statistics {
  182. margin: 0em 0em -1em;
  183. }
  184. .ui.four.statistics .statistic {
  185. min-width: 25%;
  186. margin: 0em 0em 1em;
  187. }
  188. .ui.three.statistics {
  189. margin: 0em 0em -1em;
  190. }
  191. .ui.three.statistics .statistic {
  192. min-width: 33.33333333%;
  193. margin: 0em 0em 1em;
  194. }
  195. .ui.two.statistics {
  196. margin: 0em 0em -1em;
  197. }
  198. .ui.two.statistics .statistic {
  199. min-width: 50%;
  200. margin: 0em 0em 1em;
  201. }
  202. .ui.one.statistics {
  203. margin: 0em 0em -1em;
  204. }
  205. .ui.one.statistics .statistic {
  206. min-width: 100%;
  207. margin: 0em 0em 1em;
  208. }
  209. /*--------------
  210. Horizontal
  211. ---------------*/
  212. .ui.horizontal.statistic {
  213. flex-direction: row;
  214. align-items: center;
  215. }
  216. .ui.horizontal.statistics {
  217. flex-direction: column;
  218. margin: 0em;
  219. max-width: none;
  220. }
  221. .ui.horizontal.statistics .statistic {
  222. flex-direction: row;
  223. align-items: center;
  224. max-width: none;
  225. margin: 1em 0em;
  226. }
  227. .ui.horizontal.statistic > .text.value,
  228. .ui.horizontal.statistics > .statistic > .text.value {
  229. min-height: 0em !important;
  230. }
  231. .ui.horizontal.statistics .statistic > .value .icon,
  232. .ui.horizontal.statistic > .value .icon {
  233. width: 1.18em;
  234. }
  235. .ui.horizontal.statistics .statistic > .value,
  236. .ui.horizontal.statistic > .value {
  237. display: inline-block;
  238. vertical-align: middle;
  239. }
  240. .ui.horizontal.statistics .statistic > .label,
  241. .ui.horizontal.statistic > .label {
  242. display: inline-block;
  243. vertical-align: middle;
  244. margin: 0em 0em 0em 0.75em;
  245. }
  246. /*--------------
  247. Colors
  248. ---------------*/
  249. .ui.red.statistics .statistic > .value,
  250. .ui.statistics .red.statistic > .value,
  251. .ui.red.statistic > .value {
  252. color: #DB2828;
  253. }
  254. .ui.orange.statistics .statistic > .value,
  255. .ui.statistics .orange.statistic > .value,
  256. .ui.orange.statistic > .value {
  257. color: #F2711C;
  258. }
  259. .ui.yellow.statistics .statistic > .value,
  260. .ui.statistics .yellow.statistic > .value,
  261. .ui.yellow.statistic > .value {
  262. color: #FBBD08;
  263. }
  264. .ui.olive.statistics .statistic > .value,
  265. .ui.statistics .olive.statistic > .value,
  266. .ui.olive.statistic > .value {
  267. color: #B5CC18;
  268. }
  269. .ui.green.statistics .statistic > .value,
  270. .ui.statistics .green.statistic > .value,
  271. .ui.green.statistic > .value {
  272. color: #21BA45;
  273. }
  274. .ui.teal.statistics .statistic > .value,
  275. .ui.statistics .teal.statistic > .value,
  276. .ui.teal.statistic > .value {
  277. color: #00B5AD;
  278. }
  279. .ui.blue.statistics .statistic > .value,
  280. .ui.statistics .blue.statistic > .value,
  281. .ui.blue.statistic > .value {
  282. color: #2185D0;
  283. }
  284. .ui.violet.statistics .statistic > .value,
  285. .ui.statistics .violet.statistic > .value,
  286. .ui.violet.statistic > .value {
  287. color: #6435C9;
  288. }
  289. .ui.purple.statistics .statistic > .value,
  290. .ui.statistics .purple.statistic > .value,
  291. .ui.purple.statistic > .value {
  292. color: #A333C8;
  293. }
  294. .ui.pink.statistics .statistic > .value,
  295. .ui.statistics .pink.statistic > .value,
  296. .ui.pink.statistic > .value {
  297. color: #E03997;
  298. }
  299. .ui.brown.statistics .statistic > .value,
  300. .ui.statistics .brown.statistic > .value,
  301. .ui.brown.statistic > .value {
  302. color: #A5673F;
  303. }
  304. .ui.grey.statistics .statistic > .value,
  305. .ui.statistics .grey.statistic > .value,
  306. .ui.grey.statistic > .value {
  307. color: #767676;
  308. }
  309. /*--------------
  310. Inverted
  311. ---------------*/
  312. .ui.inverted.statistics .statistic > .value,
  313. .ui.inverted.statistic .value {
  314. color: #FFFFFF;
  315. }
  316. .ui.inverted.statistics .statistic > .label,
  317. .ui.inverted.statistic .label {
  318. color: rgba(255, 255, 255, 0.9);
  319. }
  320. .ui.inverted.red.statistics .statistic > .value,
  321. .ui.statistics .inverted.red.statistic > .value,
  322. .ui.inverted.red.statistic > .value {
  323. color: #FF695E;
  324. }
  325. .ui.inverted.orange.statistics .statistic > .value,
  326. .ui.statistics .inverted.orange.statistic > .value,
  327. .ui.inverted.orange.statistic > .value {
  328. color: #FF851B;
  329. }
  330. .ui.inverted.yellow.statistics .statistic > .value,
  331. .ui.statistics .inverted.yellow.statistic > .value,
  332. .ui.inverted.yellow.statistic > .value {
  333. color: #FFE21F;
  334. }
  335. .ui.inverted.olive.statistics .statistic > .value,
  336. .ui.statistics .inverted.olive.statistic > .value,
  337. .ui.inverted.olive.statistic > .value {
  338. color: #D9E778;
  339. }
  340. .ui.inverted.green.statistics .statistic > .value,
  341. .ui.statistics .inverted.green.statistic > .value,
  342. .ui.inverted.green.statistic > .value {
  343. color: #2ECC40;
  344. }
  345. .ui.inverted.teal.statistics .statistic > .value,
  346. .ui.statistics .inverted.teal.statistic > .value,
  347. .ui.inverted.teal.statistic > .value {
  348. color: #6DFFFF;
  349. }
  350. .ui.inverted.blue.statistics .statistic > .value,
  351. .ui.statistics .inverted.blue.statistic > .value,
  352. .ui.inverted.blue.statistic > .value {
  353. color: #54C8FF;
  354. }
  355. .ui.inverted.violet.statistics .statistic > .value,
  356. .ui.statistics .inverted.violet.statistic > .value,
  357. .ui.inverted.violet.statistic > .value {
  358. color: #A291FB;
  359. }
  360. .ui.inverted.purple.statistics .statistic > .value,
  361. .ui.statistics .inverted.purple.statistic > .value,
  362. .ui.inverted.purple.statistic > .value {
  363. color: #DC73FF;
  364. }
  365. .ui.inverted.pink.statistics .statistic > .value,
  366. .ui.statistics .inverted.pink.statistic > .value,
  367. .ui.inverted.pink.statistic > .value {
  368. color: #FF8EDF;
  369. }
  370. .ui.inverted.brown.statistics .statistic > .value,
  371. .ui.statistics .inverted.brown.statistic > .value,
  372. .ui.inverted.brown.statistic > .value {
  373. color: #D67C1C;
  374. }
  375. .ui.inverted.grey.statistics .statistic > .value,
  376. .ui.statistics .inverted.grey.statistic > .value,
  377. .ui.inverted.grey.statistic > .value {
  378. color: #DCDDDE;
  379. }
  380. /*--------------
  381. Floated
  382. ---------------*/
  383. .ui[class*="left floated"].statistic {
  384. float: left;
  385. margin: 0em 2em 1em 0em;
  386. }
  387. .ui[class*="right floated"].statistic {
  388. float: right;
  389. margin: 0em 0em 1em 2em;
  390. }
  391. .ui.floated.statistic:last-child {
  392. margin-bottom: 0em;
  393. }
  394. /*--------------
  395. Sizes
  396. ---------------*/
  397. /* Mini */
  398. .ui.mini.statistics .statistic > .value,
  399. .ui.mini.statistic > .value {
  400. font-size: 1.5rem !important;
  401. }
  402. .ui.mini.horizontal.statistics .statistic > .value,
  403. .ui.mini.horizontal.statistic > .value {
  404. font-size: 1.5rem !important;
  405. }
  406. .ui.mini.statistics .statistic > .text.value,
  407. .ui.mini.statistic > .text.value {
  408. font-size: 1rem !important;
  409. }
  410. /* Tiny */
  411. .ui.tiny.statistics .statistic > .value,
  412. .ui.tiny.statistic > .value {
  413. font-size: 2rem !important;
  414. }
  415. .ui.tiny.horizontal.statistics .statistic > .value,
  416. .ui.tiny.horizontal.statistic > .value {
  417. font-size: 2rem !important;
  418. }
  419. .ui.tiny.statistics .statistic > .text.value,
  420. .ui.tiny.statistic > .text.value {
  421. font-size: 1rem !important;
  422. }
  423. /* Small */
  424. .ui.small.statistics .statistic > .value,
  425. .ui.small.statistic > .value {
  426. font-size: 3rem !important;
  427. }
  428. .ui.small.horizontal.statistics .statistic > .value,
  429. .ui.small.horizontal.statistic > .value {
  430. font-size: 2rem !important;
  431. }
  432. .ui.small.statistics .statistic > .text.value,
  433. .ui.small.statistic > .text.value {
  434. font-size: 1rem !important;
  435. }
  436. /* Medium */
  437. .ui.statistics .statistic > .value,
  438. .ui.statistic > .value {
  439. font-size: 4rem !important;
  440. }
  441. .ui.horizontal.statistics .statistic > .value,
  442. .ui.horizontal.statistic > .value {
  443. font-size: 3rem !important;
  444. }
  445. .ui.statistics .statistic > .text.value,
  446. .ui.statistic > .text.value {
  447. font-size: 2rem !important;
  448. }
  449. /* Large */
  450. .ui.large.statistics .statistic > .value,
  451. .ui.large.statistic > .value {
  452. font-size: 5rem !important;
  453. }
  454. .ui.large.horizontal.statistics .statistic > .value,
  455. .ui.large.horizontal.statistic > .value {
  456. font-size: 4rem !important;
  457. }
  458. .ui.large.statistics .statistic > .text.value,
  459. .ui.large.statistic > .text.value {
  460. font-size: 2.5rem !important;
  461. }
  462. /* Huge */
  463. .ui.huge.statistics .statistic > .value,
  464. .ui.huge.statistic > .value {
  465. font-size: 6rem !important;
  466. }
  467. .ui.huge.horizontal.statistics .statistic > .value,
  468. .ui.huge.horizontal.statistic > .value {
  469. font-size: 5rem !important;
  470. }
  471. .ui.huge.statistics .statistic > .text.value,
  472. .ui.huge.statistic > .text.value {
  473. font-size: 2.5rem !important;
  474. }
  475. /*******************************
  476. Theme Overrides
  477. *******************************/
  478. /*******************************
  479. User Variable Overrides
  480. *******************************/