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.

182 lines
5.2 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  7. <title>Theming - Semantic</title>
  8. <!--- Site CSS -->
  9. <link rel="stylesheet" type="text/css" href="../../dist/components/reset.css">
  10. <link rel="stylesheet" type="text/css" href="../../dist/components/site.css">
  11. <link rel="stylesheet" type="text/css" href="../../dist/components/grid.css">
  12. <!--- Component CSS -->
  13. <link rel="stylesheet" type="text/css" href="../../dist/components/menu.css">
  14. <link rel="stylesheet" type="text/css" href="../../dist/components/input.css">
  15. <link rel="stylesheet" type="text/css" href="../../dist/components/dropdown.css">
  16. <link rel="stylesheet" type="text/css" href="../../dist/components/icon.css">
  17. <link rel="stylesheet" type="text/css" href="../../dist/components/button.css">
  18. <link rel="stylesheet" type="text/css" href="../../dist/components/transition.css">
  19. <!--- Example Libs -->
  20. <link rel="stylesheet" type="text/css" href="../../dist/components/popup.css">
  21. <script src="../assets/library/jquery.min.js"></script>
  22. <script src="../assets/library/iframe-content.js"></script>
  23. <script src="../assets/show-examples.js"></script>
  24. <script type="text/javascript" src="../../dist/components/popup.js"></script>
  25. <!--- Component JS -->
  26. <script type="text/javascript" src="../../dist/components/transition.js"></script>
  27. <script type="text/javascript" src="../../dist/components/dropdown.js"></script>
  28. <!--- Example CSS -->
  29. <style>
  30. body {
  31. padding: 1em;
  32. }
  33. .ui.menu {
  34. margin: 3em 0em;
  35. }
  36. .ui.menu:last-child {
  37. margin-bottom: 110px;
  38. }
  39. </style>
  40. <!--- Example Javascript -->
  41. <script>
  42. $(document)
  43. .ready(function() {
  44. $('.ui.menu .ui.dropdown').dropdown({
  45. on: 'hover'
  46. });
  47. $('.ui.menu a.item')
  48. .on('click', function() {
  49. $(this)
  50. .addClass('active')
  51. .siblings()
  52. .removeClass('active')
  53. ;
  54. })
  55. ;
  56. })
  57. ;
  58. </script>
  59. </head>
  60. <body>
  61. <div class="ui menu">
  62. <div class="header item">Brand</div>
  63. <a class="active item">Link</a>
  64. <a class="item">Link</a>
  65. <div class="ui dropdown item">
  66. Dropdown
  67. <i class="dropdown icon"></i>
  68. <div class="menu">
  69. <div class="item">Action</div>
  70. <div class="item">Another Action</div>
  71. <div class="item">Something else here</div>
  72. <div class="divider"></div>
  73. <div class="item">Separated Link</div>
  74. <div class="divider"></div>
  75. <div class="item">One more separated link</div>
  76. </div>
  77. </div>
  78. <div class="right menu">
  79. <div class="item">
  80. <div class="ui action left icon input">
  81. <i class="search icon"></i>
  82. <input type="text" placeholder="Search">
  83. <button class="ui button">Submit</button>
  84. </div>
  85. </div>
  86. <a class="item">Link</a>
  87. </div>
  88. </div>
  89. <div class="ui inverted menu">
  90. <div class="header item">Brand</div>
  91. <div class="active item">Link</div>
  92. <a class="item">Link</a>
  93. <div class="ui dropdown item">
  94. Dropdown
  95. <i class="dropdown icon"></i>
  96. <div class="menu">
  97. <div class="item">Action</div>
  98. <div class="item">Another Action</div>
  99. <div class="item">Something else here</div>
  100. <div class="divider"></div>
  101. <div class="item">Separated Link</div>
  102. <div class="divider"></div>
  103. <div class="item">One more separated link</div>
  104. </div>
  105. </div>
  106. <div class="right menu">
  107. <div class="item">
  108. <div class="ui transparent inverted icon input">
  109. <i class="search icon"></i>
  110. <input type="text" placeholder="Search">
  111. </div>
  112. </div>
  113. <a class="item">Link</a>
  114. </div>
  115. </div>
  116. <div class="ui secondary menu">
  117. <div class="active item">Link</div>
  118. <a class="item">Link</a>
  119. <div class="ui dropdown item">
  120. Dropdown
  121. <i class="dropdown icon"></i>
  122. <div class="menu">
  123. <div class="item">Action</div>
  124. <div class="item">Another Action</div>
  125. <div class="item">Something else here</div>
  126. <div class="divider"></div>
  127. <div class="item">Separated Link</div>
  128. <div class="divider"></div>
  129. <div class="item">One more separated link</div>
  130. </div>
  131. </div>
  132. <div class="right menu">
  133. <div class="item">
  134. <div class="ui action left icon input">
  135. <i class="search icon"></i>
  136. <input type="text" placeholder="Search">
  137. <button class="ui button">Submit</button>
  138. </div>
  139. </div>
  140. <a class="item">Link</a>
  141. </div>
  142. </div>
  143. <div class="ui three column doubling grid">
  144. <div class="column">
  145. <div class="ui secondary pointing menu">
  146. <div class="active item">Link</div>
  147. <a class="item">Link</a>
  148. <a class="item">Link</a>
  149. </div>
  150. </div>
  151. <div class="column">
  152. <div class="ui tabular menu">
  153. <div class="active item">Link</div>
  154. <a class="item">Link</a>
  155. <a class="item">Link</a>
  156. </div>
  157. </div>
  158. <div class="column">
  159. <div class="ui pointing menu">
  160. <div class="active item">Link</div>
  161. <a class="item">Link</a>
  162. <div class="right item">
  163. Right Text
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </body>
  169. </html>