Update index.css

main
Crimson Tome 2021-10-20 15:50:34 +01:00 committed by GitHub
parent a4e6f74863
commit 62cb5e8510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 26 deletions

View File

@ -6,7 +6,6 @@
--navy: #17050F; --navy: #17050F;
--blue: #082840; --blue: #082840;
--white: #fff; --white: #fff;
--black: #000000;
} }
/* Global stylesheet */ /* Global stylesheet */
@ -19,19 +18,8 @@ body {
padding: 0; padding: 0;
margin: 0; margin: 0;
font-family: -apple-system, system-ui, sans-serif; font-family: -apple-system, system-ui, sans-serif;
/*color: var(--darkgray); color: var(--darkgray);
background-color: var(--white);*/ background-color: var(--white);
color: #eee;
background-color: #121212;
/* Dark theme */
@media (prefers-color-scheme: dark) {
body { background-color: #121212; color: #eee; }
}
/* Light theme */
@media (prefers-color-scheme: light),
(prefers-color-scheme: no-preference) {
body { background-color: #eee; color: #121212; }
}
} }
p:last-child { p:last-child {
margin-bottom: 0; margin-bottom: 0;
@ -46,14 +34,11 @@ p,
line-height: 1.45; line-height: 1.45;
} }
a[href] { a[href] {
/*color: var(--blue);*/ color: var(--blue);
color: #809fff;
} }
a[href]:visited { a[href]:visited {
/*(color: var(--navy);*/ color: var(--navy);
color: #809fff;
} }
main { main {
padding: 1rem; padding: 1rem;
} }
@ -61,7 +46,7 @@ main :first-child {
margin-top: 0; margin-top: 0;
} }
header { header {
border-bottom: 1px dashed #121212; border-bottom: 1px dashed var(--lightgray);
} }
header:after { header:after {
content: ""; content: "";
@ -80,7 +65,6 @@ 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: 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;
line-height: 1.5; line-height: 1.5;
background-color: #333;
} }
pre { pre {
font-size: 14px; font-size: 14px;
@ -99,8 +83,7 @@ pre {
hyphens: none; hyphens: none;
padding: 1em; padding: 1em;
margin: .5em 0; margin: .5em 0;
/*background-color: #f6f6f6;*/ background-color: #f6f6f6;
background-color: #333;
} }
code { code {
word-break: break-all; word-break: break-all;
@ -184,12 +167,11 @@ code {
content: "" counter(start-from, decimal-leading-zero) ". "; content: "" counter(start-from, decimal-leading-zero) ". ";
line-height: 100%; line-height: 100%;
text-align: right; text-align: right;
color: #d5cece;
} }
.postlist-date, .postlist-date,
.postlist-item:before { .postlist-item:before {
font-size: 0.8125em; /* 13px /16 */ font-size: 0.8125em; /* 13px /16 */
color: color: #d5cece; color: var(--darkgray);
} }
.postlist-date { .postlist-date {
word-spacing: -0.5px; word-spacing: -0.5px;