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.

419 lines
11 KiB

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