Skip to content

Commit 95804f8

Browse files
committed
scroll guides menu independently
1 parent 3c67d8d commit 95804f8

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

_includes/inline-aside-style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ aside {
1010
flex-direction: column;
1111
justify-content: flex-start;
1212
min-width: 30ch;
13-
overflow-y: auto;
1413
}
1514

1615
aside .title {
@@ -67,5 +66,6 @@ aside details a {
6766
border-inline-end: 1px solid var(--c-border);
6867
width: max-content;
6968
height: 100%;
69+
overflow-y: scroll;
7070
}
7171
}

_includes/inline-style.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ main *, .hero * {
7676

7777
body {
7878
background-color: var(--c-bg);
79-
min-height: 100vh;
79+
height: 100vh;
8080
display: grid;
81+
overflow-y: scroll;
8182
grid-template-rows: var(--header-height) min-content auto auto min-content;
8283
grid-template-columns: 1fr;
8384
grid-template-areas: "header" "hero" "main" "aside" "footer";
@@ -142,6 +143,7 @@ main :is(h2, h3, h4, h5, h6) a:hover::before {
142143

143144
@media screen and (min-width: 800px) {
144145
body {
146+
overflow-y: hidden;
145147
grid-template-columns: min-content 8fr;
146148
grid-template-rows: 4rem min-content auto min-content;
147149
grid-template-areas: "header header" "hero hero" "aside main" "footer footer";
@@ -328,6 +330,10 @@ header nav details a {
328330
border-block-end: 1px solid var(--c-border);
329331
padding: 1rem;
330332
}
333+
334+
main {
335+
overflow-y: scroll;
336+
}
331337
}
332338

333339
main {
@@ -379,6 +385,10 @@ footer div a:not([rel*=license]), footer div .copyright {
379385
}
380386

381387
@media screen and (min-width: 800px) {
388+
footer {
389+
position: sticky;
390+
}
391+
382392
footer div {
383393
line-height: 1.5;
384394
}

_layouts/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html lang="en">
33
{%- include head.html with_hero=true -%}
44

5-
<body>
5+
<body style="overflow-y: scroll;">
66
{%- include nav.html -%}
77

88
{%- include hero.html -%}
99

10-
<main id="main">
10+
<main id="main" style="overflow-y: visible;">
1111
{%- include article.html article=site.posts.first -%}
1212
</main>
1313

0 commit comments

Comments
 (0)