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.

531 lines
16 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
11 years ago
11 years ago
  1. ---
  2. layout : 'default'
  3. css : 'button-page'
  4. element : 'button'
  5. elementType : 'element'
  6. title : 'Button'
  7. description : 'A button indicates a possible user action'
  8. type : 'UI Element'
  9. themes : ['Default', 'Classic', 'Basic', 'Raised', 'Chubby', 'Round', 'Amazon', 'GitHub']
  10. ---
  11. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/elements/button.less" />
  12. <script src="/javascript/button.js"></script>
  13. <%- @partial('header') %>
  14. <div class="main container">
  15. <h2 class="ui dividing header">Types</h2>
  16. <div class="follow example">
  17. <h4 class="ui header">Button</h4>
  18. <p>A standard button</p>
  19. <div class="ui button">
  20. Follow
  21. </div>
  22. </div>
  23. <div class="example">
  24. <h4 class="ui header">Ordinality</h4>
  25. <div class="ui info message">Setting your brand colors to primary and secondary color variables in <code>site.variables</code>, will allow you to use consistent color theming for UI elements</div>
  26. <p>A button can be formatted to show different levels of emphasis</p>
  27. <div class="ui primary button">
  28. <i class="shop icon"></i> Add to Cart
  29. </div>
  30. <div class="ui secondary button">
  31. <i class="save icon"></i> Save
  32. </div>
  33. </div>
  34. <div class="example">
  35. <h4 class="ui header">Animated</h4>
  36. <p>A button can animate to show hidden content</p>
  37. <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>
  38. <div class="ui animated button">
  39. <div class="visible content">Next</div>
  40. <div class="hidden content">
  41. <i class="right arrow icon"></i>
  42. </div>
  43. </div>
  44. <div class="ui vertical animated button">
  45. <div class="hidden content">Shop</div>
  46. <div class="visible content">
  47. <i class="shop icon"></i>
  48. </div>
  49. </div>
  50. <div class="ui animated fade button">
  51. <div class="visible content">Sign-up for a Pro account</div>
  52. <div class="hidden content">
  53. $12.99 a month
  54. </div>
  55. </div>
  56. </div>
  57. <div class="example">
  58. <h4 class="ui header">Icon</h4>
  59. <p>A button can have only an icon</p>
  60. <div class="ui icon button">
  61. <i class="cloud icon"></i>
  62. </div>
  63. </div>
  64. <div class="example">
  65. <h4 class="ui header">Labeled Icon</h4>
  66. <p>A button can have an icon and a label</p>
  67. <div class="ui labeled icon button">
  68. <i class="pause icon"></i>
  69. Pause
  70. </div>
  71. <div class="ui right labeled icon button">
  72. <i class="right arrow icon"></i>
  73. Next
  74. </div>
  75. </div>
  76. <div class="example">
  77. <h4 class="ui header">Basic</h4>
  78. <p>A basic button is less pronounced</p>
  79. <div class="ui basic button">
  80. <i class="icon user"></i>
  81. Add Friend
  82. </div>
  83. </div>
  84. <div class="another spaced example">
  85. <div class="ui black basic button">Black</div>
  86. <div class="ui yellow basic button">Yellow</div>
  87. <div class="ui green basic button">Green</div>
  88. <div class="ui blue basic button">Blue</div>
  89. <div class="ui orange basic button">Orange</div>
  90. <div class="ui purple basic button">Purple</div>
  91. <div class="ui pink basic button">Pink</div>
  92. <div class="ui red basic button">Red</div>
  93. <div class="ui teal basic button">Teal</div>
  94. </div>
  95. <div class="spaced example">
  96. <h4 class="ui header">Inverted</h4>
  97. <p>A button can be formatted to appear on dark backgrounds</p>
  98. <div class="ui inverted segment">
  99. <div class="ui inverted button">Standard</div>
  100. <div class="ui inverted black button">Black</div>
  101. <div class="ui inverted yellow button">Yellow</div>
  102. <div class="ui inverted green button">Green</div>
  103. <div class="ui inverted blue button">Blue</div>
  104. <div class="ui inverted orange button">Orange</div>
  105. <div class="ui inverted purple button">Purple</div>
  106. <div class="ui inverted pink button">Pink</div>
  107. <div class="ui inverted red button">Red</div>
  108. <div class="ui inverted teal button">Teal</div>
  109. </div>
  110. </div>
  111. <div class="another spaced example">
  112. <div class="ui inverted segment">
  113. <div class="ui inverted basic button">Basic</div>
  114. <div class="ui inverted black basic button">Basic Black</div>
  115. <div class="ui inverted yellow basic button">Basic Yellow</div>
  116. <div class="ui inverted green basic button">Basic Green</div>
  117. <div class="ui inverted blue basic button">Basic Blue</div>
  118. <div class="ui inverted orange basic button">Basic Orange</div>
  119. <div class="ui inverted purple basic button">Basic Purple</div>
  120. <div class="ui inverted pink basic button">Basic Pink</div>
  121. <div class="ui inverted red basic button">Basic Red</div>
  122. <div class="ui inverted teal basic button">Basic Teal</div>
  123. </div>
  124. </div>
  125. <h2 class="ui dividing header">Groups</h2>
  126. <div class="example">
  127. <h4 class="ui header">Buttons</h4>
  128. <p>Buttons can exist together as a group</p>
  129. <div class="ui buttons">
  130. <div class="ui button">One</div>
  131. <div class="ui button">Two</div>
  132. <div class="ui button">Three</div>
  133. </div>
  134. </div>
  135. <div class="example">
  136. <h4 class="ui header">Icons</h4>
  137. <p>Button groups can show groups of icons</p>
  138. <div class="ui icon buttons">
  139. <div class="ui button"><i class="align left icon"></i></div>
  140. <div class="ui button"><i class="align center icon"></i></div>
  141. <div class="ui button"><i class="align right icon"></i></div>
  142. <div class="ui button"><i class="align justify icon"></i></div>
  143. </div>
  144. <div class="ui icon buttons">
  145. <div class="ui button"><i class="bold icon"></i></div>
  146. <div class="ui button"><i class="underline icon"></i></div>
  147. <div class="ui button"><i class="text width icon"></i></div>
  148. </div>
  149. </div>
  150. <div class="example">
  151. <h4 class="ui header">Conditionals</h4>
  152. <p>Button groups can be separated by conditionals</p>
  153. <div class="ui buttons">
  154. <div class="ui button">Cancel</div>
  155. <div class="or"></div>
  156. <div class="ui positive button">Save</div>
  157. </div>
  158. </div>
  159. <h2 class="ui dividing header">States</h2>
  160. <div class="example">
  161. <h4 class="ui header">Hover</h4>
  162. <p>A button can change to show a user has hovered their mouse</p>
  163. <div class="ui button">
  164. Follow
  165. </div>
  166. </div>
  167. <div class="example">
  168. <h4 class="ui header">Down</h4>
  169. <p>A button can change when pressed using touch or mouse events</p>
  170. <div class="ui button">
  171. <i class="user icon"></i>
  172. Follow
  173. </div>
  174. </div>
  175. <div class="example">
  176. <h4 class="ui header">Active</h4>
  177. <p>A button can show it is currently the active user selection</p>
  178. <div class="ui active button">
  179. <i class="user icon"></i>
  180. Follow
  181. </div>
  182. </div>
  183. <div class="example">
  184. <h4 class="ui header">Disabled</h4>
  185. <p>A button can show it is currently unable to be interacted with</p>
  186. <div class="ui disabled button">
  187. <i class="user icon"></i>
  188. Followed
  189. </div>
  190. </div>
  191. <div class="example">
  192. <h4 class="ui header">Loading</h4>
  193. <p>A button can show a loading indicator</p>
  194. <div class="ui loading button">Loading Button</div>
  195. </div>
  196. <h2 class="ui dividing header">Variations</h2>
  197. <div class="spaced example">
  198. <h4 class="ui header">Social</h4>
  199. <p>A button can be formatted to link to a social website</p>
  200. <div class="ui facebook button">
  201. <i class="facebook icon"></i>
  202. Facebook
  203. </div>
  204. <div class="ui twitter button">
  205. <i class="twitter icon"></i>
  206. Twitter
  207. </div>
  208. <div class="ui google plus button">
  209. <i class="google plus icon"></i>
  210. Google Plus
  211. </div>
  212. <div class="ui vk button">
  213. <i class="vk icon"></i>
  214. VK
  215. </div>
  216. <div class="ui linkedin button">
  217. <i class="linkedin icon"></i>
  218. LinkedIn
  219. </div>
  220. <div class="ui instagram button">
  221. <i class="instagram icon"></i>
  222. Instagram
  223. </div>
  224. <div class="ui youtube button">
  225. <i class="youtube icon"></i>
  226. YouTube
  227. </div>
  228. </div>
  229. <div class="spaced example">
  230. <h4 class="ui header">Sizes</h4>
  231. <p>A button can have different sizes</p>
  232. <div class="mini ui button">
  233. Mini
  234. </div>
  235. <div class="tiny ui button">
  236. Tiny
  237. </div>
  238. <div class="small ui button">
  239. Small
  240. </div>
  241. <div class="medium ui button">
  242. Medium
  243. </div>
  244. <div class="large ui button">
  245. Large
  246. </div>
  247. <div class="big ui button">
  248. Big
  249. </div>
  250. <div class="huge ui button">
  251. Huge
  252. </div>
  253. <div class="massive ui button">
  254. Massive
  255. </div>
  256. </div>
  257. <div class="spaced example">
  258. <h4 class="ui header">Colors</h4>
  259. <p>A button can have different colors</p>
  260. <div class="ui black button">Black</div>
  261. <div class="ui yellow button">Yellow</div>
  262. <div class="ui green button">Green</div>
  263. <div class="ui blue button">Blue</div>
  264. <div class="ui orange button">Orange</div>
  265. <div class="ui purple button">Purple</div>
  266. <div class="ui red button">Red</div>
  267. <div class="ui pink button">Pink</div>
  268. <div class="ui teal button">Teal</div>
  269. </div>
  270. <div class="example">
  271. <h4 class="ui header">Compact</h4>
  272. <p>A button can reduce its padding to fit into tighter spaces</p>
  273. <div class="compact ui button">
  274. Hold
  275. </div>
  276. <div class="ui compact icon button">
  277. <i class="pause icon"></i>
  278. </div>
  279. <div class="ui compact labeled icon button">
  280. <i class="pause icon"></i>
  281. Pause
  282. </div>
  283. </div>
  284. <div class="example">
  285. <h4 class="ui header">Toggle</h4>
  286. <p>A button can be formatted to toggle on and off</p>
  287. <div class="ui toggle button">
  288. Vote
  289. </div>
  290. </div>
  291. <div class="example">
  292. <h4 class="ui header">Feedback</h4>
  293. <p>A button can be positive or negative:</p>
  294. <div class="positive ui button">Positive Button</div>
  295. <div class="negative ui button">Negative Button</div>
  296. </div>
  297. <div class="example">
  298. <h4 class="ui header">Fluid</h4>
  299. <p>A button can fit parent container:</p>
  300. <div class="fluid ui button">Fits container</div>
  301. </div>
  302. <div class="example">
  303. <h4 class="ui header">Circular</h4>
  304. <p>A button can be circular:</p>
  305. <div class="circular ui icon button">
  306. <i class="icon settings"></i>
  307. </div>
  308. </div>
  309. <div class="example">
  310. <h4 class="ui header">Vertically Attached</h4>
  311. <p>A button can be attached to the top or bottom of other content</p>
  312. <div class="ui top attached button">Top</div>
  313. <div class="ui attached segment"></div>
  314. <div class="ui bottom attached button">Bottom</div>
  315. </div>
  316. <div class="example">
  317. <h4 class="ui header">Horizontally Attached</h4>
  318. <p>A button can be attached to the left or right of other content</p>
  319. <div class="ui left attached button">Left</div>
  320. <div class="right attached ui button">Right</div>
  321. </div>
  322. <h2 class="ui dividing header">Groups</h2>
  323. <div class="example">
  324. <h4 class="ui header">Vertical Group</h4>
  325. <p>Groups can be formatted to appear vertically</p>
  326. <div class="ui vertical buttons">
  327. <div class="ui button">Feed</div>
  328. <div class="ui button">Messages</div>
  329. <div class="ui button">Events</div>
  330. <div class="ui button">Photos</div>
  331. </div>
  332. </div>
  333. <div class="example">
  334. <h4 class="ui header">Icon Group</h4>
  335. <p>Groups can be formatted as icons</p>
  336. <div class="ui icon buttons">
  337. <div class="ui button">
  338. <i class="play icon"></i>
  339. </div>
  340. <div class="ui button">
  341. <i class="pause icon"></i>
  342. </div>
  343. <div class="ui button">
  344. <i class="shuffle icon"></i>
  345. </div>
  346. </div>
  347. </div>
  348. <div class="example">
  349. <h4 class="ui header">Labeled Icon Group</h4>
  350. <p>Groups can be formatted as labeled icons</p>
  351. <div class="ui vertical labeled icon buttons">
  352. <div class="ui button">
  353. <i class="pause icon"></i>
  354. Pause
  355. </div>
  356. <div class="ui button">
  357. <i class="play icon"></i>
  358. Play
  359. </div>
  360. <div class="ui button">
  361. <i class="shuffle icon"></i>
  362. Shuffle
  363. </div>
  364. </div>
  365. </div>
  366. <div class="example">
  367. <h4 class="ui header">Evenly Divided</h4>
  368. <p>Groups can be divided evenly to fit parent</p>
  369. <div class="ui ignored info message">Evenly divided elements can either use the number or the word, i.e. 2 or "two"</div>
  370. <div class="3 fluid ui buttons">
  371. <div class="ui button">Overview</div>
  372. <div class="ui button">Specs</div>
  373. <div class="ui button">Reviews</div>
  374. </div>
  375. <div class="ui ignored divider"></div>
  376. <div class="five fluid ui buttons">
  377. <div class="ui button">Overview</div>
  378. <div class="ui button">Specs</div>
  379. <div class="ui button">Warranty</div>
  380. <div class="ui button">Reviews</div>
  381. <div class="ui button">Support</div>
  382. </div>
  383. <div class="ui ignored divider"></div>
  384. <div class="9 fluid ui icon buttons">
  385. <div class="ui button"><i class="backward icon"></i></div>
  386. <div class="ui button"><i class="fast backward icon"></i></div>
  387. <div class="ui button"><i class="step backward icon"></i></div>
  388. <div class="ui button"><i class="play icon"></i></div>
  389. <div class="ui button"><i class="stop icon"></i></div>
  390. <div class="ui button"><i class="step forward icon"></i></div>
  391. <div class="ui button"><i class="fast forward icon"></i></div>
  392. <div class="ui button"><i class="forward icon"></i></div>
  393. <div class="ui button"><i class="mute icon"></i></div>
  394. </div>
  395. </div>
  396. <div class="example">
  397. <h4 class="ui header">Colored Group</h4>
  398. <p>Groups can have a shared color</p>
  399. <div class="blue ui buttons">
  400. <div class="ui button">One</div>
  401. <div class="ui button">Two</div>
  402. <div class="ui button">Three</div>
  403. </div>
  404. </div>
  405. <div class="example">
  406. <h4 class="ui header">Basic Group</h4>
  407. <p>A button group can be formatted to remove extra formatting</p>
  408. <div class="ui basic buttons">
  409. <div class="ui button">One</div>
  410. <div class="ui button">Two</div>
  411. <div class="ui button">Three</div>
  412. </div>
  413. </div>
  414. <div class="example">
  415. <h4 class="ui header">Group Sizes</h4>
  416. <p>Groups can have a shared size</p>
  417. <div class="huge ui buttons">
  418. <div class="ui button">One</div>
  419. <div class="ui button">Two</div>
  420. <div class="ui button">Three</div>
  421. </div>
  422. <div class="large ui buttons">
  423. <div class="ui button">One</div>
  424. <div class="ui button">Two</div>
  425. <div class="ui button">Three</div>
  426. </div>
  427. </div>
  428. <div class="another example">
  429. <div class="ui inverted segment">
  430. <div class="ui inverted buttons">
  431. <div class="ui red inverted button">One</div>
  432. <div class="ui yellow inverted button">Two</div>
  433. <div class="ui pink inverted button">Three</div>
  434. </div>
  435. <div class="ui inverted icon buttons">
  436. <div class="ui red basic inverted button"><i class="align left icon"></i></div>
  437. <div class="ui yellow basic inverted button"><i class="align center icon"></i></div>
  438. <div class="ui pink basic inverted button"><i class="align right icon"></i></div>
  439. <div class="ui purple basic inverted button"><i class="align justify icon"></i></div>
  440. </div>
  441. </div>
  442. </div>
  443. <div class="another example">
  444. <div class="small icon ui buttons">
  445. <div class="ui button"><i class="file icon"></i></div>
  446. <div class="ui button"><i class="save icon"></i></div>
  447. <div class="ui button"><i class="upload icon"></i></div>
  448. <div class="ui button"><i class="download icon"></i></div>
  449. </div>
  450. <div class="tiny icon ui buttons">
  451. <div class="ui button"><i class="file icon"></i></div>
  452. <div class="ui button"><i class="save icon"></i></div>
  453. <div class="ui button"><i class="upload icon"></i></div>
  454. <div class="ui button"><i class="download icon"></i></div>
  455. </div>
  456. </div>
  457. <div class="another example">
  458. <div class="ui huge buttons">
  459. <div class="ui button">One</div>
  460. <div class="or"></div>
  461. <div class="ui button">Two</div>
  462. </div>
  463. <div class="ui large buttons">
  464. <div class="ui button">One</div>
  465. <div class="or"></div>
  466. <div class="ui button">Two</div>
  467. </div>
  468. </div>
  469. <div class="another example">
  470. <div class="ui small buttons">
  471. <div class="ui button">One</div>
  472. <div class="or"></div>
  473. <div class="ui button">Two</div>
  474. </div>
  475. <div class="ui tiny buttons">
  476. <div class="ui button">One</div>
  477. <div class="or"></div>
  478. <div class="ui button">Two</div>
  479. </div>
  480. </div>
  481. </div>