Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 16 additions & 34 deletions src/css/docs-ndl.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,21 @@
}
}

body.docs-ndl.hub,
body.docs-ndl.explainer {
background: rgba(var(--colors-neutral-15));
}

/* nav */

body.docs-ndl .nav {
background: rgba(var(--colors-neutral-10));
}

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;
position: relative;
display: inline-block;
margin: 0;
content: "→";
transform: rotate(-180deg);
color: var(--link-font-color);
transition: all 0.2s linear;
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 {
Expand All @@ -55,24 +45,21 @@ body.docs-ndl .nav-menu .docs-home-link:focus {
body.docs-ndl .nav-menu .home-link {
width: auto;
background: none;
display: flex;
flex-direction: row;
align-items: stretch;
box-shadow: 0 1px 0 var(--toolbar-border-color);
}

body.docs-ndl .nav-menu .home-link.is-home {
box-shadow: none;
}

body.docs-ndl .nav-menu .home-link.is-home a {
body.docs-ndl .nav-menu .home-link a {
display: flex;
background-color: rgba(var(--colors-baltic-10));
flex: 1;
align-self: center;
padding: 0.75rem 0 0.75rem 1rem;
/* background-color: rgba(var(--colors-baltic-10)); */
color: rgba(var(--colors-baltic-50));
}

body.docs-ndl .nav-module {
/* background: rgba(var(--colors-neutral-15)); */
background: rgba(var(--colors-neutral-10));
}

body.docs-ndl .nav-list:first-child .nav-item:first-child .nav-section-header {
border: none;
padding-top: 1.5rem !important;
Expand Down Expand Up @@ -156,10 +143,6 @@ body.docs-ndl.hub .toolbar {
display: none;
}

body.docs-ndl.explainer .toolbar {
background-color: rgba(var(--colors-neutral-10));
}

body.docs-ndl .doc a {
text-decoration: none;
}
Expand Down Expand Up @@ -622,7 +605,6 @@ body.docs-ndl .cards .sectionbody > div.sect2 {

body.docs-ndl .cards.bottom-cards .sectionbody > div.sect2 {
flex: 0 1 49%;
border: 0;
}

body.docs-ndl.explainer .sectionbody > div.sect2 {
Expand Down Expand Up @@ -684,7 +666,7 @@ body.docs-ndl .cards .sect2 > a,
body.docs-ndl .cards:not(.selectable) .sect2 > a,
body.docs-ndl .widget:not(.video) {
/* box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06); */
border: none;
border: 1px solid var(--panel-border-color);
border-radius: 1rem;
}

Expand Down
2 changes: 1 addition & 1 deletion src/partials/nav-ndl.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ul class="nav-list docs-home-link">
<li class="nav-item home-link{{#if page.home}} is-home{{/if}}" data-depth="1" aria-label="home-link">
{{#with site.homeUrl}}
<a href="{{{relativize this}}}" aria-label="Go to docs home page">Docs home</a>
<a href="{{{relativize this}}}" aria-label="Go to docs home page">Back to docs home</a>
{{/with}}
</li>
</ul>
Expand Down