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.

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