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
12 KiB

  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.31.6"/>
  9. <title>Button | 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/checkbox.css">
  16. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/header.css">
  17. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/label.css">
  18. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/divider.css">
  19. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/block.css">
  20. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/segment.css">
  21. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/grid.css">
  22. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/table.css">
  23. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/form.css">
  24. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/menu.css">
  25. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/modules/shape.css">
  26. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  27. <link rel="stylesheet" type="text/css" href="/stylesheets/library/sidr.css">
  28. <script src="/javascript/library/jquery.js"></script>
  29. <script src="/javascript/library/ace/ace.js"></script>
  30. <script src="/javascript/library/sidr.js"></script>
  31. <script src="/javascript/library/waypoints.js"></script>
  32. <script src="/modules/behavior/state.js"></script>
  33. <script src="/modules/ui/shape.js"></script>
  34. <script src="/javascript/semantic.js"></script>
  35. </head>
  36. <body id="example">
  37. <div class="ui large vertical menu" id="menu">
  38. <div class="item"><a href="/index.html"><b>Introduction</b></a></div>
  39. <div class="item"><a href="/download.html"><b>Download</b></a></div>
  40. <div class="item">
  41. <a href="element.html"><b>UI Elements</b></a>
  42. <div class="menu">
  43. <div class="active item"><a href="/elements/button.html">Button</a></div>
  44. <div class="item"><a href="/elements/label.html">Label</a></div>
  45. </div>
  46. </div>
  47. <div class="item">
  48. <a href="/collection.html"><b>UI Collections</b></a>
  49. <div class="menu">
  50. <div class="item"><a href="/collections/form.html">Form</a></div>
  51. <div class="item"><a href="/elements/header.html">Header</a></div>
  52. <div class="item"><a href="/collections/menu.html">Menu</a></div>
  53. <div class="item"><a href="/collections/table.html">Table</a></div>
  54. <div class="item"><a href="/collections/block.html">Text Block</a></div>
  55. </div>
  56. </div>
  57. <div class="item">
  58. <a href="/module.html"><b>UI Modules</b></a>
  59. <div class="menu">
  60. <div class="item"><a href="/modules/shape.html">Shape</a></div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="ui fixed transparent contrasting main menu">
  65. <div class="container">
  66. <div class="title item">
  67. <b>Semantic:</b> UI Element
  68. </div>
  69. <div class="icon previous link disabled item">
  70. <i class="icon left-open"></i>
  71. </div>
  72. <div class="section dropdown item">
  73. 1 of 2
  74. <div class="menu">
  75. <div class="active item">
  76. <a href="/elements/button.html">1. Button</a>
  77. </div>
  78. <div class="item">
  79. <a href="/elements/label.html">2. Label</a>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="icon next link item">
  84. <a href="/elements/label.html"><i class="icon right-open"></i></a>
  85. </div>
  86. <div class="right menu">
  87. <a class="item" href="https://github.com/quirkyinc/semantic">
  88. <i class="icon github"></i>
  89. </a>
  90. <div class="dropdown item">
  91. <i class="icon tint"></i> Theme
  92. <div class="theme menu">
  93. <div class="active item" data-theme="flat">Flat</div>
  94. <div class="item" data-theme="shaded">Shaded</div>
  95. <div class="item" data-theme="classic">Classic</div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="ui huge left attached vertical side buttons">
  102. <div class="ui large blue sidebar button"><i class="icon th-list"></i></div>
  103. </div>
  104. <div class="segment">
  105. <div class="container">
  106. <h1>Button</h1>
  107. <p>Buttons indicate a possible action a user may take.</p>
  108. <p>Button variations are used to explain relationships between user actions and other elements, or to show emphasis.</p>
  109. </div>
  110. </div>
  111. <div class="main container">
  112. <div class="peek">
  113. <div class="ui vertical pointing link menu">
  114. <div class="active item">Standard</div>
  115. <div class="item">States</div>
  116. <div class="item">Variations</div>
  117. <div class="item">Groups</div>
  118. </div>
  119. </div>
  120. <h2>Standard</h2>
  121. <div class="example">
  122. <h4>Button:</h4>
  123. <p>A standard button</p>
  124. <div class="ui button">Button</div>
  125. </div>
  126. <h2>States</h2>
  127. <div class="example">
  128. <h4>Hover</h4>
  129. <p>Changes when a user moves their cursor over it</p>
  130. <div class="ui hover button">Hovered Button</div>
  131. </div>
  132. <div class="example">
  133. <h4>Down</h4>
  134. <p>Changes when pressed using touch or mouse events</p>
  135. <div class="ui down button">Pressed Button</div>
  136. </div>
  137. <div class="example">
  138. <h4>Active</h4>
  139. <p>Changes to show it is currently the selected user action</p>
  140. <div class="ui active button">Active Button</div>
  141. </div>
  142. <div class="example">
  143. <h4>Disabled</h4>
  144. <p>Changes to show it is currently unable to be interacted with</p>
  145. <div class="ui disabled button">Disabled Button</div>
  146. </div>
  147. <div class="example">
  148. <h4>Loading</h4>
  149. <p>Can show a loading indicator:</p>
  150. <div class="ui loading button">Loading Button</div>
  151. </div>
  152. <div class="example">
  153. <h4>Success</h4>
  154. <p>Can alert to a succesful action:</p>
  155. <div class="ui success button">Successful Button</div>
  156. </div>
  157. <div class="example">
  158. <h4>Error</h4>
  159. <p>Can alert user of an error:</p>
  160. <div class="ui error button">Error</div>
  161. </div>
  162. <div class="example">
  163. <h4>All together:</h4>
  164. <div class="ui button">Normal</div>
  165. <div class="ui button hover">Hover</div>
  166. <div class="ui button down">Down</div>
  167. <div class="ui button loading">Loading</div>
  168. <br><br>
  169. <div class="ui button disabled">Disabled</div>
  170. <div class="ui button active">Active</div>
  171. <div class="ui button active toggle">Toggled</div>
  172. <div class="ui button error">Error</div>
  173. <div class="ui button success">Success</div>
  174. </div>
  175. <h2>Variations</h2>
  176. <div class="example">
  177. <h4>Sizes</h4>
  178. <p>Can have different sizes:</p>
  179. <div class="mini ui button">
  180. Mini
  181. </div>
  182. <div class="tiny ui button">
  183. Tiny
  184. </div>
  185. <div class="small ui button">
  186. Small
  187. </div>
  188. <div class="medium ui button">
  189. Medium
  190. </div>
  191. <div class="large ui button">
  192. Large
  193. </div>
  194. <div class="big ui button">
  195. Big
  196. </div>
  197. <div class="huge ui button">
  198. Huge
  199. </div>
  200. <div class="massive ui button">
  201. Massive
  202. </div>
  203. <div class="gigantic ui button">
  204. Gigantic
  205. </div>
  206. </div>
  207. <div class="example">
  208. <h4>Colors</h4>
  209. <p>Can have different colors:</p>
  210. <div class="blue ui button">Blue Button</div>
  211. <div class="purple ui button">Purple Button</div>
  212. </div>
  213. <h4>Feedback</h4>
  214. <div class="example">
  215. <p>Can be positive or negative:</p>
  216. <div class="positive ui button">Positive Button</div>
  217. <div class="negative ui button">Negative Button</div>
  218. </div>
  219. <div class="example">
  220. <h4>Fluid</h4>
  221. <p>Can fit parent container:</p>
  222. <div class="fluid ui button">Fits container</div>
  223. </div>
  224. <div class="example">
  225. <h4>Bubbly</h4>
  226. <p>Can be bubbly:</p>
  227. <div class="bubbly ui button">More bubbly</div>
  228. </div>
  229. <div class="example">
  230. <h4>Icon</h4>
  231. <p>Can be formatted as an icon toolbar:</p>
  232. <div class="massive icon ui button">
  233. <i class="icon cloud"></i>
  234. </div>
  235. </div>
  236. <div class="example">
  237. <h4>Vertically Attached</h4>
  238. <p>Can be attached to the top or bottom of other content</p>
  239. <div class="ui top attached button">Top</div>
  240. <div style="border-left: 1px solid #DDDDDD;border-right: 1px solid #DDDDDD;background-color:#FFFFFF;height:200px;"></div>
  241. <div class="ui bottom attached button">Bottom</div>
  242. </div>
  243. <div class="example">
  244. <h4>Horizontally Attached</h4>
  245. <p>Can be attached to the left or right of other content</p>
  246. <div class="ui left attached button">Left</div>
  247. <div style="width: 200px; display: inline-block; background-color: rgb(255, 255, 255); vertical-align: middle; height: 34px; margin: 0px -4px; border-bottom: 2px solid rgb(221, 221, 221); border-top: 2px solid rgb(221, 221, 221);"></div>
  248. <div class="ui right attached button">Right</div>
  249. </div>
  250. <div class="example">
  251. <h4>Form Attached</h4>
  252. <p>Can be attached to an input field</p>
  253. <div class="ui form">
  254. <input type="text" class="attached">
  255. <div class="ui attached button">Search</div>
  256. </div>
  257. </div>
  258. <h2>Group</h2>
  259. <div class="example">
  260. <h4>Buttons</h4>
  261. <p>Can exist together as groups</p>
  262. <div class="ui buttons">
  263. <div class="ui button">One</div>
  264. <div class="ui button">Two</div>
  265. <div class="ui button">Three</div>
  266. </div>
  267. </div>
  268. <div class="example">
  269. <h4>Conditionals</h4>
  270. <p>Groups can be separated by conditionals</p>
  271. <div class="ui buttons">
  272. <div class="ui button">Cancel</div>
  273. <div class="or"></div>
  274. <div class="ui positive button">Save</div>
  275. </div>
  276. </div>
  277. <h3>Plural Variations</h3>
  278. <p>Singular variations can be applied to groups to infer all elements share the same quality</p>
  279. <div class="example">
  280. <h4>Icon</h4>
  281. <p>Groups can be formatted as icon toolbars</p>
  282. <div class="ui icon buttons">
  283. <div class="ui button"><i class="icon pause"></i></div>
  284. <div class="ui button"><i class="icon play"></i></div>
  285. <div class="ui button"><i class="icon fast-fw"></i></div>
  286. </div>
  287. </div>
  288. <div class="example">
  289. <h4>Fluid</h4>
  290. <p>Groups can be divided evenly to fit parent</p>
  291. <div class="ui five fluid buttons">
  292. <div class="ui button">One</div>
  293. <div class="ui button">Two</div>
  294. <div class="ui button">Three</div>
  295. <div class="ui button">Four</div>
  296. <div class="ui button">Five</div>
  297. </div>
  298. </div>
  299. <div class="example">
  300. <h4>Colors</h4>
  301. <p>Groups can have a shared color</p>
  302. <div class="blue ui buttons">
  303. <div class="ui button">One</div>
  304. <div class="ui button">Two</div>
  305. <div class="ui button">Three</div>
  306. </div>
  307. <div class="blue large icon ui buttons">
  308. </div>
  309. <div class="example"></div>
  310. <h4>Sizes</h4>
  311. <p>Groups can have a shared size</p>
  312. <div class="huge ui buttons">
  313. <div class="ui button">One</div>
  314. <div class="ui button">Two</div>
  315. <div class="ui button">Three</div>
  316. </div>
  317. </div>
  318. </div>
  319. </body>
  320. </html>
  321. </body>
  322. </html>