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.

1019 lines
27 KiB

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