mestizo.monster/assets/css/layout.css
taco f1b8097978 feat: migrate to 11ty (#1)
alas, hugo. we hardly knew ye.

Reviewed-on: https://git.tacowolf.net/TacoWolf/mestizo.monster/pulls/1
Co-authored-by: taco <signing@tacowolf.net>
Co-committed-by: taco <signing@tacowolf.net>
2026-04-10 19:48:32 -04:00

208 lines
3 KiB
CSS

body {
display: flex;
flex-direction: column;
margin: 0 auto;
padding-top: 1em;
}
main {
margin-top: 1em;
padding: 1em;
width: 100%;
border-radius: 0.42em;
}
header {
width: 100%;
display: flex;
justify-content: start;
align-content: center;
a {
width: 15%;
}
nav {
border-radius: 0.42em;
width: 100%;
display: flex;
padding: 0 1em;
h1 {
align-content: center;
}
ul {
align-content: center;
padding-left: 0;
li {
font-size: 1.5em;
padding: 0.5em 0 0.5em 0.5em;
list-style: none;
display: inline-block;
a {
text-decoration: none;
}
}
}
}
}
main {
figure {
img {
margin: 0 auto;
width: 420px;
border-radius: 0.42em;
}
figcaption {
text-align: center;
font-style: italic;
}
margin: 2em auto;
}
}
article {
figure {
img {
width: 96%;
}
}
}
section {
nav {
margin-top: 1em;
padding: 1em;
border-radius: 0.42em;
}
}
article {
padding: 0.5em;
hgroup {
ul {
list-style: none;
padding: 0;
text-align: justify;
}
}
nav {
ol {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: space-between;
li:first-of-type {
text-align: left;
}
li:last-of-type {
text-align: right;
}
}
}
}
blockquote {
margin: 1em;
padding: 1em;
font-style: italic;
border-radius: 0.42em;
}
p {
padding-top: 1em;
padding-bottom: 1em;
}
footer {
padding-top: 1em;
font-size: 0.75em;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
p {
padding: 0.5em;
}
}
@media only screen and (max-width: 576px) {
main {
figure {
img {
width: 69vw;
}
}
}
body {
width: 95%;
}
header {
justify-content: space-between;
nav {
padding: 0;
margin: 0;
h1 {
display: none;
padding: 0;
margin: 0;
}
ul {
padding-right: 1em;
}
display: flex;
width: auto;
justify-content: center;
}
}
}
@media only screen and (min-width: 577px) and (max-width: 768px) {
body {
width: 80%;
nav {
justify-content: space-between;
ul {
li {
font-size: 1em;
}
}
}
}
}
@media only screen and (min-width: 769px) and (max-width: 1024px) {
body {
width: 666px;
nav {
justify-content: space-between;
ul {
li {
font-size: 1.2em;
}
}
}
}
}
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
body {
width: 666px;
nav {
justify-content: space-between;
ul {
li {
font-size: 1.3em;
}
}
}
}
}
@media only screen and (min-width: 1441px) {
body {
width: 666px;
nav {
justify-content: space-between;
}
}
}