Skip to content

Commit

Permalink
Fix footer on iOS Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
yochem committed Aug 19, 2024
1 parent 71f2299 commit e034759
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
48 changes: 35 additions & 13 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ body {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100svh;
}

header, main, footer {
header,
main,
footer {
margin: 30px auto;
max-width: 55ch;
}
Expand All @@ -39,16 +42,11 @@ main {
width: 100%;
}

@media screen and (max-width: 440px) {
header, main, footer {
max-width: 90%;
}
}

footer {
width: 100%;
margin-top: 0;
margin-bottom: calc(3em + env(safe-area-inset-bottom));
margin-bottom: 3em;

& nav {
display: grid;
grid-template-columns: 1fr repeat(20, auto);
Expand Down Expand Up @@ -81,6 +79,19 @@ footer {

}

@media screen and (max-width: 440px) {

header,
main,
footer {
max-width: 90%;
}

footer {
margin-bottom: 1em;
}
}

hr {
border-color: var(--bg-color);
}
Expand All @@ -104,7 +115,9 @@ h1 a {
text-decoration: none;
}

ol, ul, p {
ol,
ul,
p {
margin-top: 0;
margin-bottom: 1em;
}
Expand All @@ -121,11 +134,17 @@ ol {
list-style-position: outside;
}

ul ul, ol ol {
ul ul,
ol ol {
margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: bold;
margin-bottom: 0.1em;
Expand All @@ -141,7 +160,7 @@ h3 {

time {
color: var(--detail-color);
font-style: italic;
font-style: italic;
}

code {
Expand All @@ -153,7 +172,8 @@ code {
overflow-x: auto;
}

:not(pre) > code::before, :not(pre) > code::after {
:not(pre)>code::before,
:not(pre)>code::after {
content: '`';
color: var(--detail-color);
}
Expand Down Expand Up @@ -182,9 +202,11 @@ blockquote {
--code-color: black;
--detail-color: black;
}

body {
font-size: 10pt;
}

nav {
display: none;
}
Expand Down
3 changes: 3 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Disallow: /404.html
Disallow: /contact/

0 comments on commit e034759

Please sign in to comment.