push my changes to new repo
This commit is contained in:
@ -1,23 +1,36 @@
|
||||
/* Defaults */
|
||||
:root {
|
||||
--font-family: -apple-system, system-ui, sans-serif;
|
||||
--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;
|
||||
}
|
||||
|
||||
/* Theme colors */
|
||||
/* Tokens */
|
||||
:root {
|
||||
/* Colors */
|
||||
--color-gray-20: #e0e0e0;
|
||||
--color-gray-50: #C0C0C0;
|
||||
--color-gray-90: #333;
|
||||
--color-gray-90: #333333;
|
||||
|
||||
--background-color: #fff;
|
||||
--background-color: #FAF5F5;
|
||||
|
||||
--text-color: var(--color-gray-90);
|
||||
--text-color-link: #082840;
|
||||
--text-color-link-active: #5f2b48;
|
||||
--text-color-link-visited: #17050F;
|
||||
--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) {
|
||||
@ -25,17 +38,17 @@
|
||||
--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: #1493fb;
|
||||
--text-color-link-active: #6969f7;
|
||||
--text-color-link-visited: #a6a6f8;
|
||||
--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;
|
||||
@ -46,6 +59,8 @@ 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);
|
||||
}
|
||||
@ -56,6 +71,15 @@ 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);
|
||||
@ -67,15 +91,39 @@ body {
|
||||
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 {
|
||||
line-height: 1.5;
|
||||
p, li {
|
||||
line-height: 1.75;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
li {
|
||||
line-height: 1.5;
|
||||
main > p > img, main > p > a > img {
|
||||
width: 100%;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.page-block {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
a[href] {
|
||||
@ -92,23 +140,26 @@ a[href]: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 dashed var(--color-gray-20);
|
||||
}
|
||||
header:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
border-bottom: 1px solid var(--color-gray-20);
|
||||
}
|
||||
|
||||
.links-nextprev {
|
||||
list-style: none;
|
||||
border-top: 1px dashed var(--color-gray-20);
|
||||
border-top: 1px solid var(--color-gray-20);
|
||||
padding: 1em 0;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
table {
|
||||
@ -147,56 +198,113 @@ header {
|
||||
display: flex;
|
||||
gap: 1em .5em;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
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 {
|
||||
display: flex;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.nav-icon {
|
||||
max-width: .5rem;
|
||||
margin-right: .5rem;
|
||||
}
|
||||
.nav-item {
|
||||
display: inline-block;
|
||||
margin-right: 1em;
|
||||
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"] {
|
||||
text-decoration: underline;
|
||||
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 {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
padding-left: 1.5rem;
|
||||
.postlist h2 {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.postlist-item-container {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
}
|
||||
.postlist-item {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
counter-increment: start-from -1;
|
||||
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;
|
||||
}
|
||||
.postlist-item:before {
|
||||
display: inline-block;
|
||||
pointer-events: none;
|
||||
content: "" counter(start-from, decimal-leading-zero) ". ";
|
||||
line-height: 100%;
|
||||
text-align: right;
|
||||
margin-left: -1.5rem;
|
||||
|
||||
.post-image-container {
|
||||
border-radius: var(--card-radius);
|
||||
margin-right: 1rem;
|
||||
overflow: hidden;
|
||||
height: 10em;
|
||||
}
|
||||
.postlist-date,
|
||||
.postlist-item:before {
|
||||
@ -209,40 +317,115 @@ header {
|
||||
.postlist-link {
|
||||
font-size: 1.1875em; /* 19px /16 */
|
||||
font-weight: 700;
|
||||
flex-basis: calc(100% - 1.5rem);
|
||||
padding-left: .25em;
|
||||
padding-right: .5em;
|
||||
text-underline-position: from-font;
|
||||
text-underline-offset: 0;
|
||||
text-decoration-thickness: 1px;
|
||||
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 {
|
||||
.post-tag, .taglist li a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-transform: capitalize;
|
||||
font-style: italic;
|
||||
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;
|
||||
margin: 0;
|
||||
padding: 0 0 0 .4em;
|
||||
font-size: .8em;
|
||||
margin-bottom: 5em;
|
||||
}
|
||||
.post-metadata time {
|
||||
margin-right: 1em;
|
||||
margin-right: .5em;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
@media(max-width: 556px) {
|
||||
.post-metadata {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
/* Direct Links / Markdown Headers */
|
||||
|
Reference in New Issue
Block a user