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.

1002 lines
27 KiB

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