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.

330 lines
8.7 KiB

  1. ---
  2. layout : 'default'
  3. css : 'button'
  4. title : 'Button'
  5. description : 'Buttons indicate a possible user action.'
  6. type : 'UI Element'
  7. ---
  8. <script src="/javascript/button.js"></script>
  9. <%- @partial('header') %>
  10. <div class="main container">
  11. <div class="peek">
  12. <div class="ui vertical pointing secondary menu">
  13. <a class="active item">Types</a>
  14. <a class="item">Groups</a>
  15. <a class="item">States</a>
  16. <a class="item">Variations</a>
  17. </div>
  18. </div>
  19. <h2 class="ui dividing header">Types</h2>
  20. <div class="follow example">
  21. <h4 class="ui header">Button</h4>
  22. <p>A standard button</p>
  23. <div class="ui button">
  24. Follow
  25. </div>
  26. </div>
  27. <div class="example">
  28. <h4 class="ui header">Icon</h4>
  29. <p>A button can have only an icon</p>
  30. <div class="ui icon button">
  31. <i class="cloud icon"></i>
  32. </div>
  33. </div>
  34. <div class="example">
  35. <h4 class="ui header">Labeled Icon</h4>
  36. <p>A button can have an icon and a label</p>
  37. <div class="ui labeled icon button">
  38. <i class="pause icon"></i>
  39. Pause
  40. </div>
  41. <div class="ui right labeled icon button">
  42. <i class="right arrow icon"></i>
  43. Next
  44. </div>
  45. </div>
  46. <div class="example">
  47. <h4 class="ui header">Social</h4>
  48. <p>A button can be formatted to link to a social website</p>
  49. <div class="ui facebook button">
  50. <i class="facebook icon"></i>
  51. Log-in with Facebook
  52. </div>
  53. <div class="ui twitter button">
  54. <i class="twitter icon"></i>
  55. Sign-up with Twitter
  56. </div>
  57. </div>
  58. <h2 class="ui dividing header">Groups</h2>
  59. <div class="example">
  60. <h4 class="ui header">Buttons</h4>
  61. <p>Buttons can exist together as a group</p>
  62. <div class="ui buttons">
  63. <div class="ui button">One</div>
  64. <div class="ui button">Two</div>
  65. <div class="ui button">Three</div>
  66. </div>
  67. </div>
  68. <div class="example">
  69. <h4 class="ui header">Conditionals</h4>
  70. <p>Button groups can be separated by conditionals</p>
  71. <div class="ui buttons">
  72. <div class="ui button">Cancel</div>
  73. <div class="or"></div>
  74. <div class="ui positive button">Save</div>
  75. </div>
  76. </div>
  77. <h2 class="ui dividing header">States</h2>
  78. <div class="example">
  79. <h4 class="ui header">Hover</h4>
  80. <p>A button can change to show a user has hovered their mouse</p>
  81. <div class="ui hover button">
  82. Follow
  83. </div>
  84. </div>
  85. <div class="example">
  86. <h4 class="ui header">Down</h4>
  87. <p>A button can change when pressed using touch or mouse events</p>
  88. <div class="ui down button">
  89. <i class="user icon"></i>
  90. Follow
  91. </div>
  92. </div>
  93. <div class="example">
  94. <h4 class="ui header">Active</h4>
  95. <p>A button can show it is currently the active user selection</p>
  96. <div class="ui active button">
  97. <i class="user icon"></i>
  98. Follow
  99. </div>
  100. </div>
  101. <div class="example">
  102. <h4 class="ui header">Disabled</h4>
  103. <p>A button can show it is currently unable to be interacted with</p>
  104. <div class="ui disabled button">
  105. <i class="user icon"></i>
  106. Followed
  107. </div>
  108. </div>
  109. <div class="example">
  110. <h4 class="ui header">Loading</h4>
  111. <p>A button can show a loading indicator</p>
  112. <div class="ui loading button">Loading Button</div>
  113. </div>
  114. <h2 class="ui dividing header">Variations</h2>
  115. <div class="example">
  116. <h4 class="ui header">Sizes</h4>
  117. <p>A button can have different sizes:</p>
  118. <div class="mini ui button">
  119. Mini
  120. </div>
  121. <div class="tiny ui button">
  122. Tiny
  123. </div>
  124. <div class="small ui button">
  125. Small
  126. </div>
  127. <div class="medium ui button">
  128. Medium
  129. </div>
  130. <div class="large ui button">
  131. Large
  132. </div>
  133. <div class="big ui button">
  134. Big
  135. </div>
  136. <div class="huge ui button">
  137. Huge
  138. </div>
  139. <div class="massive ui button">
  140. Massive
  141. </div>
  142. </div>
  143. <div class="example">
  144. <h4 class="ui header">Ordinality</h4>
  145. <p>A button can be formatted to show different levels of emphasis</p>
  146. <div class="ui primary button">
  147. Add to Cart
  148. </div>
  149. <div class="ui secondary button">
  150. Save
  151. </div>
  152. </div>
  153. <div class="example">
  154. <h4 class="ui header">Basic</h4>
  155. <p>A basic button removes all unnecessary formatting</p>
  156. <div class="ui basic button">
  157. <i class="icon user"></i>
  158. Add Friend
  159. </div>
  160. <div class="ui basic button">
  161. <i class="icon globe"></i>
  162. Change Language
  163. </div>
  164. </div>
  165. <div class="example">
  166. <h4 class="ui header">Colors</h4>
  167. <p>A button can have different colors:</p>
  168. <a class="ui black button">Black Button</a>
  169. <a class="ui green button">Green BUtton</a>
  170. <a class="ui red button">Red Button</a>
  171. <a class="ui blue button">Blue Button</a>
  172. <a class="ui purple button">Purple Button</a>
  173. <a class="ui teal button">Teal Button</a>
  174. <a class="ui orange button">Orange Button</a>
  175. </div>
  176. <div class="example">
  177. <h4 class="ui header">Toggle</h4>
  178. <p>A button can be formatted to toggle on and off</p>
  179. <div class="ui toggle button">
  180. Vote
  181. </div>
  182. </div>
  183. <div class="example">
  184. <h4 class="ui header">Feedback</h4>
  185. <p>A button can be positive or negative:</p>
  186. <div class="positive ui button">Positive Button</div>
  187. <div class="negative ui button">Negative Button</div>
  188. </div>
  189. <div class="example">
  190. <h4 class="ui header">Fluid</h4>
  191. <p>A button can fit parent container:</p>
  192. <div class="fluid ui button">Fits container</div>
  193. </div>
  194. <div class="example">
  195. <h4 class="ui header">Circular</h4>
  196. <p>A button can be circular:</p>
  197. <div class="circular ui button">Rounded</div>
  198. <div class="circular ui icon button">
  199. <i class="icon settings"></i></div>
  200. </div>
  201. <div class="example">
  202. <h4 class="ui header">Vertically Attached</h4>
  203. <p>A button can be attached to the top or bottom of other content</p>
  204. <div class="ui top attached button">Top</div>
  205. <div class="ui attached segment"></div>
  206. <div class="bottom attached ui button">Bottom</div>
  207. </div>
  208. <div class="example">
  209. <h4 class="ui header">Horizontally Attached</h4>
  210. <p>A button can be attached to the left or right of other content</p>
  211. <div class="ui left attached button">Left</div>
  212. <div class="right attached ui button">Right</div>
  213. </div>
  214. <h3 class="ui dividing header">Group Variations</h3>
  215. <div class="example">
  216. <h4 class="ui header">Vertical</h4>
  217. <p>Groups can be formatted to appear vertically</p>
  218. <div class="ui vertical buttons">
  219. <div class="ui button">Top</div>
  220. <div class="ui button">Middle</div>
  221. <div class="ui button">Bottom</div>
  222. </div>
  223. </div>
  224. <div class="example">
  225. <h4 class="ui header">Icon</h4>
  226. <p>Groups can be formatted as icons</p>
  227. <div class="ui icon buttons">
  228. <div class="ui button">
  229. <i class="pause icon"></i></div>
  230. <div class="ui button">
  231. <i class="play icon"></i></div>
  232. <div class="ui button">
  233. <i class="shuffle icon"></i></div>
  234. </div>
  235. </div>
  236. <div class="example">
  237. <h4 class="ui header">Labeled Icon</h4>
  238. <p>Groups can be formatted as labeled icons</p>
  239. <div class="ui vertical labeled icon buttons">
  240. <div class="ui button">
  241. <i class="pause icon"></i>
  242. Pause
  243. </div>
  244. <div class="ui button">
  245. <i class="play icon"></i>
  246. Play
  247. </div>
  248. <div class="ui button">
  249. <i class="shuffle icon"></i>
  250. Shuffle
  251. </div>
  252. </div>
  253. </div>
  254. <div class="example">
  255. <h4 class="ui header">Fluid</h4>
  256. <p>Groups can be divided evenly to fit parent</p>
  257. <div class="five fluid ui buttons">
  258. <div class="ui button">One</div>
  259. <div class="ui button">Two</div>
  260. <div class="ui button">Three</div>
  261. <div class="ui button">Four</div>
  262. <div class="ui button">Five</div>
  263. </div>
  264. </div>
  265. <div class="example">
  266. <h4 class="ui header">Colors</h4>
  267. <p>Groups can have a shared color</p>
  268. <div class="blue ui buttons">
  269. <div class="ui button">One</div>
  270. <div class="ui button">Two</div>
  271. <div class="ui button">Three</div>
  272. </div>
  273. </div>
  274. <div class="example">
  275. <h4 class="ui header">Basic</h4>
  276. <p>A button group can be formatted to remove extra formatting</p>
  277. <div class="ui basic buttons">
  278. <div class="ui button">One</div>
  279. <div class="ui button">Two</div>
  280. <div class="ui button">Three</div>
  281. </div>
  282. </div>
  283. <div class="example">
  284. <h4 class="ui header">Sizes</h4>
  285. <p>Groups can have a shared size</p>
  286. <div class="large ui buttons">
  287. <div class="ui button">One</div>
  288. <div class="ui button">Two</div>
  289. <div class="ui button">Three</div>
  290. </div>
  291. </div>
  292. </div>