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.

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