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.

250 lines
10 KiB

10 years ago
  1. ---
  2. layout : 'default'
  3. css : 'header'
  4. title : 'Header'
  5. description : 'Headers provide a short summary of content'
  6. type : 'UI Element'
  7. element : 'header'
  8. elementType : 'element'
  9. themes : ['default', 'bookish', 'chubby']
  10. ---
  11. <%- @partial('header') %>
  12. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/elements/header.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">States</a>
  18. <a class="item">Variations</a>
  19. </div>
  20. </div>
  21. <h2 class="ui dividing header">Types</h2>
  22. <div class="example">
  23. <h4 class="ui header">Header</h4>
  24. <p>A standard header</p>
  25. <h2 class="ui header">
  26. Account Settings
  27. </h2>
  28. </div>
  29. <div class="example">
  30. <h4 class="ui header">Descriptive Headers</h4>
  31. <p>Headers may have sub headers containing further context to the section</p>
  32. <h2 class="ui header">
  33. Account Settings
  34. <div class="sub header">Manage your account settings and set e-mail preferences.</div>
  35. </h2>
  36. </div>
  37. <div class="another example">
  38. <h2 class="ui header">
  39. <i class="settings icon"></i>
  40. <div class="content">
  41. Account Settings
  42. <div class="sub header">Manage your account settings and set e-mail preferences.</div>
  43. </div>
  44. </h2>
  45. </div>
  46. <div class="example">
  47. <h4 class="ui header">Icon</h4>
  48. <p>A header can be formatted to emphasize an icon</p>
  49. <div class="ui icon header">
  50. <i class="circular question icon"></i>Questions
  51. <div class="sub header">Have any questions? Contact Us</div>
  52. </div>
  53. </div>
  54. <div class="example">
  55. <h4 class="ui header">Page Headings</h4>
  56. <p class="header">Headers may be oriented to give the heirarchy of a section in the context of the page</p>
  57. <div class="ignored info ui message">Page headings size themselves relative to the base font of the entire page not the surrounding text.</div>
  58. <div class="ui basic segment">
  59. <h1 class="ui header">First header</h1>
  60. <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>
  61. <h2 class="ui header">Second header</h2>
  62. <p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</p>
  63. <h3 class="ui header">Third header</h3>
  64. <p>Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</p>
  65. <h4 class="ui header">Fourth header</h4>
  66. <p>Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.</p>
  67. <h5 class="ui header">Fifth header</h5>
  68. <p>Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.</p>
  69. </div>
  70. <div class="ui ignored secondary two item font menu">
  71. <a class="increase item"> <i class="icon circular green plus"></i> Base Font</a>
  72. <a class="decrease item"> <i class="icon circular red minus"></i> Base Font</a>
  73. </div>
  74. </div>
  75. <div class="example">
  76. <h4 class="ui header">Content Headings</h4>
  77. <p>Headers may be oriented to give the importance of a section in the context of the content that surrounds it</p>
  78. <div class="ignored info ui message">Content headings size themselves relative to the base font of the surrounding text</div>
  79. <div class="ui basic segment">
  80. <div class="ui huge header">Huge Header</div>
  81. <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>
  82. <div class="ui large header">Large Header</div>
  83. <p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</p>
  84. <div class="ui medium header">Medium Header</div>
  85. <p>Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</p>
  86. <div class="ui small header">Small Header</div>
  87. <p>Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.</p>
  88. <div class="ui tiny header">Tiny Header</div>
  89. <p>Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.</p>
  90. </div>
  91. <div class="ui ignored secondary two item font menu">
  92. <a class="increase item"> <i class="icon circular green plus"></i> Base Font</a>
  93. <a class="decrease item"> <i class="icon circular red minus"></i> Base Font</a>
  94. </div>
  95. </div>
  96. <h2 class="ui dividing header">States</h2>
  97. <div class="example">
  98. <h4 class="ui header">Disabled</h4>
  99. <p>A header can show that it is inactive</p>
  100. <div class="ui disabled header">
  101. Disabled Header
  102. </div>
  103. </div>
  104. <h2 class="ui dividing header">Variations</h2>
  105. <div class="example">
  106. <h4 class="ui header">Dividing</h4>
  107. <p>A header can be formatted to divide itself from the content below it</p>
  108. <h3 class="ui dividing header">
  109. The nature of dogs
  110. </h3>
  111. <p>Understanding how dogs behave in nature can help us to better fulfill their needs when we bring them into our homes.</p>
  112. <p>When a puppy enters the world, his first pack leader is his mother. Canine moms teach rules, boundaries, and limitations from day one!</p>
  113. <p>Newborn puppies don't get a name like we do. The closest thing to a personality is a dog's status within the pack. In the animal world, there are two positions: the leader and the follower.</p>
  114. </div>
  115. <div class="example">
  116. <h4 class="ui header">Block</h4>
  117. <p>A header can be formatted to appear inside a content block</p>
  118. <h3 class="ui black block header">
  119. Block Header
  120. </h3>
  121. <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
  122. </div>
  123. <div class="example">
  124. <h4 class="ui header">Attached</h4>
  125. <p>A header can be attached to other content, like a <a href="elements/segment.html">segment</a></p>
  126. <h3 class="ui top attached header">
  127. Bulldog
  128. </h3>
  129. <div class="ui attached segment">
  130. <p>Bulldog is the name for a breed of dog commonly referred to as the English Bulldog. Other Bulldog breeds include the American Bulldog, Old English Bulldog (now extinct), Olde English Bulldogge, and the French Bulldog. The Bulldog is a muscular, heavy dog with a wrinkled face and a distinctive pushed-in nose.</p>
  131. <p>The American Kennel Club (AKC), The Kennel Club (UK), and the United Kennel Club (UKC) oversee breeding standards. Bulldogs are the 5th most popular purebreed in the United States in 2013 according to the American Kennel Club.</p>
  132. </div>
  133. <h3 class="ui attached header">
  134. Catahoula Cur
  135. </h3>
  136. <div class="ui attached segment">
  137. <p>The Catahoula Cur is an American dog breed named after Catahoula Parish, in the state of Louisiana, in the United States. After becoming the state dog of Louisiana in 1979, its name was officially changed to Louisiana Catahoula Leopard Dog. The Catahoula is believed to be the first dog breed developed in North America.</p>
  138. <p>The breed is sometimes referred to as the "Catahoula Hound" or "Catahoula Leopard Hound", although it is not a true hound, but a cur. It is also called the "Catahoula Hog Dog", reflecting its traditional use in hunting wild boar.</p>
  139. </div>
  140. <h3 class="ui bottom attached header">
  141. Thanks for reading
  142. </h3>
  143. </div>
  144. <div class="example">
  145. <h4 class="ui header">Floating</h4>
  146. <p>A header can sit to the left or right of other content</p>
  147. <div class="ui segment">
  148. <h3 class="ui right floated header">
  149. Go Forward
  150. </h3>
  151. <h3 class="ui left floated header">
  152. Go Back
  153. </h3>
  154. </div>
  155. </div>
  156. <div class="clearing example">
  157. <h4 class="ui header">Text Alignment</h4>
  158. <p>A header can have its text aligned to a side</p>
  159. <div class="ui segment">
  160. <h3 class="ui right aligned header">
  161. Right
  162. </h3>
  163. <h3 class="ui left aligned header">
  164. Left
  165. </h3>
  166. <h3 class="ui justified header">
  167. This should take up the full width even if only one line
  168. </h3>
  169. <h3 class="ui center aligned header">
  170. Center
  171. </h3>
  172. </div>
  173. </div>
  174. <div class="example">
  175. <h4 class="ui header">Colors</h4>
  176. <p>A header can be formatted with different colors</p>
  177. <h3 class="ui black header">
  178. Black
  179. <div class="sub header">An excellent color</div>
  180. </h3>
  181. <h3 class="ui blue header">
  182. Blue
  183. <div class="sub header">An excellent color</div>
  184. </h3>
  185. <h3 class="ui red header">
  186. Red
  187. <div class="sub header">An excellent color</div>
  188. </h3>
  189. <h3 class="ui green header">
  190. Green
  191. <div class="sub header">An excellent color</div>
  192. </h3>
  193. <h3 class="ui purple header">
  194. Purple
  195. <div class="sub header">An excellent color</div>
  196. </h3>
  197. <h3 class="ui teal header">
  198. Teal
  199. <div class="sub header">An excellent color</div>
  200. </h3>
  201. </div>
  202. <div class="example">
  203. <h4 class="ui header">Inverted</h4>
  204. <p>A header can have its colors inverted for contrast</p>
  205. <div class="ui info message">
  206. Inverted headers use modified light versions of your site's color scheme that are adapted to have more contrast on dark background
  207. </div>
  208. <div class="ui inverted segment">
  209. <h4 class="ui inverted black header">
  210. Black
  211. </h4>
  212. <h4 class="ui inverted blue header">
  213. Blue
  214. </h4>
  215. <h4 class="ui inverted red header">
  216. Red
  217. </h4>
  218. <h4 class="ui inverted green header">
  219. Green
  220. </h4>
  221. <h4 class="ui inverted purple header">
  222. Purple
  223. </h4>
  224. <h4 class="ui inverted teal header">
  225. Teal
  226. </h4>
  227. </div>
  228. </div>
  229. </div>