2020-07-13 21:26:05 +00:00
|
|
|
// dark mode preference
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
body {
|
|
|
|
background: var(--bg-dark);
|
|
|
|
color: var(--text-dark);
|
|
|
|
}
|
|
|
|
header {
|
|
|
|
border-top-color: var(--border-dark);
|
|
|
|
h1 {
|
|
|
|
a {
|
|
|
|
color: var(--text-dark-hl);
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
color: var(--text-subdued-dark);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-07-17 16:00:18 +00:00
|
|
|
a,
|
|
|
|
b {
|
2020-07-13 21:26:05 +00:00
|
|
|
color: var(--link-color-dark);
|
2020-07-17 16:00:18 +00:00
|
|
|
}
|
|
|
|
p a:hover {
|
|
|
|
border-bottom: 2px solid var(--link-color-dark);
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
main {
|
|
|
|
aside {
|
|
|
|
h1 {
|
|
|
|
background: var(--text-title-dark);
|
|
|
|
background: linear-gradient(135deg, $blue-lt 0%, $purple-lt 67%);
|
2020-07-14 18:00:38 +00:00
|
|
|
-webkit-background-clip: text;
|
2020-07-13 21:26:05 +00:00
|
|
|
background-clip: text;
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
article {
|
2020-08-14 16:23:35 +00:00
|
|
|
h2 {
|
2020-07-13 21:26:05 +00:00
|
|
|
color: var(--text-dark-hl);
|
|
|
|
}
|
2020-08-14 16:23:35 +00:00
|
|
|
h3 {
|
|
|
|
color: var(--h3-dark);
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
blockquote {
|
|
|
|
p {
|
|
|
|
border-left-color: var(--border-dark);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-13 21:02:34 +00:00
|
|
|
&#list {
|
|
|
|
section + section {
|
|
|
|
border-top-color: var(--border-dark);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
footer {
|
2020-07-14 16:46:08 +00:00
|
|
|
section#author.border::before {
|
|
|
|
background: var(--bg-dark);
|
|
|
|
}
|
|
|
|
}
|
2020-08-13 21:02:34 +00:00
|
|
|
#toc {
|
|
|
|
background: rgba(0,0,0,.75);
|
|
|
|
&::before {
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d6d7df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%0A%3E%3Cline x1='8' y1='6' x2='21' y2='6' /%3E%3Cline x1='8' y1='12' x2='21' y2='12' /%3E%3Cline x1='8' y1='18' x2='21' y2='18' /%3E%3Cline x1='3' y1='6' x2='3.01' y2='6' /%3E%3Cline x1='3' y1='12' x2='3.01' y2='12' /%3E%3Cline x1='3' y1='18' x2='3.01' y2='18' /%3E%3C/svg%3E%0A");
|
|
|
|
}
|
|
|
|
}
|
2020-07-14 16:46:08 +00:00
|
|
|
ul.tags li a {
|
|
|
|
background: var(--border-dark);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--link-color-dark);
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
2020-08-14 16:23:35 +00:00
|
|
|
span.tag {
|
|
|
|
background: var(--border-dark);
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|