Skip to content

Commit

Permalink
Don't shade header on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
apexskier committed Oct 25, 2020
1 parent ba3c2f7 commit 98cc4be
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions assets/css/main.css
Expand Up @@ -357,16 +357,6 @@ li:target {
& #headerish > * {
transition: opacity 200ms ease-in-out;
}

html[data-type="photos"] & {
& #headerish > * {
opacity: 0.2;

&:hover {
opacity: 0.8;
}
}
}
}

#primary-header {
Expand Down Expand Up @@ -1211,6 +1201,11 @@ pre code {
}
}

/*
Most of this relates to css scroll snapping, which is pretty cool
One big issue is dealing with vh and the toolbar/header resizing on iOS. I haven't really done much
but hope Apple makes it better
*/
html[data-type="photos"][data-kind="section"] {
/* Ensure the body element scrolls. In Chrome it's the html element by default; in Safari it's body */

Expand All @@ -1230,6 +1225,16 @@ html[data-type="photos"][data-kind="section"] {
& #headerish {
padding-top: 1.5em;
scroll-snap-align: start;

@media only screen and (min-width: 45em) {
& > * {
opacity: 0.2;

&:hover {
opacity: 0.8;
}
}
}
}

& footer {
Expand Down

0 comments on commit 98cc4be

Please sign in to comment.