Skip to content

Commit

Permalink
Fixing mobile header for docs example (withastro#3335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Sullivan committed May 10, 2022
1 parent 0913afb commit be899fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions examples/docs/src/components/Header/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const lang = currentPage && getLanguageFromURL(currentPage);
<SidebarToggle client:idle />
</div>
<div class="logo flex">
<AstroLogo size={40} />
<a href="/">
<AstroLogo size={40} />
<h1>{CONFIG.SITE.title ?? "Documentation"}</h1>
</a>
</div>
Expand Down Expand Up @@ -48,6 +48,7 @@ const lang = currentPage && getLanguageFromURL(currentPage);
}

.logo {
flex: 1;
display: flex;
overflow: hidden;
width: 30px;
Expand All @@ -61,6 +62,7 @@ const lang = currentPage && getLanguageFromURL(currentPage);
}

.logo a {
display: flex;
padding: 0.5em 0.25em;
margin: -0.5em -0.25em;
text-decoration: none;
Expand All @@ -78,6 +80,7 @@ const lang = currentPage && getLanguageFromURL(currentPage);
}

.logo h1 {
display: none;
font: inherit;
color: inherit;
margin: 0;
Expand All @@ -103,12 +106,12 @@ const lang = currentPage && getLanguageFromURL(currentPage);
margin: 0;
z-index: 0;
}
.logo h1 {
display: initial;
}
.menu-toggle {
display: none;
}
.logo {
width: auto;
}
}

/** Style Algolia */
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const SITE = {
title: 'Your Documentation Website',
title: 'Documentation',
description: 'Your website description.',
defaultLanguage: 'en_US',
};
Expand Down

0 comments on commit be899fd

Please sign in to comment.