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.

469 lines
14 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
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">Animated</h4>
  29. <p>A button can animate to show hidden content</p>
  30. <div class="ui ignored message">The button will be automatically sized according to the visible content size. Make sure there is enough room for the hidden content to show</div>
  31. <div class="ui animated button">
  32. <div class="visible content">Next</div>
  33. <div class="hidden content">
  34. <i class="right arrow icon"></i>
  35. </div>
  36. </div>
  37. <div class="ui vertical animated button">
  38. <div class="hidden content">Shop</div>
  39. <div class="visible content">
  40. <i class="cart icon"></i>
  41. </div>
  42. </div>
  43. <div class="ui animated fade button">
  44. <div class="visible content">Sign-up for a Pro account</div>
  45. <div class="hidden content">
  46. $12.99 a month
  47. </div>
  48. </div>
  49. </div>
  50. <div class="example">
  51. <h4 class="ui header">Icon</h4>
  52. <p>A button can have only an icon</p>
  53. <div class="ui icon button">
  54. <i class="cloud icon"></i>
  55. </div>
  56. </div>
  57. <div class="example">
  58. <h4 class="ui header">Labeled Icon</h4>
  59. <p>A button can have an icon and a label</p>
  60. <div class="ui labeled icon button">
  61. <i class="pause icon"></i>
  62. Pause
  63. </div>
  64. <div class="ui right labeled icon button">
  65. <i class="right arrow icon"></i>
  66. Next
  67. </div>
  68. </div>
  69. <h2 class="ui dividing header">Groups</h2>
  70. <div class="example">
  71. <h4 class="ui header">Buttons</h4>
  72. <p>Buttons can exist together as a group</p>
  73. <div class="ui buttons">
  74. <div class="ui button">One</div>
  75. <div class="ui button">Two</div>
  76. <div class="ui button">Three</div>
  77. </div>
  78. </div>
  79. <div class="example">
  80. <h4 class="ui header">Icons</h4>
  81. <p>Button groups can show groups of icons</p>
  82. <div class="ui icon buttons">
  83. <div class="ui button"><i class="align left icon"></i></div>
  84. <div class="ui button"><i class="align center icon"></i></div>
  85. <div class="ui button"><i class="align right icon"></i></div>
  86. <div class="ui button"><i class="align justify icon"></i></div>
  87. </div>
  88. <div class="ui icon buttons">
  89. <div class="ui button"><i class="bold icon"></i></div>
  90. <div class="ui button"><i class="underline icon"></i></div>
  91. <div class="ui button"><i class="text width icon"></i></div>
  92. </div>
  93. </div>
  94. <div class="example">
  95. <h4 class="ui header">Conditionals</h4>
  96. <p>Button groups can be separated by conditionals</p>
  97. <div class="ui buttons">
  98. <div class="ui button">Cancel</div>
  99. <div class="or"></div>
  100. <div class="ui positive button">Save</div>
  101. </div>
  102. </div>
  103. <h2 class="ui dividing header">States</h2>
  104. <div class="example">
  105. <h4 class="ui header">Hover</h4>
  106. <p>A button can change to show a user has hovered their mouse</p>
  107. <div class="ui hover button">
  108. Follow
  109. </div>
  110. </div>
  111. <div class="example">
  112. <h4 class="ui header">Down</h4>
  113. <p>A button can change when pressed using touch or mouse events</p>
  114. <div class="ui down button">
  115. <i class="user icon"></i>
  116. Follow
  117. </div>
  118. </div>
  119. <div class="example">
  120. <h4 class="ui header">Active</h4>
  121. <p>A button can show it is currently the active user selection</p>
  122. <div class="ui active button">
  123. <i class="user icon"></i>
  124. Follow
  125. </div>
  126. </div>
  127. <div class="example">
  128. <h4 class="ui header">Disabled</h4>
  129. <p>A button can show it is currently unable to be interacted with</p>
  130. <div class="ui disabled button">
  131. <i class="user icon"></i>
  132. Followed
  133. </div>
  134. </div>
  135. <div class="example">
  136. <h4 class="ui header">Loading</h4>
  137. <p>A button can show a loading indicator</p>
  138. <div class="ui loading button">Loading Button</div>
  139. </div>
  140. <h2 class="ui dividing header">Variations</h2>
  141. <div class="example">
  142. <h4 class="ui header">Social</h4>
  143. <p>A button can be formatted to link to a social website</p>
  144. <div class="ui facebook button">
  145. <i class="facebook icon"></i>
  146. Facebook
  147. </div>
  148. <div class="ui twitter button">
  149. <i class="twitter icon"></i>
  150. Twitter
  151. </div>
  152. <div class="ui google plus button">
  153. <i class="google plus icon"></i>
  154. Google Plus
  155. </div>
  156. <div class="ui vk button">
  157. <i class="vk icon"></i>
  158. VK
  159. </div>
  160. <br><br>
  161. <div class="ui linkedin button">
  162. <i class="linkedin icon"></i>
  163. LinkedIn
  164. </div>
  165. <div class="ui instagram button">
  166. <i class="instagram icon"></i>
  167. Instagram
  168. </div>
  169. <div class="ui youtube button">
  170. <i class="youtube icon"></i>
  171. YouTube
  172. </div>
  173. </div>
  174. <div class="example">
  175. <h4 class="ui header">Sizes</h4>
  176. <p>A button can have different sizes:</p>
  177. <div class="mini ui button">
  178. Mini
  179. </div>
  180. <div class="tiny ui button">
  181. Tiny
  182. </div>
  183. <div class="small ui button">
  184. Small
  185. </div>
  186. <div class="medium ui button">
  187. Medium
  188. </div>
  189. <div class="large ui button">
  190. Large
  191. </div>
  192. <div class="big ui button">
  193. Big
  194. </div>
  195. <div class="huge ui button">
  196. Huge
  197. </div>
  198. <div class="massive ui button">
  199. Massive
  200. </div>
  201. </div>
  202. <div class="example">
  203. <h4 class="ui header">Ordinality</h4>
  204. <p>A button can be formatted to show different levels of emphasis</p>
  205. <div class="ui primary button">
  206. Add to Cart
  207. </div>
  208. <div class="ui secondary button">
  209. Save
  210. </div>
  211. </div>
  212. <div class="example">
  213. <h4 class="ui header">Basic</h4>
  214. <p>A basic button removes all unnecessary formatting</p>
  215. <div class="ui basic button">
  216. <i class="icon user"></i>
  217. Add Friend
  218. </div>
  219. </div>
  220. <div class="another example">
  221. <div class="ui inverted segment">
  222. <div class="ui inverted basic button">
  223. <i class="icon globe"></i>
  224. Change Language
  225. </div>
  226. </div>
  227. </div>
  228. <div class="example">
  229. <h4 class="ui header">Colors</h4>
  230. <p>A button can have different colors:</p>
  231. <a class="ui black button">Black Button</a>
  232. <a class="ui green button">Green BUtton</a>
  233. <a class="ui red button">Red Button</a>
  234. <a class="ui blue button">Blue Button</a>
  235. </div>
  236. <div class="another example">
  237. <a class="ui purple button">Purple Button</a>
  238. <a class="ui teal button">Teal Button</a>
  239. <a class="ui orange button">Orange Button</a>
  240. </div>
  241. <div class="example">
  242. <h4 class="ui header">Toggle</h4>
  243. <p>A button can be formatted to toggle on and off</p>
  244. <div class="ui toggle button">
  245. Vote
  246. </div>
  247. </div>
  248. <div class="example">
  249. <h4 class="ui header">Feedback</h4>
  250. <p>A button can be positive or negative:</p>
  251. <div class="positive ui button">Positive Button</div>
  252. <div class="negative ui button">Negative Button</div>
  253. </div>
  254. <div class="example">
  255. <h4 class="ui header">Fluid</h4>
  256. <p>A button can fit parent container:</p>
  257. <div class="fluid ui button">Fits container</div>
  258. </div>
  259. <div class="example">
  260. <h4 class="ui header">Circular</h4>
  261. <p>A button can be circular:</p>
  262. <div class="circular ui button">Rounded</div>
  263. <div class="circular ui icon button">
  264. <i class="icon settings"></i></div>
  265. </div>
  266. <div class="example">
  267. <h4 class="ui header">Vertically Attached</h4>
  268. <p>A button can be attached to the top or bottom of other content</p>
  269. <div class="ui top attached button">Top</div>
  270. <div class="ui attached segment"></div>
  271. <div class="bottom attached ui button">Bottom</div>
  272. </div>
  273. <div class="example">
  274. <h4 class="ui header">Horizontally Attached</h4>
  275. <p>A button can be attached to the left or right of other content</p>
  276. <div class="ui left attached button">Left</div>
  277. <div class="right attached ui button">Right</div>
  278. </div>
  279. <h3 class="ui dividing header">Group Variations</h3>
  280. <div class="example">
  281. <h4 class="ui header">Vertical</h4>
  282. <p>Groups can be formatted to appear vertically</p>
  283. <div class="ui vertical buttons">
  284. <div class="ui button">Top</div>
  285. <div class="ui button">Middle</div>
  286. <div class="ui button">Bottom</div>
  287. </div>
  288. </div>
  289. <div class="example">
  290. <h4 class="ui header">Icon</h4>
  291. <p>Groups can be formatted as icons</p>
  292. <div class="ui icon buttons">
  293. <div class="ui button">
  294. <i class="pause icon"></i>
  295. </div>
  296. <div class="ui button">
  297. <i class="play icon"></i>
  298. </div>
  299. <div class="ui button">
  300. <i class="shuffle icon"></i>
  301. </div>
  302. </div>
  303. </div>
  304. <div class="example">
  305. <h4 class="ui header">Labeled Icon</h4>
  306. <p>Groups can be formatted as labeled icons</p>
  307. <div class="ui vertical labeled icon buttons">
  308. <div class="ui button">
  309. <i class="pause icon"></i>
  310. Pause
  311. </div>
  312. <div class="ui button">
  313. <i class="play icon"></i>
  314. Play
  315. </div>
  316. <div class="ui button">
  317. <i class="shuffle icon"></i>
  318. Shuffle
  319. </div>
  320. </div>
  321. </div>
  322. <div class="example">
  323. <h4 class="ui header">Fluid</h4>
  324. <p>Groups can be divided evenly to fit parent</p>
  325. <div class="ui message">Evenly divided elements can either use the number or the word, i.e. 2 or "two"</div>
  326. <div class="3 fluid ui buttons">
  327. <div class="ui button">One</div>
  328. <div class="ui button">Two</div>
  329. <div class="ui button">Three</div>
  330. </div>
  331. <div class="ui ignored divider"></div>
  332. <div class="five fluid ui buttons">
  333. <div class="ui button">One</div>
  334. <div class="ui button">Two</div>
  335. <div class="ui button">Three</div>
  336. <div class="ui button">Four</div>
  337. <div class="ui button">Five</div>
  338. </div>
  339. <div class="ui ignored divider"></div>
  340. <div class="12 fluid ui icon buttons">
  341. <div class="ui button"><i class="tag icon"></i></div>
  342. <div class="ui button"><i class="tags icon"></i></div>
  343. <div class="ui button"><i class="tasks icon"></i></div>
  344. <div class="ui button"><i class="terminal icon"></i></div>
  345. <div class="ui button"><i class="text file icon"></i></div>
  346. <div class="ui button"><i class="text file outline icon"></i></div>
  347. <div class="ui button"><i class="time icon"></i></div>
  348. <div class="ui button"><i class="trash icon"></i></div>
  349. <div class="ui button"><i class="url icon"></i></div>
  350. <div class="ui button"><i class="user icon"></i></div>
  351. <div class="ui button"><i class="users icon"></i></div>
  352. <div class="ui button"><i class="video icon"></i></div>
  353. </div>
  354. </div>
  355. <div class="example">
  356. <h4 class="ui header">Colors</h4>
  357. <p>Groups can have a shared color</p>
  358. <div class="blue ui buttons">
  359. <div class="ui button">One</div>
  360. <div class="ui button">Two</div>
  361. <div class="ui button">Three</div>
  362. </div>
  363. </div>
  364. <div class="example">
  365. <h4 class="ui header">Basic</h4>
  366. <p>A button group can be formatted to remove extra formatting</p>
  367. <div class="ui basic buttons">
  368. <div class="ui button">One</div>
  369. <div class="ui button">Two</div>
  370. <div class="ui button">Three</div>
  371. </div>
  372. </div>
  373. <div class="example">
  374. <h4 class="ui header">Sizes</h4>
  375. <p>Groups can have a shared size</p>
  376. <div class="huge ui buttons">
  377. <div class="ui button">One</div>
  378. <div class="ui button">Two</div>
  379. <div class="ui button">Three</div>
  380. </div>
  381. <div class="large ui buttons">
  382. <div class="ui button">One</div>
  383. <div class="ui button">Two</div>
  384. <div class="ui button">Three</div>
  385. </div>
  386. </div>
  387. <div class="another example">
  388. <div class="small icon ui buttons">
  389. <div class="ui button"><i class="align left icon"></i></div>
  390. <div class="ui button"><i class="align center icon"></i></div>
  391. <div class="ui button"><i class="align right icon"></i></div>
  392. <div class="ui button"><i class="align justify icon"></i></div>
  393. </div>
  394. <div class="tiny icon ui buttons">
  395. <div class="ui button"><i class="align left icon"></i></div>
  396. <div class="ui button"><i class="align center icon"></i></div>
  397. <div class="ui button"><i class="align right icon"></i></div>
  398. <div class="ui button"><i class="align justify icon"></i></div>
  399. </div>
  400. </div>
  401. <div class="another example">
  402. <div class="ui huge buttons">
  403. <div class="ui button">One</div>
  404. <div class="or"></div>
  405. <div class="ui button">Two</div>
  406. </div>
  407. <div class="ui large buttons">
  408. <div class="ui button">One</div>
  409. <div class="or"></div>
  410. <div class="ui button">Two</div>
  411. </div>
  412. </div>
  413. <div class="another example">
  414. <div class="ui small buttons">
  415. <div class="ui button">One</div>
  416. <div class="or"></div>
  417. <div class="ui button">Two</div>
  418. </div>
  419. <div class="ui tiny buttons">
  420. <div class="ui button">One</div>
  421. <div class="or"></div>
  422. <div class="ui button">Two</div>
  423. </div>
  424. </div>
  425. </div>