1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-27 19:15:48 -04:00

dark mode 😎 (#112)

* prepare dark mode stuffs

* themed all global colors

* store preference in local storage

* toggle styling

* lightbulb position

* minify bundled script with uglify-js instead of hugo

* detect whether user has an OS-wide dark mode preference and use that by default

* two different colors for each homepage link

* inline bulb SVGs into stylesheet

* fingerprint and cache styles for a year

* fix lightbulb positioning with weird magic numbers, will come back to that

* themed syntax highlighting

* use terser instead of uglify-js (b/c of ES6)
This commit is contained in:
2020-04-20 15:04:30 -04:00
committed by GitHub
parent b53574f3ef
commit b13da8e05b
27 changed files with 477 additions and 176 deletions

View File

@@ -7,12 +7,15 @@ main#single {
margin: 0 auto;
div#meta {
color: $color-medium;
font-size: 0.85em;
line-height: 1.3;
letter-spacing: 0.04em;
margin-top: 0.8em;
@include themed() {
color: t(color-medium);
}
a {
color: inherit;
}
@@ -37,7 +40,10 @@ main#single {
div#comments {
margin-top: 1.5em;
padding-top: 0.5em;
border-top: 2px solid $color-light;
@include themed() {
border-top: 2px solid t(color-light);
}
div.utterances {
max-width: unset;
@@ -45,7 +51,6 @@ main#single {
}
}
// Responsive
@mixin responsive--single() {
main#single {