-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scroll guides menu independently #174
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,8 +76,9 @@ main *, .hero * { | |
|
||
body { | ||
background-color: var(--c-bg); | ||
min-height: 100vh; | ||
height: 100vh; | ||
display: grid; | ||
overflow-y: scroll; | ||
grid-template-rows: var(--header-height) min-content auto auto min-content; | ||
grid-template-columns: 1fr; | ||
grid-template-areas: "header" "hero" "main" "aside" "footer"; | ||
|
@@ -142,6 +143,7 @@ main :is(h2, h3, h4, h5, h6) a:hover::before { | |
|
||
@media screen and (min-width: 800px) { | ||
body { | ||
overflow-y: hidden; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this feels like a bad idea, why hide it? |
||
grid-template-columns: min-content 8fr; | ||
grid-template-rows: 4rem min-content auto min-content; | ||
grid-template-areas: "header header" "hero hero" "aside main" "footer footer"; | ||
|
@@ -328,6 +330,10 @@ header nav details a { | |
border-block-end: 1px solid var(--c-border); | ||
padding: 1rem; | ||
} | ||
|
||
main { | ||
overflow-y: scroll; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer |
||
} | ||
} | ||
|
||
main { | ||
|
@@ -379,6 +385,10 @@ footer div a:not([rel*=license]), footer div .copyright { | |
} | ||
|
||
@media screen and (min-width: 800px) { | ||
footer { | ||
position: sticky; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. using position: sticky without an inset (top/bottom/left/right) feels odd, it's got no place to stick to. what's the desired effect? |
||
} | ||
|
||
footer div { | ||
line-height: 1.5; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<html lang="en"> | ||
{%- include head.html with_hero=true -%} | ||
|
||
<body> | ||
<body style="overflow-y: scroll;"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style="" really shouldn't be used, put it in the appropriate <style> tag |
||
{%- include nav.html -%} | ||
|
||
{%- include hero.html -%} | ||
|
||
<main id="main"> | ||
<main id="main" style="overflow-y: visible;"> | ||
{%- include article.html article=site.posts.first -%} | ||
</main> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feels like this will have the effect that the footer will always be on screen? instead of being off screen on long pages?