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.

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