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.

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