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.

347 lines
9.0 KiB

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