454 lines
8.0 KiB
CSS
454 lines
8.0 KiB
CSS
/* Defaults */
|
|
:root {
|
|
--font-family: Manrope;
|
|
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
|
|
}
|
|
|
|
/* Tokens */
|
|
:root {
|
|
/* Colors */
|
|
--color-gray-20: #e0e0e0;
|
|
--color-gray-50: #C0C0C0;
|
|
--color-gray-90: #333333;
|
|
|
|
--background-color: #FAF5F5;
|
|
|
|
--text-color: var(--color-gray-90);
|
|
--text-color-link: var(--color-gray-90);
|
|
--text-color-link-active: rgba(3,144,116,1);
|
|
--text-color-link-visited: var(--color-gray-90);
|
|
|
|
--contrast-color: rgba(3,144,116,1);
|
|
|
|
--nav-pill-background-color-active: rgba(3,144,116,1);
|
|
--nav-pill-background-color-inactive: rgba(71,71,71,1);
|
|
|
|
--nav-pill-text-color: rgba(255,255,255,1);
|
|
--nav-pill-text-color-link-visited: rgba(255,255,255,1);
|
|
--nav-pill-text-color-link-active: rgba(255,255,255,1);
|
|
|
|
/* Space & Size */
|
|
--syntax-tab-size: 2;
|
|
--pill-radius: 5rem;
|
|
--card-radius: .3rem;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--color-gray-20: #e0e0e0;
|
|
--color-gray-50: #C0C0C0;
|
|
--color-gray-90: #dad8d8;
|
|
--card-color: #333333;
|
|
|
|
/* --text-color is assigned to --color-gray-_ above */
|
|
--text-color-link: rgba(3,144,116,1);
|
|
--text-color-link-active: rgba(3,144,116,1);
|
|
--text-color-link-visited: rgba(3,144,116,1);
|
|
|
|
--background-color: #15202b;
|
|
}
|
|
}
|
|
|
|
/* Global stylesheet */
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
margin: 0 auto;
|
|
font-family: var(--font-family);
|
|
font-weight: 300;
|
|
font-variant-Ligatures: normal;
|
|
color: var(--text-color);
|
|
background-color: var(--background-color);
|
|
}
|
|
html {
|
|
overflow-y: scroll;
|
|
}
|
|
body {
|
|
max-width: 40em;
|
|
}
|
|
|
|
a {
|
|
text-decoration: wavy underline;
|
|
text-decoration-color: var(--contrast-color);
|
|
text-decoration-thickness: .1rem;
|
|
text-decoration-skip: none;
|
|
transition: all .5s;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* https://www.a11yproject.com/posts/how-to-hide-content/ */
|
|
.visually-hidden {
|
|
clip: rect(0 0 0 0);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: 1px;
|
|
}
|
|
|
|
h1 {
|
|
font-family: 'Playfair Display';
|
|
font-weight: 700;
|
|
font-size: 3.75rem;
|
|
font-style: normal;
|
|
line-height: 4rem;
|
|
padding-top: 3rem;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
@media(max-width: 556px) {
|
|
h1 {
|
|
font-size: 3rem;
|
|
padding-top: 0;
|
|
}
|
|
}
|
|
|
|
p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
p, li {
|
|
line-height: 1.75;
|
|
font-size: 14pt;
|
|
}
|
|
|
|
main > p > img, main > p > a > img {
|
|
width: 100%;
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.page-block {
|
|
margin-top: 3rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
a[href] {
|
|
color: var(--text-color-link);
|
|
}
|
|
a[href]:visited {
|
|
color: var(--text-color-link-visited);
|
|
}
|
|
a[href]:hover,
|
|
a[href]:active {
|
|
color: var(--text-color-link-active);
|
|
}
|
|
|
|
main {
|
|
padding: 1rem;
|
|
}
|
|
|
|
main h2 {
|
|
font-weight: 700;
|
|
font-size: 2em;
|
|
margin-top: 2em;
|
|
}
|
|
|
|
main :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
header {
|
|
border-bottom: 1px solid var(--color-gray-20);
|
|
}
|
|
|
|
.links-nextprev {
|
|
list-style: none;
|
|
border-top: 1px solid var(--color-gray-20);
|
|
padding: 1em 0;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
table {
|
|
margin: 1em 0;
|
|
}
|
|
table td,
|
|
table th {
|
|
padding-right: 1em;
|
|
}
|
|
|
|
pre,
|
|
code {
|
|
font-family: var(--font-family-monospace);
|
|
}
|
|
pre:not([class*="language-"]) {
|
|
margin: .5em 0;
|
|
line-height: 1.375; /* 22px /16 */
|
|
-moz-tab-size: var(--syntax-tab-size);
|
|
-o-tab-size: var(--syntax-tab-size);
|
|
tab-size: var(--syntax-tab-size);
|
|
-webkit-hyphens: none;
|
|
-ms-hyphens: none;
|
|
hyphens: none;
|
|
direction: ltr;
|
|
text-align: left;
|
|
white-space: pre;
|
|
word-spacing: normal;
|
|
word-break: normal;
|
|
}
|
|
code {
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
display: flex;
|
|
gap: 1em .5em;
|
|
flex-wrap: wrap;
|
|
align-items: end;
|
|
padding: 1em;
|
|
}
|
|
@media(max-width: 556px) {
|
|
header {
|
|
padding: 1rem .5rem 1rem .5rem;
|
|
}
|
|
}
|
|
|
|
.home-link {
|
|
font-size: 1em; /* 16px /16 */
|
|
font-weight: 700;
|
|
margin-right: 2em;
|
|
display: flex;
|
|
align-items: end;
|
|
}
|
|
.home-link:link:not(:hover) {
|
|
text-decoration: none;
|
|
}
|
|
.home-link img {
|
|
width: 3rem;
|
|
}
|
|
|
|
/* Nav */
|
|
.nav {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
.nav-icon {
|
|
max-width: .5rem;
|
|
margin-right: .5rem;
|
|
}
|
|
.nav-item {
|
|
display: inline-block;
|
|
margin-right: 2em;
|
|
margin-bottom: 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: .2rem;
|
|
font-size: .6rem;
|
|
font-weight: 500;
|
|
background-color: var(--nav-pill-background-color-inactive);
|
|
padding: .55em .85em .55em 1.2em;
|
|
border-radius: .75em;
|
|
color: var(--nav-pill-text-color);
|
|
transition: all .5s;
|
|
}
|
|
.subscribe:hover {
|
|
background-color: rgba(225,90,0,1);
|
|
color: var(--nav-pill-text-color);
|
|
}
|
|
.nav-item a[href]:visited {
|
|
color: var(--nav-pill-text-color-link-visited);
|
|
}
|
|
.nav-item a[href]:hover {
|
|
text-decoration: none;
|
|
color: var(--nav-pill-text-color);
|
|
}
|
|
.nav-item a[href]:not(:hover) {
|
|
text-decoration: none;
|
|
color: var(--nav-pill-text-color);
|
|
}
|
|
.nav-item[data-currentpage="true"] {
|
|
background-color: var(--nav-pill-background-color-active);
|
|
}
|
|
|
|
.nav a[href][aria-current="page"] {
|
|
background-color: var(--nav-pill-background-color-active);
|
|
color: var(--nav-pill-text-color);
|
|
}
|
|
|
|
@media(max-width: 556px) {
|
|
.nav {
|
|
flex-flow: row wrap;
|
|
}
|
|
.nav-item {
|
|
margin-right: 1rem;
|
|
margin-bottom: .5rem;
|
|
}
|
|
}
|
|
|
|
/* Posts list */
|
|
.postlist h2 {
|
|
margin-bottom: 2rem;
|
|
}
|
|
.postlist-item-container {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
}
|
|
.postlist-item {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
margin-bottom: 1em;
|
|
width: 100%;
|
|
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
|
|
padding: 1rem 1.1rem 1rem 1.1rem;
|
|
border-radius: var(--card-radius);
|
|
background-color: white;
|
|
}
|
|
|
|
.post-image-container {
|
|
border-radius: var(--card-radius);
|
|
margin-right: 1rem;
|
|
overflow: hidden;
|
|
height: 10em;
|
|
}
|
|
.postlist-date,
|
|
.postlist-item:before {
|
|
font-size: 0.8125em; /* 13px /16 */
|
|
color: var(--color-gray-90);
|
|
}
|
|
.postlist-date {
|
|
word-spacing: -0.5px;
|
|
}
|
|
.postlist-link {
|
|
font-size: 1.1875em; /* 19px /16 */
|
|
font-weight: 700;
|
|
padding-right: .5em;
|
|
text-decoration: none;
|
|
}
|
|
.postlist-link h3 {
|
|
margin-bottom: 0;
|
|
}
|
|
.postlist-item-active .postlist-link {
|
|
font-weight: bold;
|
|
}
|
|
.post-copy {
|
|
display: flex;
|
|
flex-flow: column wrap;
|
|
}
|
|
.post-image {
|
|
width: 10em;
|
|
height: 10em;
|
|
object-fit: cover;
|
|
object-position: 50% 50%;
|
|
}
|
|
|
|
@media(max-width: 556px) {
|
|
.postlist {
|
|
padding-top: 0;
|
|
}
|
|
.postlist-item {
|
|
flex-flow: column wrap;
|
|
}
|
|
.postlist-link {
|
|
padding: 0;
|
|
}
|
|
.post-copy a h3 {
|
|
margin-top: .5em;
|
|
}
|
|
.post-image {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
.post-image-container {
|
|
margin-right: 0;
|
|
height: 10em;
|
|
min-width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.postlist-item {
|
|
background-color: var(--card-color);
|
|
}
|
|
}
|
|
|
|
/* Tags */
|
|
.post-tag, .taglist li a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-transform: capitalize;
|
|
background-color: var(--color-gray-20);
|
|
text-decoration: none;
|
|
padding: .2rem .4rem .2rem .4rem;
|
|
border-radius: var(--pill-radius);
|
|
font-size: .75rem;
|
|
}
|
|
.taglist {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
}
|
|
.taglist li {
|
|
margin: 0em .5em 1.25em 0em;
|
|
}
|
|
.taglist li a {
|
|
font-size: 1.25rem;
|
|
text-decoration-color: var(--contrast-color);
|
|
text-decoration-thickness: .1rem;
|
|
text-decoration-skip: none;
|
|
transition: all .5s;
|
|
font-weight: 700;
|
|
padding: .4rem .8rem .4rem .8rem;
|
|
}
|
|
.postlist-item > .post-tag {
|
|
align-self: center;
|
|
}
|
|
@media(max-width: 556px) {
|
|
.taglist {
|
|
flex-flow: column nowrap;
|
|
}
|
|
}
|
|
|
|
/* Tags list */
|
|
.post-metadata {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: .5em;
|
|
list-style: none;
|
|
padding: 0 0 0 .4em;
|
|
font-size: .8em;
|
|
margin-bottom: 5em;
|
|
}
|
|
.post-metadata time {
|
|
margin-right: .5em;
|
|
font-size: 1em;
|
|
}
|
|
|
|
@media(max-width: 556px) {
|
|
.post-metadata {
|
|
margin-bottom: 1em;
|
|
}
|
|
}
|
|
|
|
/* Direct Links / Markdown Headers */
|
|
.header-anchor {
|
|
text-decoration: none;
|
|
font-style: normal;
|
|
font-size: 1em;
|
|
margin-left: .1em;
|
|
}
|
|
a[href].header-anchor,
|
|
a[href].header-anchor:visited {
|
|
color: transparent;
|
|
}
|
|
a[href].header-anchor:focus,
|
|
a[href].header-anchor:hover {
|
|
text-decoration: underline;
|
|
}
|
|
a[href].header-anchor:focus,
|
|
:hover > a[href].header-anchor {
|
|
color: #aaa;
|
|
}
|
|
|
|
h2 + .header-anchor {
|
|
font-size: 1.5em;
|
|
}
|