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.

411 lines
8.7 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
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
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
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Statistic
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'view';
  15. @element : 'statistic';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Statistic
  19. *******************************/
  20. /* Standalone */
  21. .ui.statistic {
  22. display: @display;
  23. margin: @margin;
  24. max-width: @maxWidth;
  25. }
  26. .ui.statistic + .ui.statistic {
  27. margin: 0em 0em 0em @horizontalSpacing;
  28. }
  29. .ui.statistic:first-child {
  30. margin-top: 0em;
  31. }
  32. .ui.statistic:last-child {
  33. margin-bottom: 0em;
  34. }
  35. /* Grouped */
  36. .ui.statistics > .statistic {
  37. display: @elementDisplay;
  38. float: @elementFloat;
  39. margin: @elementMargin;
  40. max-width: @elementMaxWidth;
  41. }
  42. /*******************************
  43. Group
  44. *******************************/
  45. .ui.statistics {
  46. display: @groupDisplay;
  47. margin: @groupMargin;
  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. .ui.statistics:last-child {
  62. margin-bottom: 0em;
  63. }
  64. /*******************************
  65. Content
  66. *******************************/
  67. /*--------------
  68. Value
  69. ---------------*/
  70. .ui.statistics .statistic > .value,
  71. .ui.statistic > .value {
  72. font-family: @valueFont;
  73. font-size: @valueSize;
  74. font-weight: @valueFontWeight;
  75. line-height: @valueLineHeight;
  76. color: @valueColor;
  77. text-transform: @valueTextTransform;
  78. text-align: @textAlign;
  79. }
  80. /*--------------
  81. Label
  82. ---------------*/
  83. .ui.statistics .statistic > .label,
  84. .ui.statistic > .label {
  85. font-family: @labelFont;
  86. font-size: @labelSize;
  87. font-weight: @labelFontWeight;
  88. color: @labelColor;
  89. text-transform: @labelTextTransform;
  90. text-align: @textAlign;
  91. }
  92. /* Top Label */
  93. .ui.statistics .statistic > .label ~ .value,
  94. .ui.statistic > .label ~ .value {
  95. margin-top: @topLabelDistance;
  96. }
  97. /* Bottom Label */
  98. .ui.statistics .statistic > .value ~ .label,
  99. .ui.statistic > .value ~ .label {
  100. margin-top: @bottomLabelDistance;
  101. }
  102. /*******************************
  103. Types
  104. *******************************/
  105. /*--------------
  106. Icon Value
  107. ---------------*/
  108. .ui.statistics .statistic > .value .icon,
  109. .ui.statistic > .value .icon {
  110. opacity: 1;
  111. width: auto;
  112. }
  113. /*--------------
  114. Text Value
  115. ---------------*/
  116. .ui.statistics .statistic > .text.value,
  117. .ui.statistic > .text.value {
  118. line-height: @textLabelLineHeight;
  119. min-height: @textLabelMinHeight;
  120. text-align: center;
  121. }
  122. .ui.statistics .statistic > .text.value + .label,
  123. .ui.statistic > .text.value + .label {
  124. text-align: center;
  125. }
  126. /*--------------
  127. Image Value
  128. ---------------*/
  129. .ui.statistics .statistic > .value img,
  130. .ui.statistic > .value img {
  131. max-height: @imageHeight;
  132. vertical-align: @imageVerticalAlign;
  133. }
  134. /*******************************
  135. Variations
  136. *******************************/
  137. /*--------------
  138. Horizontal
  139. ---------------*/
  140. .ui.horizontal.statistics,
  141. .ui.horizontal.statistic {
  142. display: block;
  143. margin: 0em;
  144. max-width: 9999px;
  145. }
  146. .ui.horizontal.statistics .statistic {
  147. float: none;
  148. margin: @horizontalGroupElementMargin;
  149. max-width: 9999px;
  150. }
  151. .ui.horizontal.statistic > .text.value,
  152. .ui.horizontal.statistics > .statistic > .text.value {
  153. min-height: 0em !important;
  154. }
  155. .ui.horizontal.statistics .statistic > .value,
  156. .ui.horizontal.statistic > .value {
  157. display: inline-block;
  158. vertical-align: middle;
  159. }
  160. .ui.horizontal.statistics .statistic > .label,
  161. .ui.horizontal.statistic > .label {
  162. display: inline-block;
  163. vertical-align: middle;
  164. margin: 0em 0em 0em @horizontalLabelDistance;
  165. }
  166. /*--------------
  167. Colors
  168. ---------------*/
  169. .ui.blue.statistics .statistic > .value,
  170. .ui.statistics .blue.statistic > .value,
  171. .ui.blue.statistic > .value {
  172. color: @blue;
  173. }
  174. .ui.green.statistics .statistic > .value,
  175. .ui.statistics .green.statistic > .value,
  176. .ui.green.statistic > .value {
  177. color: @green;
  178. }
  179. .ui.orange.statistics .statistic > .value,
  180. .ui.statistics .orange.statistic > .value,
  181. .ui.orange.statistic > .value {
  182. color: @orange;
  183. }
  184. .ui.pink.statistics .statistic > .value,
  185. .ui.statistics .pink.statistic > .value,
  186. .ui.pink.statistic > .value {
  187. color: @pink;
  188. }
  189. .ui.purple.statistics .statistic > .value,
  190. .ui.statistics .purple.statistic > .value,
  191. .ui.purple.statistic > .value {
  192. color: @purple;
  193. }
  194. .ui.red.statistics .statistic > .value,
  195. .ui.statistics .red.statistic > .value,
  196. .ui.red.statistic > .value {
  197. color: @red;
  198. }
  199. .ui.teal.statistics .statistic > .value,
  200. .ui.statistics .teal.statistic > .value,
  201. .ui.teal.statistic > .value {
  202. color: @teal;
  203. }
  204. .ui.yellow.statistics .statistic > .value,
  205. .ui.statistics .yellow.statistic > .value,
  206. .ui.yellow.statistic > .value {
  207. color: @yellow;
  208. }
  209. /*--------------
  210. Floated
  211. ---------------*/
  212. .ui.left.floated.statistic {
  213. float: left;
  214. margin: @leftFloatedMargin;
  215. }
  216. .ui.right.floated.statistic {
  217. float: right;
  218. margin: @rightFloatedMargin;
  219. }
  220. .ui.floated.statistic:last-child {
  221. margin-bottom: 0em;
  222. }
  223. /*--------------
  224. Inverted
  225. ---------------*/
  226. .ui.inverted.statistic .value {
  227. color: @invertedValueColor;
  228. }
  229. .ui.inverted.statistic .label {
  230. color: @invertedLabelColor;
  231. }
  232. .ui.inverted.blue.statistics .statistic > .value,
  233. .ui.statistics .inverted.blue.statistic > .value,
  234. .ui.inverted.blue.statistic > .value {
  235. color: @lightBlue;
  236. }
  237. .ui.inverted.green.statistics .statistic > .value,
  238. .ui.statistics .inverted.green.statistic > .value,
  239. .ui.inverted.green.statistic > .value {
  240. color: @lightGreen;
  241. }
  242. .ui.inverted.orange.statistics .statistic > .value,
  243. .ui.statistics .inverted.orange.statistic > .value,
  244. .ui.inverted.orange.statistic > .value {
  245. color: @lightOrange;
  246. }
  247. .ui.inverted.pink.statistics .statistic > .value,
  248. .ui.statistics .inverted.pink.statistic > .value,
  249. .ui.inverted.pink.statistic > .value {
  250. color: @lightPink;
  251. }
  252. .ui.inverted.purple.statistics .statistic > .value,
  253. .ui.statistics .inverted.purple.statistic > .value,
  254. .ui.inverted.purple.statistic > .value {
  255. color: @lightPurple;
  256. }
  257. .ui.inverted.red.statistics .statistic > .value,
  258. .ui.statistics .inverted.red.statistic > .value,
  259. .ui.inverted.red.statistic > .value {
  260. color: @lightRed;
  261. }
  262. .ui.inverted.teal.statistics .statistic > .value,
  263. .ui.statistics .inverted.teal.statistic > .value,
  264. .ui.inverted.teal.statistic > .value {
  265. color: @lightTeal;
  266. }
  267. .ui.inverted.yellow.statistics .statistic > .value,
  268. .ui.statistics .inverted.yellow.statistic > .value,
  269. .ui.inverted.yellow.statistic > .value {
  270. color: @lightYellow;
  271. }
  272. /*--------------
  273. Sizes
  274. ---------------*/
  275. /* Mini */
  276. .ui.mini.statistics .statistic > .value,
  277. .ui.mini.statistic > .value {
  278. font-size: @miniValueSize;
  279. }
  280. .ui.mini.horizontal.statistics .statistic > .value,
  281. .ui.mini.horizontal.statistic > .value {
  282. font-size: @miniHorizontalValueSize;
  283. }
  284. .ui.mini.statistics .statistic > .text.value,
  285. .ui.mini.statistic > .text.value {
  286. font-size: @miniTextLabelSize;
  287. }
  288. /* Tiny */
  289. .ui.tiny.statistics .statistic > .value,
  290. .ui.tiny.statistic > .value {
  291. font-size: @tinyValueSize;
  292. }
  293. .ui.tiny.horizontal.statistics .statistic > .value,
  294. .ui.tiny.horizontal.statistic > .value {
  295. font-size: @tinyHorizontalValueSize;
  296. }
  297. .ui.tiny.statistics .statistic > .text.value,
  298. .ui.tiny.statistic > .text.value {
  299. font-size: @tinyTextLabelSize;
  300. }
  301. /* Small */
  302. .ui.small.statistics .statistic > .value,
  303. .ui.small.statistic > .value {
  304. font-size: @smallValueSize;
  305. }
  306. .ui.small.horizontal.statistics .statistic > .value,
  307. .ui.small.horizontal.statistic > .value {
  308. font-size: @smallHorizontalValueSize;
  309. }
  310. .ui.small.statistics .statistic > .text.value,
  311. .ui.small.statistic > .text.value {
  312. font-size: @smallTextLabelSize;
  313. }
  314. /* Medium */
  315. .ui.statistics .statistic > .value,
  316. .ui.statistic > .value {
  317. font-size: @valueSize;
  318. }
  319. .ui.horizontal.statistics .statistic > .value,
  320. .ui.horizontal.statistic > .value {
  321. font-size: @horizontalValueSize;
  322. }
  323. .ui.statistics .statistic > .text.value,
  324. .ui.statistic > .text.value {
  325. font-size: @textLabelSize;
  326. }
  327. /* Large */
  328. .ui.large.statistics .statistic > .value,
  329. .ui.large.statistic > .value {
  330. font-size: @largeValueSize;
  331. }
  332. .ui.large.horizontal.statistics .statistic > .value,
  333. .ui.large.horizontal.statistic > .value {
  334. font-size: @largeHorizontalValueSize;
  335. }
  336. .ui.large.statistics .statistic > .text.value,
  337. .ui.large.statistic > .text.value {
  338. font-size: @largeTextLabelSize;
  339. }
  340. /* Huge */
  341. .ui.huge.statistics .statistic > .value,
  342. .ui.huge.statistic > .value {
  343. font-size: @hugeValueSize;
  344. }
  345. .ui.huge.horizontal.statistics .statistic > .value,
  346. .ui.huge.horizontal.statistic > .value {
  347. font-size: @hugeHorizontalValueSize;
  348. }
  349. .ui.huge.statistics .statistic > .text.value,
  350. .ui.huge.statistic > .text.value {
  351. font-size: @hugeTextLabelSize;
  352. }
  353. .loadUIOverrides();