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.

186 lines
7.9 KiB

  1. ---
  2. layout : 'default'
  3. css : 'divider'
  4. element : 'divider'
  5. elementType : 'element'
  6. title : 'Divider'
  7. description : 'A divider visually segments content into separate groups'
  8. type : 'UI Element'
  9. themes : ['default']
  10. ---
  11. <%- @partial('header') %>
  12. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/elements/divider.less" />
  13. <div class="main container">
  14. <div class="peek">
  15. <div class="ui vertical pointing secondary menu">
  16. <a class="active item">Types</a>
  17. <a class="item">Variations</a>
  18. </div>
  19. </div>
  20. <h2 class="ui dividing header">Types</h2>
  21. <div class="example">
  22. <h4 class="ui header">Divider</h4>
  23. <div class="ignored ui warning message">If you are looking to add a divider in between grid rows, you can use the <code>ui divided grid</code> variation. For more information check out <a href="/collections/grid.html">the grid definition</a></div>
  24. <p>A standard divider</p>
  25. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  26. <div class="ui divider"></div>
  27. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  28. </div>
  29. <div class="example">
  30. <h4 class="ui header">Vertical Divider</h4>
  31. <div class="ui info message">
  32. If you use a vertical divider inside a <a href="/collections/grid.html">stackable grid</a> it will automatically adjust from a <code>vertical divider</code> to a <code>horizontal divider</code> at mobile resolutions.
  33. </div>
  34. <p>A divider can segment content vertically</p>
  35. <div class="ui two column middle aligned relaxed fitted stackable grid">
  36. <div class="column">
  37. <div class="ui form segment">
  38. <div class="field">
  39. <label>Username</label>
  40. <div class="ui left icon input">
  41. <input type="text" placeholder="Username">
  42. <i class="user icon"></i>
  43. </div>
  44. </div>
  45. <div class="field">
  46. <label>Password</label>
  47. <div class="ui left icon input">
  48. <input type="password">
  49. <i class="lock icon"></i>
  50. </div>
  51. </div>
  52. <div class="ui blue submit button">Login</div>
  53. </div>
  54. </div>
  55. <div class="ui vertical divider">
  56. Or
  57. </div>
  58. <div class="center aligned column">
  59. <div class="huge green ui labeled icon button">
  60. <i class="signup icon"></i>
  61. Sign Up
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="example">
  67. <h4 class="ui header">Horizontal Divider</h4>
  68. <p>A divider can segment content horizontally</p>
  69. <div class="ui ignored positive message">Horizontal dividers can also be used in combination with <a href="/elements/header.html">header</a> and <a href="/elements/icon.html">icons</a> to create different styles of dividers.
  70. </div>
  71. <div class="ui ignored message">Dividers in Semantic <code>1.0</code> will automatically vary the size of their rules to match the length of your text</div>
  72. <div class="ui tertiary form segment">
  73. <div class="field">
  74. <label>Lookup Order</label>
  75. <div class="ui left labeled icon input">
  76. <i class="search icon"></i>
  77. <input type="text" placeholder="Order #">
  78. </div>
  79. </div>
  80. <div class="ui blue submit button">Search</div>
  81. </div>
  82. <div class="ui horizontal divider">
  83. Or
  84. </div>
  85. <div class="ui teal labeled icon button">
  86. Create New Order
  87. <i class="add icon"></i>
  88. </div>
  89. </div>
  90. <div class="another example">
  91. <div class="ui segment">
  92. <h2 class="ui header">
  93. Doggie Treat
  94. <div class="sub header">$4.99 for 100</div>
  95. </h2>
  96. <div class="ui primary button">Add to cart</div>
  97. <p>Doggie treats are good for all times of the year. Proven to be eaten by 99.9% of all dogs worldwide.</p>
  98. <h4 class="ui horizontal header divider">
  99. <i class="bar chart icon"></i>
  100. Specifications
  101. </h4>
  102. <table class="ui very basic definition table">
  103. <tbody>
  104. <tr>
  105. <td class="two wide column">Size</td>
  106. <td>1" x 2"</td>
  107. </tr>
  108. <tr>
  109. <td>Weight</td>
  110. <td>6 ounces</td>
  111. </tr>
  112. <tr>
  113. <td>Color</td>
  114. <td>Yellowish</td>
  115. </tr>
  116. <tr>
  117. <td>Odor</td>
  118. <td>Not Much Usually</td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. </div>
  123. </div>
  124. <h2 class="ui dividing header">Variations</h2>
  125. <div class="example">
  126. <h4 class="ui header">Inverted</h4>
  127. <p>A divider can have its colors inverted</p>
  128. <div class="ui inverted segment">
  129. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  130. <div class="ui inverted divider"></div>
  131. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  132. </div>
  133. </div>
  134. <div class="example">
  135. <h4 class="ui header">Fitted</h4>
  136. <p>A divider can be fitted, without any space above or below it.</p>
  137. <div class="ui segment">
  138. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
  139. <div class="ui fitted divider"></div>
  140. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
  141. </div>
  142. </div>
  143. <div class="example">
  144. <h4 class="ui header">Hidden</h4>
  145. <p>A hidden divider divides content without creating a dividing line</p>
  146. <h3 class="ui header">Section One</h3>
  147. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  148. <div class="ui hidden divider"></div>
  149. <h3 class="ui header">Section Two</h3>
  150. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  151. </div>
  152. <div class="example">
  153. <h4 class="ui header">Section</h4>
  154. <p>A divider can provide greater margins to divide sections of content</p>
  155. <h3 class="ui header">Section One</h3>
  156. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  157. <div class="ui section divider"></div>
  158. <h3 class="ui header">Section Two</h3>
  159. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  160. </div>
  161. <div class="example">
  162. <h4 class="ui header">Clearing</h4>
  163. <p>A divider can clear the contents above it</p>
  164. <div class="ui segment">
  165. <h2 class="ui left floated header">Left Header</h2>
  166. <h2 class="ui right floated header">Right Header</h2>
  167. <div class="ui clearing divider"></div>
  168. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  169. </div>
  170. </div>
  171. </div>