gomesite/css/style.css

267 lines
4.5 KiB
CSS

html {
color: #323a42;
background-color: #efe5d7;
font-family: 'Palatino Linotype', Lora, serif;
max-width: 70ch;
margin: 1em auto;
line-height: 1.2;
font-size: 1.25em;
height: calc(100vh - 2em);
position: relative;
}
*::selection {
background: #eab77533;
}
header {
margin-bottom: 1em;
}
nav {
display: flex;
margin-left: -0.25em;
}
nav a {
font-size: 0.85em;
left: 0;
padding: 0.25em 0.5em;
margin: -0.25em;
}
body {
margin: 0;
margin-left: 1rem;
height: 100%;
display: flex;
flex-direction: column;
background-color: #efe5d7;
}
main {
flex-grow: 1;
margin-right: 1rem;
display: flex;
flex-direction: column;
}
a {
color: #323a42;
text-decoration: underline;
position: relative;
margin: -0.25em;
padding: 0.25em;
border-radius: 2px;
}
a:hover, a:focus {
color: #6d747a;
outline: 0;
}
a:focus-visible {
outline: 1px dashed #beb0b1;
}
.socials p {
font-size: 16px;
margin: 0 0 0.5em 22px;
}
.socials .social-link {
display: flex;
align-items: flex-end;
line-height: 1;
margin-right: -1em;
}
.socials .social-link a {
display: inline-block;
width: fit-content;
margin-bottom: 0.25em;
left: -0.25em;
text-decoration: none;
}
.socials .social-link a::before {
content: '⇒ ';
}
.line {
display: inline-block;
background-color: #323a42;
height: 2px;
position: relative;
}
.socials .line {
flex-grow: 2;
bottom: 12px;
}
.line.stop-0 {
background-color: #984624;
}
.line.stop-1 {
background-color: #ad5f1e;
}
.line.stop-2 {
background-color: #c59506;
}
.line.stop-3 {
background-color: #c8b500;
}
.line.stop-4 {
background-color: #8ea530;
}
.line.stop-5 {
background-color: #4b7b52;
}
.line.stop-6 {
background-color: #426153;
}
.socials p a {
padding: 0 2px;
margin: 0 -2px;
/* change this */
left: 0;
text-decoration: underline;
}
.socials p a:before {
content: initial;
}
h1 {
font-size: 2em;
margin: 0 -0.5em 0.5em 0;
border-bottom: 2px solid #323a42;
font-family: Optima, 'Palatino Linotype', Lora, serif;
font-weight: normal;
}
h2, h3, ul, ol, p, main img {
margin: 0 0 1em 0;
}
main img {
border: 1px solid #323a42;
border-radius: 2px;
padding: 2px;
margin: 0 auto 1em auto;
max-width: 100%;
height: auto;
}
footer {
margin-right: 1em;
margin-top: 1em;
}
footer img {
display: block;
margin: 0 auto;
max-width: 100%;
max-height: 160px;
width: auto;
height: auto;
user-select: none;
}
.rss-link {
display: inline-block;
font-size: 0.9em;
margin-bottom: 1em;
margin-left: auto;
}
.recipe {
font-variant-numeric: oldstyle-nums;
display: flex;
flex-direction: column;
}
.recipe ul {
list-style: none;
}
.recipe ol li::marker {
font-variant-numeric: oldstyle-nums;
}
.recipe li {
margin-bottom: 0.3em;
}
a.journal-link {
display: grid;
text-decoration: none;
grid-template-columns: auto auto 1fr;
margin-right: -1em;
padding-right: 0;
border: 1px solid #323a42;
box-shadow: 1px 1px #323a42;
border-radius: 3px;
}
a.journal-link:hover, a.journal-link:focus {
outline: 0;
border-color: #6d747a;
box-shadow: 2px 2px #6d747a;
}
a.journal-link h3 {
margin: 0 0.5em 0 0;
}
a.journal-link p {
grid-column: 1 / span 2;
margin: 0.5em 5px 0.5em 0;
}
a.journal-link .line {
grid-column: span 2;
align-self: end;
bottom: 6px;
}
a.journal-link time {
grid-column: span 2;
}
time {
font-size: 0.9em;
color: #4E5458;
font-style: italic;
font-variant-numeric: oldstyle-nums;
}
article time {
display: block;
margin-bottom: 1em;
}
a:hover time, a:focus time {
color: #6d747a;
}
a.journal-link time + p {
margin-top: 5px;
}
a.journal-link + a.journal-link {
margin-top: 1em;
}
article .note {
font-style: italic;
color: #4E5458;
}
article .note a {
color: #4E5458;
}
article figure {
margin: 0 0 1em 0;
}
article figure img {
margin: 0;
}
article figure figcaption, article figure figcaption a {
font-size: 0.9rem;
color: #4E5458;
font-style: italic;
font-variant-numeric: oldstyle-nums;
}
.page-nav {
margin-top: 1em;
display: flex;
justify-content: space-between;
}
.page-nav a {
font-size: 1.25em;
line-height: 1;
text-decoration: none;
}
.page-nav a.prev {
margin-left: 4px;
}
.page-nav a.next {
margin-left: auto;
}
.footnote {
font-size: 0.8em;
}
@media only screen and (max-width: 700px) {
a.journal-link {
border-right: none;
box-shadow: 0 1px #323a42;
border-radius: 3px 0 0 3px;
}
a.journal-link:hover, a.journal-link:focus {
box-shadow: 0 2px #6d747a;
}
}