Skip to content

No breakpoints truly responsive #10

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

Merged
merged 3 commits into from
Jan 29, 2021
Merged
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
1 change: 1 addition & 0 deletions .eleventyignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
README.md
docs
43 changes: 13 additions & 30 deletions _includes/styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
html {
/* weird issues with body not encompassing all */
background-color: #113134;
}

html,
body {
position: fixed;
width: 100%;
height: 100%;
background-color: #113134;
margin: 0;
padding: 0;
}
Expand All @@ -14,7 +18,7 @@ main {
/* https://caniuse.com/#feat=css-overscroll-behavior */
overscroll-behavior: none;
margin: 0;
padding: 0;
padding: 0 10vw 0 10vw;
height: 90vh;
display: flex;
flex-direction: column;
Expand All @@ -26,20 +30,23 @@ main {
}

h1 {
font-size: 4vmax;
font-size: 5vmax;
margin: 0;
}

h2 {
padding-top: 0.5em;
font-size: 2vmax;
font-size: 3vmax;
margin: 0;
}

a {
font-size: 2vmax;
padding: 10px;
font-size: 3vmax;
color: #ffcfb8;
text-decoration: none;
min-width: 300px;
text-align: center;
}

a:hover {
Expand All @@ -61,29 +68,5 @@ hr {
footer {
display: flex;
justify-content: space-around;
}

@media (max-width: 800px) {
main {
padding: 0 10vw 0 10vw;
}
a {
padding: 10px;
}

footer {
flex-direction: column;
align-items: center;
}
h1 {
font-size: 6vmax;
}

h2 {
font-size: 3vmax;
}

a {
font-size: 3vmax;
}
flex-flow: row wrap;
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="google-site-verification" content="Ufu6ARR8Anx86xdNZ39V76Bnp0_zo5lwVgAWNTLlmbQ"/>

<style>
body,html{position:fixed;width:100%;height:100%;background-color:#113134;margin:0;padding:0}main{color:#fff;overscroll-behavior:none;margin:0;padding:0;height:90vh;display:flex;flex-direction:column;justify-content:center;padding:0 20vw 0 20vw;font-family:-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif}h1{font-size:4vmax;margin:0}h2{padding-top:.5em;font-size:2vmax;margin:0}a{font-size:2vmax;color:#ffcfb8;text-decoration:none}a:hover{text-decoration:underline}#hr-container{padding:2em 0 2em 0;margin:0}hr{border:none;border-bottom:.5px dashed #4a5568;margin:0;padding:0}footer{display:flex;justify-content:space-around}@media (max-width:800px){main{padding:0 10vw 0 10vw}a{padding:10px}footer{flex-direction:column;align-items:center}h1{font-size:6vmax}h2{font-size:3vmax}a{font-size:3vmax}}
html{background-color:#113134}body,html{position:fixed;width:100%;height:100%;margin:0;padding:0}main{color:#fff;overscroll-behavior:none;margin:0;padding:0 10vw 0 10vw;height:90vh;display:flex;flex-direction:column;justify-content:center;padding:0 20vw 0 20vw;font-family:-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif}h1{font-size:5vmax;margin:0}h2{padding-top:.5em;font-size:3vmax;margin:0}a{padding:10px;font-size:3vmax;color:#ffcfb8;text-decoration:none;min-width:300px;text-align:center}a:hover{text-decoration:underline}#hr-container{padding:2em 0 2em 0;margin:0}hr{border:none;border-bottom:.5px dashed #4a5568;margin:0;padding:0}footer{display:flex;justify-content:space-around;flex-flow:row wrap}
</style>
<link rel="manifest" href="/manifest.json"/>
<link rel="canonical" href="https://jackhowa.com"/>
Expand Down