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.

1011 lines
27 KiB

10 years ago
10 years ago
10 years ago
  1. ---
  2. layout : 'default'
  3. css : 'menu'
  4. title : 'Menu'
  5. description : 'A menu is a collection of elements showing related user actions'
  6. type : 'UI Collection'
  7. element : 'menu'
  8. elementType : 'collection'
  9. themes : ['default', 'github']
  10. ---
  11. <link rel="stylesheet/less" type="text/css" href="/build/less/collections/menu.less" />
  12. <script src="/javascript/menu.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">Elements</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="example">
  25. <h4 class="ui header">Menu</h4>
  26. <p>A menu</p>
  27. <div class="ui menu">
  28. <a class="active item">
  29. <i class="home icon"></i> Home
  30. </a>
  31. <a class="item">
  32. <i class="mail icon"></i> Messages
  33. </a>
  34. <div class="right menu">
  35. <div class="item">
  36. <div class="ui icon input">
  37. <input type="text" placeholder="Search...">
  38. <i class="search link icon"></i>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="example">
  45. <h4 class="ui header">Vertical Menu</h4>
  46. <p>A vertical menu displays elements vertically..</p>
  47. <div class="ui ignore warning message"><i class="icon heart"></i> A vertical menu's width defaults to an arbitrary size. To have it fit your content more precisely use the fluid variation in conjunction with <a href="grid.html">ui grid</a>.</div>
  48. <div class="ui vertical menu">
  49. <a class="active teal item">
  50. Inbox
  51. <div class="ui teal label">1</div>
  52. </a>
  53. <a class="item">
  54. Spam
  55. <div class="ui label">51</div>
  56. </a>
  57. <a class="item">
  58. Updates
  59. <div class="ui label">1</div>
  60. </a>
  61. <div class="item">
  62. <div class="ui icon input">
  63. <input type="text" placeholder="Search mail...">
  64. <i class="search icon"></i>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="example">
  70. <h4 class="ui header">Pagination</h4>
  71. <p>A pagination menu is specially formatted to present links to pages of content</p>
  72. <div class="ui pagination menu">
  73. <a class="icon item">
  74. <i class="left arrow icon"></i>
  75. </a>
  76. <a class="active item">
  77. 1
  78. </a>
  79. <div class="disabled item">
  80. ...
  81. </div>
  82. <a class="item">
  83. 10
  84. </a>
  85. <a class="item">
  86. 11
  87. </a>
  88. <a class="item">
  89. 12
  90. </a>
  91. <a class="icon item">
  92. <i class="right arrow icon"></i>
  93. </a>
  94. </div>
  95. </div>
  96. <div class="example">
  97. <h4 class="ui header">Tabular</h4>
  98. <p>A message can be formatted to show tabs of information</p>
  99. <div class="ui tabular menu">
  100. <a class="active item">
  101. Bio
  102. </a>
  103. <a class="item">
  104. Pics
  105. </a>
  106. </div>
  107. </div>
  108. <div class="example">
  109. <h4 class="ui header">Tiered Menu</h4>
  110. <p>A tiered menu can show the sub-sections available as part of an activated section.</p>
  111. <div class="ui tiered menu">
  112. <div class="menu">
  113. <a class="active item">
  114. <i class="users icon"></i>
  115. Friends
  116. </a>
  117. <a class="item">
  118. <i class="grid layout icon"></i> Browse
  119. </a>
  120. <a class="item">
  121. <i class="mail icon"></i> Messages
  122. </a>
  123. <div class="right menu">
  124. <div class="item">
  125. <div class="ui icon input">
  126. <input type="text" placeholder="Search...">
  127. <i class="search icon"></i>
  128. </div>
  129. </div>
  130. <div class="ui dropdown item">
  131. More <i class="icon dropdown"></i>
  132. <div class="menu">
  133. <a class="item"><i class="edit icon"></i> Edit Profile</a>
  134. <a class="item"><i class="globe icon"></i> Choose Language</a>
  135. <a class="item"><i class="settings icon"></i> Account Settings</a>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="ui sub menu">
  141. <a class="active item">Search</a>
  142. <a class="item">Add</a>
  143. <a class="item">Remove</a>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="example">
  148. <h4 class="ui header">Vertical Menu w/ Sub Menus</h4>
  149. <p>A tiered menu can show the sub-sections available as part of an activated section.</p>
  150. <div class="ui vertical menu">
  151. <div class="item">
  152. <div class="ui input"><input type="text" placeholder="Search..."></div>
  153. </div>
  154. <div class="item">
  155. <i class="home icon"></i> Home
  156. <div class="menu">
  157. <a class="active item">Search</a>
  158. <a class="item">Add</a>
  159. <a class="item">Remove</a>
  160. </div>
  161. </div>
  162. <a class="item">
  163. <i class="grid layout icon"></i> Browse
  164. </a>
  165. <a class="item">
  166. <i class="mail icon"></i> Messages
  167. </a>
  168. <div class="ui dropdown item">
  169. More <i class="dropdown icon"></i>
  170. <div class="menu">
  171. <a class="item"><i class="edit icon"></i> Edit Profile</a>
  172. <a class="item"><i class="globe icon"></i> Choose Language</a>
  173. <a class="item"><i class="settings icon"></i> Account Settings</a>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. <div class="example">
  179. <h4 class="ui header">Secondary Menu</h4>
  180. <p>A secondary menu allows for a section of content on a page to be activated</p>
  181. <div class="ui secondary menu">
  182. <a class="active item">
  183. <i class="home icon"></i> Home
  184. </a>
  185. <a class="item">
  186. <i class="mail icon"></i> Messages
  187. </a>
  188. <a class="item">
  189. <i class="user icon"></i> Friends
  190. </a>
  191. <div class="right menu">
  192. <div class="item">
  193. <div class="ui icon input">
  194. <input type="text" placeholder="Search...">
  195. <i class="search link icon"></i>
  196. </div>
  197. </div>
  198. <a class="ui item">
  199. Logout
  200. </a>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="another example">
  205. <div class="ui secondary vertical menu">
  206. <a class="active item">
  207. <i class="users icon"></i>
  208. Friends
  209. </a>
  210. <a class="item">
  211. <i class="mail icon"></i> Messages
  212. </a>
  213. <a class="item">
  214. <i class="user icon"></i> Friends
  215. </a>
  216. <div class="ui dropdown item">
  217. More <i class="dropdown icon"></i>
  218. <div class="menu">
  219. <a class="item"><i class="edit icon"></i> Edit Profile</a>
  220. <a class="item"><i class="globe icon"></i> Choose Language</a>
  221. <a class="item"><i class="settings icon"></i> Account Settings</a>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="example">
  227. <h4 class="ui header">Pointing</h4>
  228. <p>A menu can point to content to show relationship</p>
  229. <div class="ui pointing menu">
  230. <a class="active item">
  231. <i class="home icon"></i> Home
  232. </a>
  233. <a class="item">
  234. <i class="mail icon"></i> Messages
  235. </a>
  236. <a class="item">
  237. <i class="user icon"></i> Friends
  238. </a>
  239. <div class="right menu">
  240. <div class="item">
  241. <div class="ui icon input">
  242. <input type="text" placeholder="Search...">
  243. <i class="search link icon"></i>
  244. </div>
  245. </div>
  246. <div class="ui dropdown item">
  247. Language <i class="dropdown icon"></i>
  248. <div class="menu">
  249. <a class="item">English</a>
  250. <a class="item">Russian</a>
  251. <a class="item">Spanish</a>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. <div class="another example">
  258. <div class="ui vertical pointing menu">
  259. <a class="active item">
  260. <i class="home icon"></i> Home
  261. </a>
  262. <a class="item">
  263. <i class="mail icon"></i> Messages
  264. </a>
  265. <a class="item">
  266. <i class="user icon"></i> Friends
  267. </a>
  268. </div>
  269. </div>
  270. <div class="another example">
  271. <div class="ui secondary pointing menu">
  272. <a class="active item">
  273. <i class="home icon"></i> Home
  274. </a>
  275. <a class="item">
  276. <i class="mail icon"></i> Messages
  277. </a>
  278. <a class="item">
  279. <i class="user icon"></i> Friends
  280. </a>
  281. <div class="right menu">
  282. <div class="item">
  283. <div class="ui icon input">
  284. <input type="text" placeholder="Search...">
  285. <i class="search link icon"></i>
  286. </div>
  287. </div>
  288. <a class="ui item">
  289. Logout
  290. </a>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="another example">
  295. <div class="ui secondary vertical pointing menu">
  296. <a class="active item">
  297. <i class="home icon"></i> Home
  298. </a>
  299. <a class="item">
  300. <i class="mail icon"></i> Messages
  301. </a>
  302. <a class="item">
  303. <i class="user icon"></i> Friends
  304. </a>
  305. </div>
  306. </div>
  307. <div class="example">
  308. <h4 class="ui header">Text</h4>
  309. <p>A menu can display simple text links</p>
  310. <div class="ui text menu">
  311. <div class="header item">Sort By</div>
  312. <a class="active item">
  313. <i class="home icon"></i> Closest
  314. </a>
  315. <a class="item">
  316. <i class="mail icon"></i> Most Comments
  317. </a>
  318. <a class="item">
  319. <i class="user icon"></i> Most Popular
  320. </a>
  321. </div>
  322. </div>
  323. <div class="another example">
  324. <div class="ui vertical text menu">
  325. <div class="header item">Sort By</div>
  326. <a class="active item">
  327. <i class="home icon"></i> Closest
  328. </a>
  329. <a class="item">
  330. <i class="mail icon"></i> Most Comments
  331. </a>
  332. <a class="item">
  333. <i class="user icon"></i> Most Popular
  334. </a>
  335. </div>
  336. </div>
  337. <h2 class="ui dividing header">Elements</h2>
  338. <div class="example">
  339. <h4 class="ui header">Header Item</h4>
  340. <p>A menu may have a header to help label sections of a menu.</p>
  341. <div class="ui vertical menu">
  342. <div class="header item">
  343. <i class="user icon"></i>
  344. Communities
  345. </div>
  346. <div class="item">
  347. College
  348. <div class="menu">
  349. <a class="item">Baseball</a>
  350. <a class="item">Basketball</a>
  351. <a class="item">Golf</a>
  352. </div>
  353. </div>
  354. <a class="item">
  355. Dance
  356. </a>
  357. <a class="item">
  358. Aerobics
  359. </a>
  360. <div class="header item">
  361. <i class="globe icon"></i>
  362. Cities
  363. </div>
  364. <a class="item">
  365. New York
  366. </a>
  367. <a class="item">
  368. Montreal
  369. </a>
  370. <a class="item">
  371. Los Angeles
  372. </a>
  373. <a class="item">
  374. San Francisco
  375. </a>
  376. <div class="header item">
  377. <i class="icon calendar"></i>
  378. Months
  379. </div>
  380. <a class="item">
  381. August
  382. </a>
  383. <a class="item">
  384. June
  385. </a>
  386. </div>
  387. </div>
  388. <div class="example">
  389. <h4 class="ui header">Text Item</h4>
  390. <p>A menu may have a simple text item.</p>
  391. <div class="ui ignore info message">
  392. <p><i class="icon heart"></i> Single paragraphs are automatically formatted as text. You can also specify an item as textual by adding the classname <b>text</b></p>
  393. </div>
  394. <div class="ui vertical menu">
  395. <div class="header item">
  396. Promotions
  397. <span class="ui teal label">New</span>
  398. </div>
  399. <div class="text item">
  400. <a>Join now</a> and save $10 on a pro membership!
  401. </div>
  402. <div class="item">
  403. <p><a>Join tomorrow</a> and save $5 on pro.</p>
  404. </div>
  405. </div>
  406. </div>
  407. <div class="example">
  408. <h4 class="ui header">Input</h4>
  409. <p>A menu item can contain an <a href="/elements/input.html">input</a> inside of it</p>
  410. <div class="ui menu">
  411. <div class="right item">
  412. <div class="ui icon input">
  413. <input type="text" placeholder="Search...">
  414. <i class="search icon"></i>
  415. </div>
  416. </div>
  417. <div class="item">
  418. <div class="ui action input">
  419. <input type="text" placeholder="Navigate to...">
  420. <div class="ui button">Go</div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <div class="example">
  426. <h4 class="ui header">Button</h4>
  427. <p>A menu item can contain a <a href="/elements/button.html">button</a> inside of it</p>
  428. <div class="ui menu">
  429. <div class="item">
  430. <div class="ui primary button">Sign up</div>
  431. </div>
  432. <div class="item">
  433. <div class="ui button">Log-in</div>
  434. </div>
  435. </div>
  436. </div>
  437. <div class="example">
  438. <h4 class="ui header">Link Item</h4>
  439. <p>A menu may contain a link item, or an item formatted as if it is a link.</p>
  440. <div class="ui ignore info message">
  441. <p><i class="icon heart"></i> Items that are anchor tags will automatically be formatted as a link.</p>
  442. </div>
  443. <div class="ui vertical menu">
  444. <a href="http://www.google.com" class="item">
  445. Visit Google
  446. </a>
  447. <div class="link item">
  448. Javascript Link
  449. </div>
  450. </div>
  451. </div>
  452. <div class="example">
  453. <h4 class="ui header">Dropdown Item</h4>
  454. <p>An item may contain a nested menu in a dropdown.</p>
  455. <div class="ui ignore warning message">
  456. <p><i class="icon heart"></i>Dropdowns use <a href="/modules/dropdown.html">UI dropdown elements</a>. To have a dropdown open without javascript, use the simple variation</p>
  457. </div>
  458. <div class="ui vertical menu">
  459. <div class="ui dropdown item">
  460. Categories <i class="dropdown icon"></i>
  461. <div class="menu">
  462. <a class="item">Electronics</a>
  463. <a class="item">Automotive</a>
  464. <a class="item">Home</a>
  465. </div>
  466. </div>
  467. </div>
  468. </div>
  469. <div class="example">
  470. <h4 class="ui header">Menu</h4>
  471. <p>A menu may contain another menu group in the same level as menu items.</p>
  472. <div class="ui menu">
  473. <a class="item">Browse</a>
  474. <a class="item">Submit</a>
  475. <div class="right menu">
  476. <a class="item">Sign Up</a>
  477. <a class="item">Help</a>
  478. </div>
  479. </div>
  480. </div>
  481. <div class="example">
  482. <h4 class="ui header">Nested Menu</h4>
  483. <p>A menu item may contain another menu nested inside that acts as a grouped sub-menu.</p>
  484. <div class="ui vertical menu">
  485. <a class="item"><b>Friends</b></a>
  486. <div class="item">
  487. <a><b>Your Profile</b></a>
  488. <div class="menu">
  489. <a class="item">Inbox</a>
  490. <a class="item">Activity</a>
  491. <a class="item">Groups</a>
  492. </div>
  493. </div>
  494. </div>
  495. </div>
  496. <h2 class="ui dividing header">States</h2>
  497. <div class="example">
  498. <h4 class="ui header">Hover</h4>
  499. <p>A menu item can be hovered</p>
  500. <div class="ui ignore warning message"><i class="icon heart"></i> Menu items are only hoverable if they are links, defined with the variant "link", or are given the class name hover programmatically.</div>
  501. <div class="ui compact menu">
  502. <div class="hover item">
  503. Link
  504. </div>
  505. </div>
  506. </div>
  507. <div class="example">
  508. <h4 class="ui header">Down</h4>
  509. <p>A menu item can be pressed in</p>
  510. <div class="ui compact menu">
  511. <div class="down item">
  512. Link
  513. </div>
  514. </div>
  515. </div>
  516. <div class="example">
  517. <h4 class="ui header">Active</h4>
  518. <p>A menu item can be active</p>
  519. <div class="ui compact menu">
  520. <div class="active item">
  521. Link
  522. </div>
  523. </div>
  524. </div>
  525. <h2 class="ui dividing header">Variations</h2>
  526. <h3 class="ui header">Menu</h3>
  527. <div class="example">
  528. <h4 class="ui header">Inverted</h4>
  529. <p>A menu may have its colors inverted to show greater contrast</p>
  530. <div class="ui inverted menu">
  531. <a class="active item">
  532. <i class="home icon"></i> Home
  533. </a>
  534. <a class="item">
  535. <i class="mail icon"></i> Messages
  536. </a>
  537. <a class="item">
  538. <i class="user icon"></i> Friends
  539. </a>
  540. </div>
  541. </div>
  542. <div class="example">
  543. <h4 class="ui header">Colors</h4>
  544. <p>Additional colors can be specified.</p>
  545. <div class="ui menu">
  546. <a class="active green item">
  547. <i class="home icon"></i> Green
  548. </a>
  549. <a class="red item">
  550. <i class="mail icon"></i> Red
  551. </a>
  552. <a class="blue item">
  553. <i class="user icon"></i> Blue
  554. </a>
  555. <a class="orange item">
  556. <i class="home icon"></i> Orange
  557. </a>
  558. <a class="purple item">
  559. <i class="mail icon"></i> Purple
  560. </a>
  561. <a class="teal item">
  562. <i class="user icon"></i> Teal
  563. </a>
  564. </div>
  565. <br>
  566. <div class="ui red menu">
  567. <a class="active item">
  568. <i class="home icon"></i> Home
  569. </a>
  570. <a class="item">
  571. <i class="mail icon"></i> Messages
  572. </a>
  573. <a class="item">
  574. <i class="user icon"></i> Friends
  575. </a>
  576. </div>
  577. <br>
  578. <div class="ui blue menu">
  579. <a class="active item">
  580. <i class="home icon"></i> Home
  581. </a>
  582. <a class="item">
  583. <i class="mail icon"></i> Messages
  584. </a>
  585. <a class="item">
  586. <i class="user icon"></i> Friends
  587. </a>
  588. </div>
  589. <br>
  590. <div class="ui orange menu">
  591. <a class="active item">
  592. <i class="home icon"></i> Home
  593. </a>
  594. <a class="item">
  595. <i class="mail icon"></i> Messages
  596. </a>
  597. <a class="item">
  598. <i class="user icon"></i> Friends
  599. </a>
  600. </div>
  601. <br>
  602. <div class="ui purple menu">
  603. <a class="active item">
  604. <i class="home icon"></i> Home
  605. </a>
  606. <a class="item">
  607. <i class="mail icon"></i> Messages
  608. </a>
  609. <a class="item">
  610. <i class="user icon"></i> Friends
  611. </a>
  612. </div>
  613. <br>
  614. <div class="ui teal menu">
  615. <a class="active item">
  616. <i class="home icon"></i> Home
  617. </a>
  618. <a class="item">
  619. <i class="mail icon"></i> Messages
  620. </a>
  621. <a class="item">
  622. <i class="user icon"></i> Friends
  623. </a>
  624. </div>
  625. </div>
  626. <div class="another example">
  627. <p>These colors can also be inverted</p>
  628. <div class="ui green inverted menu">
  629. <a class="active item">
  630. <i class="home icon"></i> Home
  631. </a>
  632. <a class="item">
  633. <i class="mail icon"></i> Messages
  634. </a>
  635. <a class="item">
  636. <i class="user icon"></i> Friends
  637. </a>
  638. </div>
  639. <br>
  640. <div class="ui red inverted menu">
  641. <a class="active item">
  642. <i class="home icon"></i> Home
  643. </a>
  644. <a class="item">
  645. <i class="mail icon"></i> Messages
  646. </a>
  647. <a class="item">
  648. <i class="user icon"></i> Friends
  649. </a>
  650. </div>
  651. <br>
  652. <div class="ui blue inverted menu">
  653. <a class="active item">
  654. <i class="home icon"></i> Home
  655. </a>
  656. <a class="item">
  657. <i class="mail icon"></i> Messages
  658. </a>
  659. <a class="item">
  660. <i class="user icon"></i> Friends
  661. </a>
  662. </div>
  663. <br>
  664. <div class="ui orange inverted menu">
  665. <a class="active item">
  666. <i class="home icon"></i> Home
  667. </a>
  668. <a class="item">
  669. <i class="mail icon"></i> Messages
  670. </a>
  671. <a class="item">
  672. <i class="user icon"></i> Friends
  673. </a>
  674. </div>
  675. <br>
  676. <div class="ui purple inverted menu">
  677. <a class="active item">
  678. <i class="home icon"></i> Home
  679. </a>
  680. <a class="item">
  681. <i class="mail icon"></i> Messages
  682. </a>
  683. <a class="item">
  684. <i class="user icon"></i> Friends
  685. </a>
  686. </div>
  687. <br>
  688. <div class="ui teal inverted menu">
  689. <a class="active item">
  690. <i class="home icon"></i> Home
  691. </a>
  692. <a class="item">
  693. <i class="mail icon"></i> Messages
  694. </a>
  695. <a class="item">
  696. <i class="user icon"></i> Friends
  697. </a>
  698. </div>
  699. </div>
  700. <div class="example">
  701. <h4 class="ui header">Icons</h4>
  702. <p>A menu may have just icons</p>
  703. <div class="ui icon menu">
  704. <a class="red item">
  705. <i class="mail icon"></i>
  706. </a>
  707. <a class="teal item">
  708. <i class="lab icon"></i>
  709. </a>
  710. <a class="green item">
  711. <i class="star icon"></i>
  712. </a>
  713. </div>
  714. <br><br>
  715. <div class="ui vertical icon menu">
  716. <a class="red item">
  717. <i class="mail icon"></i>
  718. </a>
  719. <a class="teal item">
  720. <i class="lab icon"></i>
  721. </a>
  722. <a class="green item">
  723. <i class="star icon"></i>
  724. </a>
  725. </div>
  726. </div>
  727. <div class="example">
  728. <h4 class="ui header">Icons</h4>
  729. <p>A menu may have labeled icons</p>
  730. <div class="ui labeled icon menu">
  731. <a class="red item">
  732. <i class="mail icon"></i>
  733. Mail
  734. </a>
  735. <a class="teal item">
  736. <i class="lab icon"></i>
  737. Lab
  738. </a>
  739. <a class="green item">
  740. <i class="star icon"></i>
  741. Favorites
  742. </a>
  743. </div>
  744. <br><br>
  745. <div class="ui vertical labeled icon menu">
  746. <a class="red item">
  747. <i class="mail icon"></i>
  748. Mail
  749. </a>
  750. <a class="teal item">
  751. <i class="lab icon"></i>
  752. Lab
  753. </a>
  754. <a class="green item">
  755. <i class="star icon"></i>
  756. Favorites
  757. </a>
  758. </div>
  759. </div>
  760. <div class="example">
  761. <h4 class="ui header">Fluid</h4>
  762. <p>A vertical menu may take the size of its container. (A horizontal menu does this by default) </p>
  763. <div class="ui fluid vertical menu">
  764. <a class="item">Run</a>
  765. <a class="item">Walk</a>
  766. <a class="item">Bike</a>
  767. </div>
  768. </div>
  769. <div class="example">
  770. <h4 class="ui header">Evenly sized items</h4>
  771. <p>A menu may divide its items evenly</p>
  772. <div class="ui fluid three item menu">
  773. <a class="item">Buy</a>
  774. <a class="item">Sell</a>
  775. <a class="item">Rent</a>
  776. </div>
  777. </div>
  778. <div class="example">
  779. <p>A vertical menu can point to content adjacent to itself to show ownership</p>
  780. <div class="ui pointing vertical menu">
  781. <a class="item">
  782. Site Title
  783. </a>
  784. <div class="item">
  785. <b>Grouped Section</b>
  786. <div class="menu">
  787. <a class="item">Subsection 1</a>
  788. <a class="active item">Subsection 1</a>
  789. <a class="item">Subsection 1</a>
  790. </div>
  791. </div>
  792. <div class="ui dropdown item">
  793. Dropdown <i class="dropdown icon"></i>
  794. <div class="menu">
  795. <div class="item">Choice 1</div>
  796. <div class="item">Choice 2</div>
  797. <div class="item">Choice 3</div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. <div class="example">
  803. <h4 class="ui header">Attached</h4>
  804. <p>A menu may be attached to other content segments</p>
  805. <div class="ui top attached tabular menu">
  806. <a class="active item">
  807. Tab 1
  808. </a>
  809. <a class="item">
  810. Tab 2
  811. </a>
  812. </div>
  813. <div class="ui bottom attached segment">
  814. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
  815. </div>
  816. </div>
  817. <div class="example">
  818. <h4 class="ui header">Horizontal Sizes</h4>
  819. <p>A horizontal menu can vary in size</p>
  820. <div class="ui large menu">
  821. <a class="active item">
  822. <i class="home icon"></i> Home
  823. </a>
  824. <a class="item">
  825. <i class="mail icon"></i> Messages
  826. </a>1
  827. <div class="right menu">
  828. <div class="item">
  829. <div class="ui icon input">
  830. <input type="text" placeholder="Search...">
  831. <i class="search link icon"></i>
  832. </div>
  833. </div>
  834. <div class="ui dropdown item">
  835. Language <i class="dropdown icon"></i>
  836. <div class="menu">
  837. <a class="item">English</a>
  838. <a class="item">Russian</a>
  839. <a class="item">Spanish</a>
  840. </div>
  841. </div>
  842. <div class="item">
  843. <div class="ui primary button">Sign Up</div>
  844. </div>
  845. </div>
  846. </div>
  847. </div>
  848. <div class="another example">
  849. <div class="ui small menu">
  850. <a class="active item">
  851. <i class="home icon"></i> Home
  852. </a>
  853. <a class="item">
  854. <i class="mail icon"></i> Messages
  855. </a>1
  856. <div class="right menu">
  857. <div class="item">
  858. <div class="ui icon input">
  859. <input type="text" placeholder="Search...">
  860. <i class="search link icon"></i>
  861. </div>
  862. </div>
  863. <div class="ui dropdown item">
  864. Language <i class="dropdown icon"></i>
  865. <div class="menu">
  866. <a class="item">English</a>
  867. <a class="item">Russian</a>
  868. <a class="item">Spanish</a>
  869. </div>
  870. </div>
  871. <div class="item">
  872. <div class="ui primary button">Sign Up</div>
  873. </div>
  874. </div>
  875. </div>
  876. </div>
  877. <div class="example">
  878. <p>A vertical menu can also vary in size</p>
  879. <div class="ui large vertical menu">
  880. <a class="active item">
  881. <div class="ui teal label">1</div>
  882. Inbox
  883. </a>
  884. <a class="item">
  885. <div class="ui label">51</div>
  886. Spam
  887. </a>
  888. <a class="item">
  889. <div class="ui label">1</div>
  890. Updates
  891. </a>
  892. <div class="item">
  893. <div class="ui icon input">
  894. <input type="text" placeholder="Search mail...">
  895. <i class="search icon"></i>
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. <div class="another example">
  901. <div class="ui small vertical menu">
  902. <a class="active item">
  903. <div class="ui small teal label">1</div>
  904. Inbox
  905. </a>
  906. <a class="item">
  907. <div class="ui small label">51</div>
  908. Spam
  909. </a>
  910. <a class="item">
  911. <div class="ui small label">1</div>
  912. Updates
  913. </a>
  914. <div class="item">
  915. <div class="ui icon input">
  916. <input type="text" placeholder="Search mail...">
  917. <i class="search icon"></i>
  918. </div>
  919. </div>
  920. </div>
  921. </div>
  922. <h3 class="ui header">Items</h3>
  923. <div class="example">
  924. <h4 class="ui header">Fitted</h4>
  925. <p>A menu item or menu can remove element padding, vertically or horizontally</p>
  926. <div class="ui menu">
  927. <div class="fitted item">
  928. No padding whatsoever
  929. </div>
  930. <div class="horizontally fitted item">
  931. No horizontal padding
  932. </div>
  933. <div class="vertically fitted item">
  934. No vertical padding
  935. </div>
  936. </div>
  937. </div>
  938. <div class="example">
  939. <h4 class="ui header">Borderless</h4>
  940. <p>A menu item or menu can have no borders</p>
  941. <div class="ui borderless pagination menu">
  942. <a class="item">
  943. <i class="left arrow icon"></i> Previous
  944. </a>
  945. <a class="item">1</a>
  946. <a class="item">2</a>
  947. <a class="item">3</a>
  948. <a class="item">4</a>
  949. <a class="item">5</a>
  950. <a class="item">6</a>
  951. <a class="item">
  952. Next <i class="icon right arrow"></i>
  953. </a>
  954. </div>
  955. </div>
  956. </div>