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.

377 lines
10 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. <!DOCTYPE html>
  2. <head>
  3. <!-- Standard Meta -->
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="viewport" content="width=device-width" />
  7. <!-- Site Properities -->
  8. <meta http-equiv="X-Powered-By" content="DocPad v6.32.0"/>
  9. <title>Label | Semantic UI</title>
  10. <meta name="description" content="Semantic empowers designers and developers by creating a shared vocabulary for UI." />
  11. <meta name="keywords" content="html5, ui, library, framework, javascript" />
  12. <link rel="stylesheet" type="text/css" href="/stylesheets/reset.css">
  13. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/icons.css">
  14. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/button.css">
  15. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/header.css">
  16. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/label.css">
  17. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/divider.css">
  18. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/block.css">
  19. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/segment.css">
  20. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/grid.css">
  21. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/table.css">
  22. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/form.css">
  23. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/menu.css">
  24. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/modules/shape.css">
  25. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/modules/checkbox.css">
  26. <link rel="stylesheet" type="text/css" href="/stylesheets/library/sidr.css">
  27. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  28. <link rel="stylesheet" type="text/css" href="/stylesheets/shape.css">
  29. <script src="/javascript/library/jquery.js"></script>
  30. <script src="/javascript/library/ace/ace.js"></script>
  31. <script src="/javascript/library/sidr.js"></script>
  32. <script src="/javascript/library/waypoints.js"></script>
  33. <script src="/ui/flat/modules/behavior/state.js"></script>
  34. <script src="/ui/flat/modules/shape.js"></script>
  35. <script src="/ui/flat/modules/checkbox.js"></script>
  36. <script src="/javascript/semantic.js"></script>
  37. <script src="/javascript/shape.js"></script>
  38. </head>
  39. <body id="example">
  40. <div class="ui large vertical menu" id="menu">
  41. <div class="header item">Table of Contents</div>
  42. <div class="item"><a href="/index.html"><b>Introduction</b></a></div>
  43. <div class="item"><a href="/download.html"><b>Download</b></a></div>
  44. <div class="item">
  45. <a href="/element.html"><b>UI Elements</b></a>
  46. <div class="menu">
  47. <a class="item" href="/elements/button.html">Button</a>
  48. <a class="active item" href="/elements/label.html">Label</a>
  49. </div>
  50. </div>
  51. <div class="item">
  52. <a href="/collection.html"><b>UI Collections</b></a>
  53. <div class="menu">
  54. <a class="item" href="/collections/form.html">Form</a>
  55. <a class="item" href="/collections/grid.html">Grid</a>
  56. <a class="item" href="/collections/menu.html">Menu</a>
  57. <a class="item" href="/collections/table.html">Table</a>
  58. <a class="item" href="/collections/block.html">Text Block</a>
  59. </div>
  60. </div>
  61. <div class="item">
  62. <a href="/module.html"><b>UI Modules</b></a>
  63. <div class="menu">
  64. <a class="item" href="/modules/shape.html">Shape</a>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="ui fixed transparent contrasting main menu">
  69. <div class="container">
  70. <div class="title item">
  71. <b>UI Element:</b> Label
  72. </div>
  73. <div class="icon previous link item">
  74. <a href="/elements/button.html"><i class="icon left-open"></i></a>
  75. </div>
  76. <div class="section dropdown item">
  77. 2 of 2
  78. <div class="menu">
  79. <div class="item">
  80. <a href="/elements/button.html">1. Button</a>
  81. </div>
  82. <div class="active item">
  83. <a href="/elements/label.html">2. Label</a>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="icon next disabled link item">
  88. <i class="icon right-open"></i>
  89. </div>
  90. <div class="right menu">
  91. <a class="item" href="https://github.com/quirkyinc/semantic">
  92. <i class="icon github"></i>
  93. </a>
  94. <div class="dropdown item">
  95. <i class="icon tint"></i> Theme
  96. <div class="theme menu">
  97. <div class="active item" data-theme="flat">Flat</div>
  98. <div class="item" data-theme="shaded">Shaded</div>
  99. <div class="item" data-theme="classic">Classic</div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="ui huge left attached vertical side buttons">
  106. <div class="ui large blue sidebar button"><i class="icon th-list"></i> Menu</div>
  107. </div>
  108. <div class="segment">
  109. <div class="container">
  110. <h1>Label</h1>
  111. <p>Labels can be used to give descriptions to sections of content. They can be formatted like tags, used to mark separate sections of a group of content.</p>
  112. </div>
  113. </div>
  114. <div class="main container">
  115. <div class="peek">
  116. <div class="ui vertical pointing link menu">
  117. <div class="active item">Standard</div>
  118. <div class="item">States</div>
  119. <div class="item">Variations</div>
  120. <div class="item">Groups</div>
  121. </div>
  122. </div>
  123. <h2>Standard</h2>
  124. <div class="example">
  125. <h4>Label</h4>
  126. <p>A basic label</p>
  127. <div class="ui label">
  128. Fun
  129. </div>
  130. </div>
  131. <div class="example">
  132. <h4>Linkable Label</h4>
  133. <p>If an a tag is used, a label will be formatted as a link</p>
  134. <a class="ui label">
  135. Fun
  136. </a>
  137. </div>
  138. <div class="example">
  139. <h4>Attached Label</h4>
  140. <p>A label attached to a content segment</p>
  141. <div class="ui two split grid">
  142. <div class="division">
  143. <div class="ui segment">
  144. <div class="ui attached label">Top Left</div>
  145. <div class="ui right attached label">Top Right</div>
  146. <div class="ui bottom attached label">Bottom Left</div>
  147. <div class="ui bottom right attached label">Bottom Right</div>
  148. <p style="margin:40px 0px;">Hey let's look at labels.</p>
  149. </div>
  150. </div>
  151. <div class="division">
  152. <div class="ui segment">
  153. <div class="ui black attached label">Existing Users</div>
  154. <div class="ui fluid form">
  155. <div class="field">
  156. <label>E-mail</label>
  157. <input type="text">
  158. </div>
  159. <div class="field">
  160. <label>Password</label>
  161. <input type="password">
  162. </div>
  163. <div class="ui button">Log in</div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="example">
  170. <h4>Label with detail</h4>
  171. <p>A tag can optionally display a detail</p>
  172. <div class="ui label">
  173. Fun
  174. <div class="detail">New</div>
  175. </div>
  176. <div class="ui label">
  177. Red
  178. <div class="detail">22</div>
  179. </div>
  180. </div>
  181. <div class="example">
  182. <h4>Removable label</h4>
  183. <p>A tag can also be removable</p>
  184. <div class="ui label">
  185. Witty
  186. <i class="icon close"></i>
  187. </div>
  188. </div>
  189. <h2>States</h2>
  190. <p>Labels only have a single ui state</p>
  191. <h2>Variations</h2>
  192. <div class="example">
  193. <h4>Colors</h4>
  194. <p>A label can have different colors</p>
  195. <a class="ui black label">
  196. First
  197. </a>
  198. <a class="ui green label">
  199. Fun
  200. </a>
  201. <a class="ui red label">
  202. Happy
  203. </a>
  204. <a class="ui blue label">
  205. Smart
  206. </a>
  207. <a class="ui purple label">
  208. Insane
  209. </a>
  210. <a class="ui teal label">
  211. Exciting
  212. </a>
  213. </div>
  214. <div class="example">
  215. <h4>Floating</h4>
  216. <p>A label can float above another element</p>
  217. <div class="ui compact menu">
  218. <a class="item">
  219. <i class="icon mail"></i> Messages
  220. <div class="floating ui red label">22</div>
  221. </a>
  222. <a class="item">
  223. <i class="icon users"></i> Friends
  224. <div class="floating ui teal label">22</div>
  225. </a>
  226. </div>
  227. </div>
  228. <div class="example">
  229. <h4>Pointing</h4>
  230. <p>A label can point to content next to it</p>
  231. <form class="ui fluid form">
  232. <div class="field">
  233. <input type="text" placeholder="First name">
  234. <div class="ui pointing black label">
  235. First Name
  236. </div>
  237. </div>
  238. <div class="ui simple divider"></div>
  239. <div class="field" placeholder="Last Name">
  240. <div class="ui pointing below black label">
  241. Last Name
  242. </div>
  243. <input type="text">
  244. </div>
  245. <div class="ui simple divider"></div>
  246. <div class="inline field">
  247. <input type="text" placeholder="Username">
  248. <div class="ui pointing left black label">
  249. Username
  250. </div>
  251. </div>
  252. <div class="ui simple divider"></div>
  253. <div class="inline field">
  254. <div class="ui pointing right black label">
  255. Password
  256. </div>
  257. <input type="password">
  258. </div>
  259. </form>
  260. </div>
  261. <div class="example">
  262. <h4>Tag</h4>
  263. <p>A label can look like a tag</p>
  264. <a class="ui tag label">
  265. First
  266. </a>
  267. </div>
  268. <div class="example">
  269. <h4>Size</h4>
  270. <p>A label can be small or large</p>
  271. <div class="ui small label">
  272. Fun
  273. </div>
  274. <br><br>
  275. <div class="ui large label">
  276. Fun
  277. </div>
  278. </div>
  279. <h2>Groups</h2>
  280. <div class="example">
  281. <h4>Label Groups</h4>
  282. <p>Groups can share variations together</p>
  283. <div class="ui large labels">
  284. <div class="ui label">
  285. Fun
  286. </div>
  287. <div class="ui label">
  288. Happy
  289. </div>
  290. <div class="ui label">
  291. Smart
  292. </div>
  293. <div class="ui label">
  294. Witty
  295. </div>
  296. </div>
  297. <br><br>
  298. <div class="ui tag labels">
  299. <a class="ui green label">
  300. Fun <i class="icon close"></i>
  301. </a>
  302. <a class="ui red label">
  303. Happy
  304. <div class="detail">22</div>
  305. </a>
  306. <a class="ui blue label">
  307. Smart
  308. </a>
  309. <a class="ui purple label">
  310. Insane
  311. </a>
  312. <a class="ui teal label">
  313. Exciting
  314. </a>
  315. </div>
  316. </div>
  317. </div>
  318. </body>
  319. </html>
  320. </body>
  321. </html>