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.

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