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.

349 lines
9.1 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. </div>
  189. <div class="another example">
  190. <a class="ui purple button">Purple Button</a>
  191. <a class="ui teal button">Teal Button</a>
  192. <a class="ui orange button">Orange Button</a>
  193. </div>
  194. <div class="example">
  195. <h4 class="ui header">Toggle</h4>
  196. <p>A button can be formatted to toggle on and off</p>
  197. <div class="ui toggle button">
  198. Vote
  199. </div>
  200. </div>
  201. <div class="example">
  202. <h4 class="ui header">Feedback</h4>
  203. <p>A button can be positive or negative:</p>
  204. <div class="positive ui button">Positive Button</div>
  205. <div class="negative ui button">Negative Button</div>
  206. </div>
  207. <div class="example">
  208. <h4 class="ui header">Fluid</h4>
  209. <p>A button can fit parent container:</p>
  210. <div class="fluid ui button">Fits container</div>
  211. </div>
  212. <div class="example">
  213. <h4 class="ui header">Circular</h4>
  214. <p>A button can be circular:</p>
  215. <div class="circular ui button">Rounded</div>
  216. <div class="circular ui icon button">
  217. <i class="icon settings"></i></div>
  218. </div>
  219. <div class="example">
  220. <h4 class="ui header">Vertically Attached</h4>
  221. <p>A button can be attached to the top or bottom of other content</p>
  222. <div class="ui top attached button">Top</div>
  223. <div class="ui attached segment"></div>
  224. <div class="bottom attached ui button">Bottom</div>
  225. </div>
  226. <div class="example">
  227. <h4 class="ui header">Horizontally Attached</h4>
  228. <p>A button can be attached to the left or right of other content</p>
  229. <div class="ui left attached button">Left</div>
  230. <div class="right attached ui button">Right</div>
  231. </div>
  232. <h3 class="ui dividing header">Group Variations</h3>
  233. <div class="example">
  234. <h4 class="ui header">Vertical</h4>
  235. <p>Groups can be formatted to appear vertically</p>
  236. <div class="ui vertical buttons">
  237. <div class="ui button">Top</div>
  238. <div class="ui button">Middle</div>
  239. <div class="ui button">Bottom</div>
  240. </div>
  241. </div>
  242. <div class="example">
  243. <h4 class="ui header">Icon</h4>
  244. <p>Groups can be formatted as icons</p>
  245. <div class="ui icon buttons">
  246. <div class="ui button">
  247. <i class="pause icon"></i></div>
  248. <div class="ui button">
  249. <i class="play icon"></i></div>
  250. <div class="ui button">
  251. <i class="shuffle icon"></i></div>
  252. </div>
  253. </div>
  254. <div class="example">
  255. <h4 class="ui header">Labeled Icon</h4>
  256. <p>Groups can be formatted as labeled icons</p>
  257. <div class="ui vertical labeled icon buttons">
  258. <div class="ui button">
  259. <i class="pause icon"></i>
  260. Pause
  261. </div>
  262. <div class="ui button">
  263. <i class="play icon"></i>
  264. Play
  265. </div>
  266. <div class="ui button">
  267. <i class="shuffle icon"></i>
  268. Shuffle
  269. </div>
  270. </div>
  271. </div>
  272. <div class="example">
  273. <h4 class="ui header">Fluid</h4>
  274. <p>Groups can be divided evenly to fit parent</p>
  275. <div class="five fluid ui buttons">
  276. <div class="ui button">One</div>
  277. <div class="ui button">Two</div>
  278. <div class="ui button">Three</div>
  279. <div class="ui button">Four</div>
  280. <div class="ui button">Five</div>
  281. </div>
  282. </div>
  283. <div class="example">
  284. <h4 class="ui header">Colors</h4>
  285. <p>Groups can have a shared color</p>
  286. <div class="blue 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 class="example">
  293. <h4 class="ui header">Basic</h4>
  294. <p>A button group can be formatted to remove extra formatting</p>
  295. <div class="ui basic buttons">
  296. <div class="ui button">One</div>
  297. <div class="ui button">Two</div>
  298. <div class="ui button">Three</div>
  299. </div>
  300. </div>
  301. <div class="example">
  302. <h4 class="ui header">Sizes</h4>
  303. <p>Groups can have a shared size</p>
  304. <div class="large ui buttons">
  305. <div class="ui button">One</div>
  306. <div class="ui button">Two</div>
  307. <div class="ui button">Three</div>
  308. </div>
  309. </div>
  310. </div>