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.

375 lines
9.6 KiB

  1. ---
  2. layout : 'default'
  3. css : "label"
  4. title : 'Label'
  5. description : 'Labels give descriptions to pieces of content'
  6. type : 'UI Element'
  7. ---
  8. <%- @partial('header') %>
  9. <div class="main container">
  10. <div class="peek">
  11. <div class="ui vertical pointing secondary menu">
  12. <a class="active item">Content</a>
  13. <a class="item">Types</a>
  14. <a class="item">Variations</a>
  15. <a class="item">Groups</a>
  16. </div>
  17. </div>
  18. <h2 class="ui dividing header">Content</h2>
  19. <div class="example">
  20. <h4 class="ui header">Label</h4>
  21. <p>A basic label</p>
  22. <div class="ui label">
  23. <i class="mail icon"></i> 23
  24. </div>
  25. </div>
  26. <div class="example">
  27. <h4 class="ui header">Detail</h4>
  28. <p>A tag can optionally display a detail</p>
  29. <div class="ui label">
  30. Dogs
  31. <div class="detail">214</div>
  32. </div>
  33. </div>
  34. <div class="example">
  35. <h4 class="ui header">Removable</h4>
  36. <p>A tag can optionally be removable</p>
  37. <div class="ui label">
  38. Witty
  39. <i class="delete icon"></i>
  40. </div>
  41. </div>
  42. <h2 class="ui dividing header">Types</h2>
  43. <div class="example">
  44. <h4 class="ui header">Image</h4>
  45. <p>A tag can optionally display an image</p>
  46. <a class="ui image label">
  47. <img src="/images/demo/photo2.jpg">
  48. dog@doggington.com
  49. <i class="delete icon"></i>
  50. </a>
  51. <a class="ui image label">
  52. <img src="/images/demo/avatar2.jpg">
  53. james@thepooch.com
  54. <i class="delete icon"></i>
  55. </a>
  56. <a class="ui image label">
  57. <img src="/images/demo/avatar3.jpg">
  58. kelly@bellyscratcher.com
  59. <i class="delete icon"></i>
  60. </a>
  61. </div>
  62. <div class="example">
  63. <h4 class="ui header">Corner</h4>
  64. <p>A label can position itself in the corner of an element</p>
  65. <div class="yellow ui message">A corner label must be positioned inside a container with position: relative to display properly</div>
  66. <div class="ui segment">
  67. <div class="ui right red corner label">
  68. <i class="heart icon"></i>
  69. </div>
  70. <div class="ui left corner label">
  71. <div class="text">New</div>
  72. </div>
  73. This is a normal text segment
  74. </div>
  75. <div class="ui image">
  76. <a class="ui left corner label">
  77. <div class="text">New</div>
  78. </a>
  79. <a class="ui right red corner label">
  80. <i class="heart icon"></i>
  81. </a>
  82. <img src="/images/demo/stickfigure.jpg">
  83. </div>
  84. </div>
  85. <div class="example">
  86. <h4 class="ui header">Ribbon</h4>
  87. <p>A label can appear as a ribbon attaching itself to an element.</p>
  88. <div class="ui two column grid">
  89. <div class="row">
  90. <div class="column">
  91. <div class="ui raised segment">
  92. <div class="ui ribbon label">Dogs</div>
  93. <p>Pretty nice animals</p>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="existing code">
  99. <div class="ui ribbon label">Dogs</div>
  100. </div>
  101. </div>
  102. <div class="example">
  103. <h4 class="ui header">Attached</h4>
  104. <p>A label can attach to a content segment</p>
  105. <div class="ui three column grid">
  106. <div class="row">
  107. <div class="column">
  108. <div class="ui segment">
  109. <div class="ui top attached label">HTML</div>
  110. <p>This is some pretend content</p>
  111. </div>
  112. </div>
  113. <div class="column">
  114. <div class="ui segment">
  115. <div class="ui bottom attached label">CSS</div>
  116. <p>This is some pretend content</p>
  117. </div>
  118. </div>
  119. <div class="column">
  120. <div class="ui segment">
  121. <div class="ui top right attached label">Code</div>
  122. <p>This is some pretend content</p>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="row">
  127. <div class="column">
  128. <div class="ui segment">
  129. <div class="ui top left attached label">View</div>
  130. <p>This is some pretend content</p>
  131. </div>
  132. </div>
  133. <div class="column">
  134. <div class="ui segment">
  135. <div class="ui bottom left attached label">User View</div>
  136. <p>This is some pretend content</p>
  137. </div>
  138. </div>
  139. <div class="column">
  140. <div class="ui segment">
  141. <div class="ui bottom right attached label">Admin View</div>
  142. <p>This is some pretend content</p>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="existing code">
  148. <div class="ui top attached label">HTML</div>
  149. <div class="ui bottom attached label">CSS</div>
  150. <div class="ui top right attached label">Code</div>
  151. <div class="ui top left attached label">View</div>
  152. <div class="ui bottom left attached label">User View</div>
  153. <div class="ui bottom right attached label">Admin View</div>
  154. </div>
  155. </div>
  156. <h2 class="ui dividing header">Variations</h2>
  157. <div class="example">
  158. <h4 class="ui header">Colors</h4>
  159. <p>A label can have different colors</p>
  160. <a class="ui black label">
  161. First
  162. </a>
  163. <a class="ui green label">
  164. Fun
  165. </a>
  166. <a class="ui red label">
  167. Happy
  168. </a>
  169. <a class="ui blue label">
  170. Smart
  171. </a>
  172. <a class="ui orange label">
  173. Radical
  174. </a>
  175. <a class="ui purple label">
  176. Insane
  177. </a>
  178. <a class="ui teal label">
  179. Exciting
  180. </a>
  181. </div>
  182. <div class="example">
  183. <h4 class="ui header">Horizontal</h4>
  184. <p>A horizontal label is formatted to label content along-side it horizontally</p>
  185. <div class="ui divided selection list">
  186. <a class="item">
  187. <div class="ui red horizontal label">Fruit</div>
  188. Kumquats
  189. </a>
  190. <a class="item">
  191. <div class="ui purple horizontal label">Candy</div>
  192. Ice Cream
  193. </a>
  194. <a class="item">
  195. <div class="ui red horizontal label">Fruit</div>
  196. Orange
  197. </a>
  198. <a class="item">
  199. <div class="ui horizontal label">Dog</div>
  200. Poodle
  201. </a>
  202. </div>
  203. </div>
  204. <div class="example">
  205. <h4 class="ui header">Circular</h4>
  206. <p>A label can be circular</p>
  207. <a class="ui black circular label">
  208. 12
  209. </a>
  210. <a class="ui green circular label">
  211. 11
  212. </a>
  213. <a class="ui red circular label">
  214. 10
  215. </a>
  216. <a class="ui blue circular label">
  217. 64
  218. </a>
  219. <a class="ui purple circular label">
  220. 62
  221. </a>
  222. <a class="ui teal circular label">
  223. 1
  224. </a>
  225. </div>
  226. <div class="another example">
  227. <div class="ui black circular label"></div>
  228. <div class="ui green circular label"></div>
  229. <div class="ui red circular label"></div>
  230. <div class="ui blue circular label"></div>
  231. <div class="ui purple circular label"></div>
  232. <div class="ui teal circular label"></div>
  233. </div>
  234. <div class="example">
  235. <h4 class="ui header">Floating</h4>
  236. <p>A label can float above another element</p>
  237. <div class="ui compact menu">
  238. <a class="item">
  239. <i class="icon mail"></i> Messages
  240. <div class="floating ui red label">22</div>
  241. </a>
  242. <a class="item">
  243. <i class="icon users"></i> Friends
  244. <div class="floating ui teal label">22</div>
  245. </a>
  246. </div>
  247. </div>
  248. <div class="example">
  249. <h4 class="ui header">Pointing</h4>
  250. <p>A label can point to content next to it</p>
  251. <form class="ui fluid form">
  252. <div class="field">
  253. <input type="text" placeholder="First name">
  254. <div class="ui pointing label">
  255. Please enter a value
  256. </div>
  257. </div>
  258. <div class="ui simple divider"></div>
  259. <div class="field" placeholder="Last Name">
  260. <div class="ui pointing below label">
  261. Please enter a value
  262. </div>
  263. <input type="text">
  264. </div>
  265. <div class="ui simple divider"></div>
  266. <div class="inline field">
  267. <input type="text" placeholder="Username">
  268. <div class="ui pointing left label">
  269. That name is taken!
  270. </div>
  271. </div>
  272. <div class="ui simple divider"></div>
  273. <div class="inline field">
  274. <div class="ui pointing right label">
  275. Your password must be 6 characters or more
  276. </div>
  277. <input type="password">
  278. </div>
  279. </form>
  280. </div>
  281. <div class="example">
  282. <h4 class="ui header">Size</h4>
  283. <p>A label can be small or large</p>
  284. <div class="ui small label">
  285. Fun
  286. </div>
  287. <br><br>
  288. <div class="ui large label">
  289. Fun
  290. </div>
  291. </div>
  292. <h2 class="ui dividing header">Groups</h2>
  293. <div class="example">
  294. <h4 class="ui header">Size</h4>
  295. <p>Labels can share sizes together</p>
  296. <div class="ui large labels">
  297. <div class="ui label">
  298. Fun
  299. </div>
  300. <div class="ui label">
  301. Happy
  302. </div>
  303. <div class="ui label">
  304. Smart
  305. </div>
  306. <div class="ui label">
  307. Witty
  308. </div>
  309. </div>
  310. </div>
  311. <div class="example">
  312. <h4 class="ui header">Colors</h4>
  313. <p>Labels can share colors together</p>
  314. <div class="ui blue labels">
  315. <a class="ui label">
  316. Fun <i class="icon close"></i>
  317. </a>
  318. <a class="ui label">
  319. Happy
  320. <div class="detail">22</div>
  321. </a>
  322. <a class="ui label">
  323. Smart
  324. </a>
  325. <a class="ui label">
  326. Insane
  327. </a>
  328. <a class="ui label">
  329. Exciting
  330. </a>
  331. </div>
  332. </div>
  333. <div class="example">
  334. <h4 class="ui header">Circular</h4>
  335. <p>Labels can share shapes</p>
  336. <div class="ui circular labels">
  337. <a class="ui label">
  338. 11
  339. </a>
  340. <a class="ui label">
  341. 22
  342. </a>
  343. <a class="ui label">
  344. 33
  345. </a>
  346. <a class="ui label">
  347. 44
  348. </a>
  349. <a class="ui label">
  350. 141
  351. </a>
  352. </div>
  353. </div>
  354. </div>