Skip to content

Commit 3c1eccb

Browse files
committed
Fixed Docs home link on top of sidebar
1 parent fa5274f commit 3c1eccb

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/css/docs-ndl.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,26 @@ body.docs-ndl.explainer .nav-panel-menu {
1818
scrollbar-width: none;
1919
}
2020

21+
body.docs-ndl .nav-menu .docs-home-link a::before {
22+
content: "";
23+
width: 4px;
24+
height: 100%;
25+
position: absolute;
26+
left: 0;
27+
top: 0;
28+
background-color: rgba(10 97 144 / 1);
29+
background-color: var(--color-docs);
30+
border-radius: 4px;
31+
}
32+
2133
body.docs-ndl .nav-menu .docs-home-link {
2234
margin-bottom: 0;
2335
}
2436

2537
body.docs-ndl .nav-menu .docs-home-link:hover,
2638
body.docs-ndl .nav-menu .docs-home-link:focus {
27-
text-decoration: underline;
28-
/* background-color: var(--toc_hover-background-color); */
39+
text-decoration: none;
40+
background-color: var(--colors-baltic-15);
2941
}
3042

3143
body.docs-ndl .nav-menu .home-link {
@@ -39,7 +51,9 @@ body.docs-ndl .nav-menu .home-link.is-home {
3951
}
4052

4153
body.docs-ndl .nav-menu .home-link.is-home a {
42-
display: none;
54+
display: flex;
55+
background-color: rgba(var(--colors-baltic-10));
56+
color: rgba(var(--colors-baltic-50));
4357
}
4458

4559
body.docs-ndl .nav-module {
@@ -70,7 +84,6 @@ body.docs-ndl .nav-text {
7084

7185
body.docs-ndl .nav-menu .home-link a::before {
7286
display: inline-block;
73-
content: url(../img/arrow-long-left.svg);
7487
margin-right: 1em;
7588
vertical-align: middle;
7689
line-height: 1;

src/css/toolbar.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ body.has-banner .toolbar {
3737
}
3838

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

4947
.home-link:hover,
5048
.home-link.is-current {
51-
background-image: url(../img/home.svg);
52-
/* color: rgba(var(--colors-baltic-50)); */
49+
background: rgba(var(--colors-baltic-10));
50+
color: rgba(var(--colors-baltic-50));
5351
}
5452

5553
.home-link a line {

0 commit comments

Comments
 (0)