Merge branch 'patch-1'
This commit is contained in:
commit
3194c542ff
@ -28,7 +28,7 @@
|
|||||||
<main{% if templateClass %} class="{{ templateClass }}"{% endif %}>
|
<main{% if templateClass %} class="{{ templateClass }}"{% endif %}>
|
||||||
|
|
||||||
<!-- Delete this message -->
|
<!-- Delete this message -->
|
||||||
<div class="warning">
|
<div class="infobox">
|
||||||
<ol>
|
<ol>
|
||||||
<li>Edit the <code>_data/metadata.json</code> with your blog’s information.</li>
|
<li>Edit the <code>_data/metadata.json</code> with your blog’s information.</li>
|
||||||
<li>(Optional) Edit <code>.eleventy.js</code> with your <a href="https://www.11ty.dev/docs/config/">configuration preferences</a>.</li>
|
<li>(Optional) Edit <code>.eleventy.js</code> with your <a href="https://www.11ty.dev/docs/config/">configuration preferences</a>.</li>
|
||||||
|
@ -1,13 +1,37 @@
|
|||||||
/* Colors */
|
/* Defaults */
|
||||||
:root {
|
:root {
|
||||||
--lightgray: #e0e0e0;
|
--font-family: -apple-system, system-ui, sans-serif;
|
||||||
--gray: #C0C0C0;
|
--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;
|
||||||
--darkgray: #333;
|
|
||||||
--navy: #17050F;
|
|
||||||
--blue: #082840;
|
|
||||||
--white: #fff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Theme colors */
|
||||||
|
:root {
|
||||||
|
--color-gray-20: #e0e0e0;
|
||||||
|
--color-gray-50: #C0C0C0;
|
||||||
|
--color-gray-90: #333;
|
||||||
|
|
||||||
|
--background-color: #fff;
|
||||||
|
|
||||||
|
--text-color: var(--color-gray-90);
|
||||||
|
--text-color-link: #082840;
|
||||||
|
--text-color-link-visited: #17050F;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--color-gray-20: #e0e0e0;
|
||||||
|
--color-gray-50: #C0C0C0;
|
||||||
|
--color-gray-90: #dad8d8;
|
||||||
|
|
||||||
|
/* --text-color is assigned to --color-gray-_ above */
|
||||||
|
--text-color-link: #1493fb;
|
||||||
|
--text-color-link-visited: #a6a6f8;
|
||||||
|
|
||||||
|
--background-color: #15202b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Global stylesheet */
|
/* Global stylesheet */
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -17,10 +41,11 @@ html,
|
|||||||
body {
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: -apple-system, system-ui, sans-serif;
|
font-family: var(--font-family);
|
||||||
color: var(--darkgray);
|
color: var(--text-color);
|
||||||
background-color: var(--white);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
p:last-child {
|
p:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@ -33,12 +58,14 @@ p,
|
|||||||
.tmpl-post li {
|
.tmpl-post li {
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href] {
|
a[href] {
|
||||||
color: var(--blue);
|
color: var(--text-color-link);
|
||||||
}
|
}
|
||||||
a[href]:visited {
|
a[href]:visited {
|
||||||
color: var(--navy);
|
color: var(--text-color-link-visited);
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
@ -46,13 +73,14 @@ main :first-child {
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
border-bottom: 1px dashed var(--lightgray);
|
border-bottom: 1px dashed var(--color-gray-20);
|
||||||
}
|
}
|
||||||
header:after {
|
header:after {
|
||||||
content: "";
|
content: "";
|
||||||
display: table;
|
display: table;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
@ -63,7 +91,7 @@ table th {
|
|||||||
|
|
||||||
pre,
|
pre,
|
||||||
code {
|
code {
|
||||||
font-family: 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;
|
font-family: var(--font-family-monospace);
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
@ -78,7 +106,6 @@ pre {
|
|||||||
-o-tab-size: 2;
|
-o-tab-size: 2;
|
||||||
tab-size: 2;
|
tab-size: 2;
|
||||||
-webkit-hyphens: none;
|
-webkit-hyphens: none;
|
||||||
-moz-hyphens: none;
|
|
||||||
-ms-hyphens: none;
|
-ms-hyphens: none;
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
@ -141,7 +168,7 @@ code {
|
|||||||
.postlist-date,
|
.postlist-date,
|
||||||
.postlist-item:before {
|
.postlist-item:before {
|
||||||
font-size: 0.8125em; /* 13px /16 */
|
font-size: 0.8125em; /* 13px /16 */
|
||||||
color: var(--darkgray);
|
color: var(--color-gray-90);
|
||||||
}
|
}
|
||||||
.postlist-date {
|
.postlist-date {
|
||||||
word-spacing: -0.5px;
|
word-spacing: -0.5px;
|
||||||
@ -173,8 +200,8 @@ code {
|
|||||||
margin-left: 0.6666666666667em; /* 8px /12 */
|
margin-left: 0.6666666666667em; /* 8px /12 */
|
||||||
margin-top: 0.5em; /* 6px /12 */
|
margin-top: 0.5em; /* 6px /12 */
|
||||||
margin-bottom: 0.5em; /* 6px /12 */
|
margin-bottom: 0.5em; /* 6px /12 */
|
||||||
color: var(--darkgray);
|
color: var(--color-gray-90);
|
||||||
border: 1px solid var(--gray);
|
border: 1px solid var(--color-gray-50);
|
||||||
border-radius: 0.25em; /* 3px /12 */
|
border-radius: 0.25em; /* 3px /12 */
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
@ -185,18 +212,28 @@ a[href].post-tag:visited {
|
|||||||
}
|
}
|
||||||
a[href].post-tag:hover,
|
a[href].post-tag:hover,
|
||||||
a[href].post-tag:focus {
|
a[href].post-tag:focus {
|
||||||
background-color: var(--lightgray);
|
background-color: var(--color-gray-20);
|
||||||
}
|
}
|
||||||
.postlist-item > .post-tag {
|
.postlist-item > .post-tag {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Warning */
|
/* Infobox */
|
||||||
.warning {
|
:root {
|
||||||
background-color: #ffc;
|
--color-infobox: #ffc;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--color-infobox: #082840;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.infobox {
|
||||||
|
background-color: var(--color-infobox);
|
||||||
|
color: var(--color-gray-90);
|
||||||
padding: 1em 0.625em; /* 16px 10px /16 */
|
padding: 1em 0.625em; /* 16px 10px /16 */
|
||||||
}
|
}
|
||||||
.warning ol:only-child {
|
.infobox ol:only-child {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user