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.

301 lines
6.0 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
  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. /* Grouped */
  27. .ui.statistics > .statistic {
  28. display: @elementDisplay;
  29. float: @elementFloat;
  30. margin: @elementMargin;
  31. max-width: @elementMaxWidth;
  32. }
  33. /*******************************
  34. Group
  35. *******************************/
  36. .ui.statistics {
  37. display: @groupDisplay;
  38. margin: @groupMargin;
  39. }
  40. /* Clearing */
  41. .ui.statistics:after {
  42. display: block;
  43. content: ' ';
  44. height: 0px;
  45. clear: both;
  46. overflow: hidden;
  47. visibility: hidden;
  48. }
  49. .ui.statistics:first-child {
  50. margin-top: 0em;
  51. }
  52. .ui.statistics:last-child {
  53. margin-bottom: 0em;
  54. }
  55. /*******************************
  56. Content
  57. *******************************/
  58. /*--------------
  59. Value
  60. ---------------*/
  61. .ui.statistics .statistic > .value,
  62. .ui.statistic > .value {
  63. font-family: @valueFont;
  64. font-size: @valueSize;
  65. font-weight: @valueFontWeight;
  66. line-height: @valueLineHeight;
  67. color: @valueColor;
  68. text-transform: @valueTextTransform;
  69. text-align: @textAlign;
  70. }
  71. /*--------------
  72. Label
  73. ---------------*/
  74. .ui.statistics .statistic > .label,
  75. .ui.statistic > .label {
  76. margin-top: @labelDistance;
  77. font-family: @labelFont;
  78. font-size: @labelSize;
  79. font-weight: @labelFontWeight;
  80. color: @labelColor;
  81. text-transform: @labelTextTransform;
  82. text-align: @textAlign;
  83. }
  84. /*******************************
  85. Types
  86. *******************************/
  87. /*--------------
  88. Icon Value
  89. ---------------*/
  90. .ui.statistics .statistic > .value .icon,
  91. .ui.statistic > .value .icon {
  92. opacity: 1;
  93. }
  94. /*--------------
  95. Text Value
  96. ---------------*/
  97. .ui.statistics .statistic > .text.value,
  98. .ui.statistic > .text.value {
  99. line-height: @textLabelLineHeight;
  100. min-height: @textLabelMinHeight;
  101. text-align: center;
  102. }
  103. .ui.statistics .statistic > .text.value + .label,
  104. .ui.statistic > .text.value + .label {
  105. text-align: center;
  106. }
  107. /*--------------
  108. Image Value
  109. ---------------*/
  110. .ui.statistics .statistic > .value img,
  111. .ui.statistic > .value img {
  112. max-height: @imageHeight;
  113. vertical-align: @imageVerticalAlign;
  114. }
  115. /*******************************
  116. Variations
  117. *******************************/
  118. /*--------------
  119. Horizontal
  120. ---------------*/
  121. .ui.horizontal.statistics,
  122. .ui.horizontal.statistic {
  123. display: block;
  124. margin: 0em;
  125. max-width: 9999px;
  126. }
  127. .ui.horizontal.statistics .statistic {
  128. float: none;
  129. margin: @horizontalGroupElementMargin;
  130. max-width: 9999px;
  131. }
  132. .ui.horizontal.statistic > .text.value,
  133. .ui.horizontal.statistics > .statistic > .text.value {
  134. min-height: 0em !important;
  135. }
  136. .ui.horizontal.statistics .statistic > .value,
  137. .ui.horizontal.statistic > .value {
  138. display: inline-block;
  139. vertical-align: middle;
  140. }
  141. .ui.horizontal.statistics .statistic > .label,
  142. .ui.horizontal.statistic > .label {
  143. display: inline-block;
  144. vertical-align: middle;
  145. margin: 0em 0em 0em @horizontalLabelDistance;
  146. }
  147. /*--------------
  148. Colors
  149. ---------------*/
  150. .ui.blue.statistics .statistic > .value,
  151. .ui.statistics .blue.statistic > .value,
  152. .ui.blue.statistic > .value {
  153. color: @blueTextColor;
  154. }
  155. .ui.green.statistics .statistic > .value,
  156. .ui.statistics .green.statistic > .value,
  157. .ui.green.statistic > .value {
  158. color: @greenTextColor;
  159. }
  160. .ui.orange.statistics .statistic > .value,
  161. .ui.statistics .orange.statistic > .value,
  162. .ui.orange.statistic > .value {
  163. color: @orangeTextColor;
  164. }
  165. .ui.pink.statistics .statistic > .value,
  166. .ui.statistics .pink.statistic > .value,
  167. .ui.pink.statistic > .value {
  168. color: @pinkTextColor;
  169. }
  170. .ui.purple.statistics .statistic > .value,
  171. .ui.statistics .purple.statistic > .value,
  172. .ui.purple.statistic > .value {
  173. color: @purpleTextColor;
  174. }
  175. .ui.red.statistics .statistic > .value,
  176. .ui.statistics .red.statistic > .value,
  177. .ui.red.statistic > .value {
  178. color: @redTextColor;
  179. }
  180. .ui.teal.statistics .statistic > .value,
  181. .ui.statistics .teal.statistic > .value,
  182. .ui.teal.statistic > .value {
  183. color: @tealTextColor;
  184. }
  185. .ui.yellow.statistics .statistic > .value,
  186. .ui.statistics .yellow.statistic > .value,
  187. .ui.yellow.statistic > .value {
  188. color: @yellowTextColor;
  189. }
  190. /*--------------
  191. Floated
  192. ---------------*/
  193. .ui.left.floated.statistic {
  194. float: left;
  195. margin: @leftFloatedMargin;
  196. }
  197. .ui.right.floated.statistic {
  198. float: right;
  199. margin: @rightFloatedMargin;
  200. }
  201. .ui.floated.statistic:last-child {
  202. margin-bottom: 0em;
  203. }
  204. /*--------------
  205. Inverted
  206. ---------------*/
  207. .ui.inverted.statistic .value {
  208. color: @invertedValueColor;
  209. }
  210. .ui.inverted.statistic .label {
  211. color: @invertedLabelColor;
  212. }
  213. /*--------------
  214. Sizes
  215. ---------------*/
  216. .ui.statistics .statistic > .value,
  217. .ui.statistic > .value {
  218. font-size: @valueSize;
  219. }
  220. .ui.horizontal.statistics .statistic > .value,
  221. .ui.horizontal.statistic > .value {
  222. font-size: @horizontalValueSize;
  223. }
  224. .ui.statistics .statistic > .text.value,
  225. .ui.statistic > .text.value {
  226. font-size: @textLabelSize;
  227. }
  228. /* Small */
  229. .ui.small.statistics .statistic > .value,
  230. .ui.small.statistic > .value {
  231. font-size: @smallValueSize;
  232. }
  233. .ui.small.horizontal.statistics .statistic > .value,
  234. .ui.small.horizontal.statistic > .value {
  235. font-size: @smallHorizontalValueSize;
  236. }
  237. .ui.small.statistics .statistic > .text.value,
  238. .ui.small.statistic > .text.value {
  239. font-size: @smallTextLabelSize;
  240. }
  241. /* Large */
  242. .ui.large.statistics .statistic > .value,
  243. .ui.large.statistic > .value {
  244. font-size: @largeValueSize;
  245. }
  246. .ui.large.horizontal.statistics .statistic > .value,
  247. .ui.large.horizontal.statistic > .value {
  248. font-size: @largeHorizontalValueSize;
  249. }
  250. .ui.large.statistics .statistic > .text.value,
  251. .ui.large.statistic > .text.value {
  252. font-size: @largeTextLabelSize;
  253. }
  254. .loadUIOverrides();