Skip to content

Commit 9823950

Browse files
authored
restore toolbar (#285)
1 parent 9499403 commit 9823950

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

src/css/docs-ndl.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ body.docs-ndl .nav-menu .nav-item > a > strong {
140140

141141
/* end of nav */
142142

143+
/* toolbar */
144+
145+
body.docs-ndl.hub .toolbar {
146+
visibility: hidden;
147+
}
148+
149+
body.docs-ndl.explainer .toolbar {
150+
background-color: rgba(var(--colors-neutral-10));
151+
}
152+
143153
body.docs-ndl .doc a {
144154
text-decoration: none;
145155
}
@@ -819,7 +829,7 @@ body.docs-ndl .bottom-cards:not(.selectable) .sect2 .paragraph.link {
819829
}
820830

821831
body.docs-ndl .cards .sect2 .paragraph.category {
822-
display: flex;
832+
display: none;
823833
}
824834

825835
body.docs-ndl .plain-links a.external::after {

src/css/toolbar.css

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
.toolbar {
2+
color: var(--toolbar-font-color);
3+
align-items: center;
4+
background-color: var(--toolbar-background);
5+
box-shadow: 0 1px 0 var(--toolbar-border-color);
6+
display: flex;
7+
font-size: calc(15 / var(--rem-base) * 1rem);
8+
height: var(--toolbar-height);
9+
justify-content: flex-start;
10+
position: sticky;
11+
top: var(--navbar-height);
12+
z-index: var(--z-index-toolbar);
13+
}
14+
115
body.has-banner .toolbar {
216
top: calc(var(--navbar-height) + var(--banner-height));
317
}
@@ -37,6 +51,8 @@ body.has-banner .toolbar {
3751
}
3852

3953
.home-link {
54+
background: url(../img/home-o.svg) no-repeat 50% 45%;
55+
background-size: 50%;
4056
display: block;
4157
height: 2.5rem;
4258
margin: 0;
@@ -46,8 +62,7 @@ body.has-banner .toolbar {
4662

4763
.home-link:hover,
4864
.home-link.is-current {
49-
background: rgba(var(--colors-baltic-10));
50-
color: rgba(var(--colors-baltic-50));
65+
background-image: url(../img/home.svg);
5166
}
5267

5368
.home-link a line {

0 commit comments

Comments
 (0)