Skip to content

Commit

Permalink
Fixed Docs home link on top of sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
lidiazuin committed Nov 4, 2024
1 parent fa5274f commit 3c1eccb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
21 changes: 17 additions & 4 deletions src/css/docs-ndl.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,26 @@ body.docs-ndl.explainer .nav-panel-menu {
scrollbar-width: none;
}

body.docs-ndl .nav-menu .docs-home-link a::before {
content: "";
width: 4px;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: rgba(10 97 144 / 1);
background-color: var(--color-docs);
border-radius: 4px;
}

body.docs-ndl .nav-menu .docs-home-link {
margin-bottom: 0;
}

body.docs-ndl .nav-menu .docs-home-link:hover,
body.docs-ndl .nav-menu .docs-home-link:focus {
text-decoration: underline;
/* background-color: var(--toc_hover-background-color); */
text-decoration: none;
background-color: var(--colors-baltic-15);
}

body.docs-ndl .nav-menu .home-link {
Expand All @@ -39,7 +51,9 @@ body.docs-ndl .nav-menu .home-link.is-home {
}

body.docs-ndl .nav-menu .home-link.is-home a {
display: none;
display: flex;
background-color: rgba(var(--colors-baltic-10));
color: rgba(var(--colors-baltic-50));
}

body.docs-ndl .nav-module {
Expand Down Expand Up @@ -70,7 +84,6 @@ body.docs-ndl .nav-text {

body.docs-ndl .nav-menu .home-link a::before {
display: inline-block;
content: url(../img/arrow-long-left.svg);
margin-right: 1em;
vertical-align: middle;
line-height: 1;
Expand Down
6 changes: 2 additions & 4 deletions src/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ body.has-banner .toolbar {
}

.home-link {
background: url(../img/home-o.svg) no-repeat 50% 45%;
background-size: 50%;
display: block;
height: 2.5rem;
margin: 0;
Expand All @@ -48,8 +46,8 @@ body.has-banner .toolbar {

.home-link:hover,
.home-link.is-current {
background-image: url(../img/home.svg);
/* color: rgba(var(--colors-baltic-50)); */
background: rgba(var(--colors-baltic-10));
color: rgba(var(--colors-baltic-50));
}

.home-link a line {
Expand Down

0 comments on commit 3c1eccb

Please sign in to comment.