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.

463 lines
11 KiB

  1. ---
  2. layout : 'default'
  3. css : 'stat'
  4. element : 'statistic'
  5. elementType : 'view'
  6. title : 'Statistic'
  7. description : 'A statistic emphasizes the current value of an attribute'
  8. type : 'UI View'
  9. themes : ['Default']
  10. ---
  11. <%- @partial('header') %>
  12. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/views/statistic.less" />
  13. <script src="/javascript/card.js"></script>
  14. <div class="main container">
  15. <h2 class="ui dividing header">Types</h2>
  16. <div class="example">
  17. <h4 class="ui header">Statistic</h4>
  18. <p>A statistic can display a value with a label above or below it.</p>
  19. <div class="ui statistic">
  20. <div class="value">
  21. 22
  22. </div>
  23. <div class="label">
  24. Breeds of Dog
  25. </div>
  26. </div>
  27. </div>
  28. <div class="another example">
  29. <div class="ui statistic">
  30. <div class="label">
  31. Famous Dogs
  32. </div>
  33. <div class="value">
  34. 414
  35. </div>
  36. </div>
  37. </div>
  38. <div class="example">
  39. <h4 class="ui header">Statistic</h4>
  40. <p>A group of statistics</p>
  41. <div class="ui statistics">
  42. <div class="statistic">
  43. <div class="value">
  44. 22
  45. </div>
  46. <div class="label">
  47. Breeds of Dog
  48. </div>
  49. </div>
  50. <div class="statistic">
  51. <div class="value">
  52. 31
  53. </div>
  54. <div class="label">
  55. Famous Dogs in Films
  56. </div>
  57. </div>
  58. <div class="statistic">
  59. <div class="value">
  60. 22
  61. </div>
  62. <div class="label">
  63. US Presidents Owned Dogs
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <h2 class="ui dividing header">Content</h2>
  69. <div class="example">
  70. <h4 class="ui header">Value</h4>
  71. <p>A statistic can contain a numeric, icon, image, or text value</p>
  72. <div class="ui statistics">
  73. <div class="statistic">
  74. <div class="value">
  75. 22
  76. </div>
  77. <div class="label">
  78. Cities Named After Dogs
  79. </div>
  80. </div>
  81. <div class="statistic">
  82. <div class="text value">
  83. Two Million
  84. </div>
  85. <div class="label">
  86. Homeless Dogs in USA
  87. </div>
  88. </div>
  89. <div class="statistic">
  90. <div class="value">
  91. <i class="plane icon"></i> 5
  92. </div>
  93. <div class="label">
  94. Flights Piloted By Dogs
  95. </div>
  96. </div>
  97. <div class="statistic">
  98. <div class="value">
  99. <img src="/images/demo/transparent-dog.png">
  100. 11
  101. </div>
  102. <div class="label">
  103. Puppies Made This Page
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="example">
  109. <h4 class="ui header">Label</h4>
  110. <p>A statistic can contain a label to help provide context for the presented value</p>
  111. <div class="ui statistic">
  112. <div class="value">
  113. 22
  114. </div>
  115. <div class="label">
  116. Breeds of Dog
  117. </div>
  118. </div>
  119. </div>
  120. <h2 class="ui dividing header">Variations</h2>
  121. <div class="example">
  122. <h4 class="ui header">Horizontal Statistic</h4>
  123. <p>A statistic can present its measurement horizontally</p>
  124. <div class="ui horizontal statistic">
  125. <div class="value">
  126. 22
  127. </div>
  128. <div class="label">
  129. Breeds of Dog
  130. </div>
  131. </div>
  132. </div>
  133. <div class="another example">
  134. <div class="ui horizontal statistics">
  135. <div class="statistic">
  136. <div class="value">
  137. 22
  138. </div>
  139. <div class="label">
  140. Breeds of Dog
  141. </div>
  142. </div>
  143. <div class="statistic">
  144. <div class="value">
  145. 31
  146. </div>
  147. <div class="label">
  148. Famous Dogs in Films
  149. </div>
  150. </div>
  151. <div class="statistic">
  152. <div class="value">
  153. 22
  154. </div>
  155. <div class="label">
  156. US Presidents Owned Dogs
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="example">
  162. <h4 class="ui header">Colored</h4>
  163. <p>A statistic can be formatted to be different colors</p>
  164. <div class="ui statistics">
  165. <div class="yellow statistic">
  166. <div class="value">
  167. 27
  168. </div>
  169. <div class="label">
  170. Yellow Labradors
  171. </div>
  172. </div>
  173. <div class="green statistic">
  174. <div class="value">
  175. 8
  176. </div>
  177. <div class="label">
  178. Green Poodles
  179. </div>
  180. </div>
  181. <div class="blue statistic">
  182. <div class="value">
  183. 28
  184. </div>
  185. <div class="label">
  186. Blue Shiba-Inus
  187. </div>
  188. </div>
  189. <div class="orange statistic">
  190. <div class="value">
  191. 14
  192. </div>
  193. <div class="label">
  194. Orange Chihuahuas
  195. </div>
  196. </div>
  197. <div class="purple statistic">
  198. <div class="value">
  199. 82
  200. </div>
  201. <div class="label">
  202. Purple Labradoodles
  203. </div>
  204. </div>
  205. <div class="pink statistic">
  206. <div class="value">
  207. 1
  208. </div>
  209. <div class="label">
  210. Pink Labradors
  211. </div>
  212. </div>
  213. <div class="red statistic">
  214. <div class="value">
  215. 22
  216. </div>
  217. <div class="label">
  218. Red Mastifs
  219. </div>
  220. </div>
  221. <div class="teal statistic">
  222. <div class="value">
  223. 15
  224. </div>
  225. <div class="label">
  226. Teal Cockerspaniels
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. <div class="example">
  232. <h4 class="ui header">Inverted</h4>
  233. <p>A statistic can be formatted to fit on a dark background</p>
  234. <div class="ui inverted segment">
  235. <div class="ui inverted statistic">
  236. <div class="value">
  237. 22
  238. </div>
  239. <div class="label">
  240. Breeds of Dog
  241. </div>
  242. </div>
  243. <div class="ui inverted yellow statistic">
  244. <div class="value">
  245. 27
  246. </div>
  247. <div class="label">
  248. Yellow Labradors
  249. </div>
  250. </div>
  251. <div class="ui inverted green statistic">
  252. <div class="value">
  253. 8
  254. </div>
  255. <div class="label">
  256. Green Poodles
  257. </div>
  258. </div>
  259. <div class="ui inverted blue statistic">
  260. <div class="value">
  261. 28
  262. </div>
  263. <div class="label">
  264. Blue Shiba-Inus
  265. </div>
  266. </div>
  267. <div class="ui inverted orange statistic">
  268. <div class="value">
  269. 14
  270. </div>
  271. <div class="label">
  272. Orange Chihuahuas
  273. </div>
  274. </div>
  275. <div class="ui inverted purple statistic">
  276. <div class="value">
  277. 82
  278. </div>
  279. <div class="label">
  280. Purple Labradoodles
  281. </div>
  282. </div>
  283. <div class="ui inverted pink statistic">
  284. <div class="value">
  285. 1
  286. </div>
  287. <div class="label">
  288. Pink Labradors
  289. </div>
  290. </div>
  291. <div class="ui inverted red statistic">
  292. <div class="value">
  293. 22
  294. </div>
  295. <div class="label">
  296. Red Mastifs
  297. </div>
  298. </div>
  299. <div class="ui inverted teal statistic">
  300. <div class="value">
  301. 15
  302. </div>
  303. <div class="label">
  304. Teal Cockerspaniels
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. <div class="example">
  310. <h4 class="ui header">Floated</h4>
  311. <p>An statistic can sit to the left or right of other content</p>
  312. <div class="ui segment">
  313. <div class="ui right floated statistic">
  314. <div class="value">
  315. 22
  316. </div>
  317. <div class="label">
  318. Breeds of Dog
  319. </div>
  320. </div>
  321. <p>Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia facete scriptorem, est autem aliquip detraxit at. Usu ocurreret referrentur at, cu epicurei appellantur vix. Cum ea laoreet recteque electram, eos choro alterum definiebas in. Vim dolorum definiebas an. Mei ex natum rebum iisque.</p>
  322. <p>Audiam quaerendum eu sea, pro omittam definiebas ex. Te est latine definitiones. Quot wisi nulla ex duo. Vis sint solet expetenda ne, his te phaedrum referrentur consectetuer. Id vix fabulas oporteat, ei quo vide phaedrum, vim vivendum maiestatis in.</p>
  323. <div class="ui left floated statistic">
  324. <div class="value">
  325. 22
  326. </div>
  327. <div class="label">
  328. Breeds of Dog
  329. </div>
  330. </div>
  331. <p>Eu quo homero blandit intellegebat. Incorrupte consequuntur mei id. Mei ut facer dolores adolescens, no illum aperiri quo, usu odio brute at. Qui te porro electram, ea dico facete utroque quo. Populo quodsi te eam, wisi everti eos ex, eum elitr altera utamur at. Quodsi convenire mnesarchum eu per, quas minimum postulant per id.</p>
  332. <p>Audiam quaerendum eu sea, pro omittam definiebas ex. Te est latine definitiones. Quot wisi nulla ex duo. Vis sint solet expetenda ne, his te phaedrum referrentur consectetuer. Id vix fabulas oporteat, ei quo vide phaedrum, vim vivendum maiestatis in.</p>
  333. </div>
  334. </div>
  335. <div class="example">
  336. <h4 class="ui header">Sizes</h4>
  337. <p>A statistic can vary in size</p>
  338. <div class="ui mini statistic">
  339. <div class="value">
  340. 22
  341. </div>
  342. <div class="label">
  343. Breeds of Dog
  344. </div>
  345. </div>
  346. <div class="ui tiny statistic">
  347. <div class="value">
  348. 22
  349. </div>
  350. <div class="label">
  351. Breeds of Dog
  352. </div>
  353. </div>
  354. <div class="ui small statistic">
  355. <div class="value">
  356. 22
  357. </div>
  358. <div class="label">
  359. Breeds of Dog
  360. </div>
  361. </div>
  362. <div class="ui statistic">
  363. <div class="value">
  364. 22
  365. </div>
  366. <div class="label">
  367. Breeds of Dog
  368. </div>
  369. </div>
  370. <div class="ui large statistic">
  371. <div class="value">
  372. 22
  373. </div>
  374. <div class="label">
  375. Breeds of Dog
  376. </div>
  377. </div>
  378. <div class="ui huge statistic">
  379. <div class="value">
  380. 22
  381. </div>
  382. <div class="label">
  383. Breeds of Dog
  384. </div>
  385. </div>
  386. </div>
  387. <div class="another example">
  388. <div class="ui mini horizontal statistic">
  389. <div class="value">
  390. 22
  391. </div>
  392. <div class="label">
  393. Breeds of Dog
  394. </div>
  395. </div>
  396. <div class="ui tiny horizontal statistic">
  397. <div class="value">
  398. 22
  399. </div>
  400. <div class="label">
  401. Breeds of Dog
  402. </div>
  403. </div>
  404. <div class="ui small horizontal statistic">
  405. <div class="value">
  406. 22
  407. </div>
  408. <div class="label">
  409. Breeds of Dog
  410. </div>
  411. </div>
  412. <div class="ui horizontal statistic">
  413. <div class="value">
  414. 22
  415. </div>
  416. <div class="label">
  417. Breeds of Dog
  418. </div>
  419. </div>
  420. <div class="ui large horizontal statistic">
  421. <div class="value">
  422. 22
  423. </div>
  424. <div class="label">
  425. Breeds of Dog
  426. </div>
  427. </div>
  428. <div class="ui huge horizontal statistic">
  429. <div class="value">
  430. 22
  431. </div>
  432. <div class="label">
  433. Breeds of Dog
  434. </div>
  435. </div>
  436. </div>
  437. </div>