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.

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