style: Attempt to make the design more responsive
This should help with small viewports, for example on mobile. The desktop layout, while suboptimal, should have worked with mobile devices but some browsers don't display things properly.master
parent
69a39b4c38
commit
5efdb262cb
|
@ -15,9 +15,15 @@ html {
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 90%;
|
width: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
@media screen and (min-width: 48rem) {
|
||||||
|
body {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* TODO: media query, use entire width on small viewports */
|
/* TODO: media query, use entire width on small viewports */
|
||||||
|
|
||||||
|
@ -42,12 +48,17 @@ p, pre, ul {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-bottom: 0.9em;
|
margin-bottom: 0.9em;
|
||||||
|
|
||||||
width: 80%;
|
width: 98%;
|
||||||
max-width: 720px;
|
max-width: 720px;
|
||||||
|
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
list-style-type: disclosure-closed;
|
list-style-type: disclosure-closed;
|
||||||
}
|
}
|
||||||
|
@media screen and (min-width: 48rem) {
|
||||||
|
p, ul {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
li ul {
|
li ul {
|
||||||
margin-left: 2em;
|
margin-left: 2em;
|
||||||
|
@ -83,8 +94,24 @@ p.copyright {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
width: 80ch;
|
max-width: 80ch;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
|
overflow: scroll;
|
||||||
|
|
||||||
|
/*
|
||||||
|
Workaround for extending off screen on small viewports bc I cba
|
||||||
|
to figure it out properly
|
||||||
|
*/
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 48rem) {
|
||||||
|
pre {
|
||||||
|
/*
|
||||||
|
Get rid of scrollbars on browsers that show them regardless of
|
||||||
|
whether the content fits on screen or not
|
||||||
|
*/
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.terminal {
|
pre.terminal {
|
||||||
|
|
Loading…
Reference in New Issue