Skip to content

Commit

Permalink
Merge pull request #22 from hugovk/link-to-mobile-header
Browse files Browse the repository at this point in the history
Add link to mobile header
  • Loading branch information
pradyunsg authored Oct 15, 2020
2 parents f8a5ddc + f45b8a2 commit f67f61d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/furo/assets/styles/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ body {
background: var(--color-background-primary);
}

////////////////////////////////////////////////////////////////////////////////
// Header
////////////////////////////////////////////////////////////////////////////////
.mobile-header {
.header-center {
a {
color: var(--color-header-text);
text-decoration: none;
}
}
}

////////////////////////////////////////////////////////////////////////////////
// Announcements
////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 3 additions & 1 deletion src/furo/theme/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
<label class="header-left nav-overlay-icon" for="__navigation">
<i class="icon"><svg><use href="#svg-menu"></use></svg></i>
</label>
<div class="header-center"><div class="brand">{{ docstitle }}</div></div>
<div class="header-center">
<a href="{{ pathto(master_doc) }}"><div class="brand">{{ docstitle }}</div></a>
</div>
<div class="header-right"></div>
</header>
<aside class="sidebar-drawer">
Expand Down

0 comments on commit f67f61d

Please sign in to comment.