diff --git a/docs/content/components/header.md b/docs/content/components/header.md index 01f81377..94dcf959 100644 --- a/docs/content/components/header.md +++ b/docs/content/components/header.md @@ -14,12 +14,13 @@ Use the Header component to create a header that has all of it's items aligned v The `.Header` class is the wrapping class that aligns all the items properly and gives the header it's dark background. Each direct child of the `.Header` component is expected to be a `.Header-item` component. The component utilizes flexbox CSS to align all these items properly and applies spacing scale margin. -```html title="Header" +```html live
- <%= octicon "mark-github", class: "mr-2", height: 32 %> - GitHub + + + GitHub
@@ -41,7 +42,7 @@ All items directly under the `.Header` component should be a `.Header-item` comp `.Header-item` elements have a built-in margin that will need to be overridden with the `mr-0` utility class for the last element in the container. We relied on the utility classes here instead of `:last-child` because the last child isn't always the item visible. On responsive pages, there's a mobile menu that gets presented to the user at smaller breakpoints. -```html title="Header-item" +```html live
@@ -67,7 +68,7 @@ All items directly under the `.Header` component should be a `.Header-item` comp The `.Header-item` element has a modifier class, `.Header-item--full`, that stretches it to fill the available space and push any remaining items to the right. -```html title="Header-item--full" +```html live
Item 1 @@ -90,7 +91,7 @@ The `.Header-item` element has a modifier class, `.Header-item--full`, that stre Add the `.Header-link` class to any anchor tags in the header to give them consistent styling and hover opacity. This class makes the links white, bold and 70% fade on hover. -```html title="Header-link" +```html live