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.

1007 lines
27 KiB

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