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.

181 lines
7.8 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 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. <h2 class="ui dividing header">Types</h2>
  15. <div class="example">
  16. <h4 class="ui header">Divider</h4>
  17. <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>
  18. <p>A standard divider</p>
  19. <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>
  20. <div class="ui divider"></div>
  21. <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>
  22. </div>
  23. <div class="example">
  24. <h4 class="ui header">Vertical Divider</h4>
  25. <div class="ui info message">
  26. 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.
  27. </div>
  28. <p>A divider can segment content vertically</p>
  29. <div class="ui two column middle aligned relaxed fitted stackable grid">
  30. <div class="column">
  31. <div class="ui form segment">
  32. <div class="field">
  33. <label>Username</label>
  34. <div class="ui left icon input">
  35. <input type="text" placeholder="Username">
  36. <i class="user icon"></i>
  37. </div>
  38. </div>
  39. <div class="field">
  40. <label>Password</label>
  41. <div class="ui left icon input">
  42. <input type="password">
  43. <i class="lock icon"></i>
  44. </div>
  45. </div>
  46. <div class="ui blue submit button">Login</div>
  47. </div>
  48. </div>
  49. <div class="ui vertical divider">
  50. Or
  51. </div>
  52. <div class="center aligned column">
  53. <div class="huge green ui labeled icon button">
  54. <i class="signup icon"></i>
  55. Sign Up
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="example">
  61. <h4 class="ui header">Horizontal Divider</h4>
  62. <p>A divider can segment content horizontally</p>
  63. <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.
  64. </div>
  65. <div class="ui ignored message">Dividers will automatically vary the size of their dividing rules to match the length of your text</div>
  66. <div class="ui segment">
  67. <div class="ui form">
  68. <div class="field">
  69. <label>Lookup Order</label>
  70. <div class="ui left labeled icon input">
  71. <i class="search icon"></i>
  72. <input type="text" placeholder="Order #">
  73. </div>
  74. </div>
  75. <div class="ui blue submit button">Search</div>
  76. </div>
  77. <div class="ui horizontal divider">
  78. Or
  79. </div>
  80. <div class="ui teal labeled icon button">
  81. Create New Order
  82. <i class="add icon"></i>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="another example">
  87. <div class="ui segment">
  88. <h2 class="ui header">
  89. Doggie Treat
  90. <div class="sub header">$4.99 for 100</div>
  91. </h2>
  92. <div class="ui primary button">Add to cart</div>
  93. <p>Doggie treats are good for all times of the year. Proven to be eaten by 99.9% of all dogs worldwide.</p>
  94. <h4 class="ui horizontal header divider">
  95. <i class="bar chart icon"></i>
  96. Specifications
  97. </h4>
  98. <table class="ui very basic definition table">
  99. <tbody>
  100. <tr>
  101. <td class="two wide column">Size</td>
  102. <td>1" x 2"</td>
  103. </tr>
  104. <tr>
  105. <td>Weight</td>
  106. <td>6 ounces</td>
  107. </tr>
  108. <tr>
  109. <td>Color</td>
  110. <td>Yellowish</td>
  111. </tr>
  112. <tr>
  113. <td>Odor</td>
  114. <td>Not Much Usually</td>
  115. </tr>
  116. </tbody>
  117. </table>
  118. </div>
  119. </div>
  120. <h2 class="ui dividing header">Variations</h2>
  121. <div class="example">
  122. <h4 class="ui header">Inverted</h4>
  123. <p>A divider can have its colors inverted</p>
  124. <div class="ui inverted segment">
  125. <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>
  126. <div class="ui inverted divider"></div>
  127. <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>
  128. </div>
  129. </div>
  130. <div class="example">
  131. <h4 class="ui header">Fitted</h4>
  132. <p>A divider can be fitted, without any space above or below it.</p>
  133. <div class="ui segment">
  134. 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.
  135. <div class="ui fitted divider"></div>
  136. 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.
  137. </div>
  138. </div>
  139. <div class="example">
  140. <h4 class="ui header">Hidden</h4>
  141. <p>A hidden divider divides content without creating a dividing line</p>
  142. <h3 class="ui header">Section One</h3>
  143. <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>
  144. <div class="ui hidden divider"></div>
  145. <h3 class="ui header">Section Two</h3>
  146. <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>
  147. </div>
  148. <div class="example">
  149. <h4 class="ui header">Section</h4>
  150. <p>A divider can provide greater margins to divide sections of content</p>
  151. <h3 class="ui header">Section One</h3>
  152. <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>
  153. <div class="ui section divider"></div>
  154. <h3 class="ui header">Section Two</h3>
  155. <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>
  156. </div>
  157. <div class="example">
  158. <h4 class="ui header">Clearing</h4>
  159. <p>A divider can clear the contents above it</p>
  160. <div class="ui segment">
  161. <h2 class="ui left floated header">Left Header</h2>
  162. <h2 class="ui right floated header">Right Header</h2>
  163. <div class="ui clearing divider"></div>
  164. <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>
  165. </div>
  166. </div>
  167. </div>