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.

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