mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-18 22:05:29 -04:00
* 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)
65 lines
903 B
SCSS
65 lines
903 B
SCSS
@charset "UTF-8";
|
|
|
|
// Post Styles
|
|
main#single {
|
|
max-width: $max-width;
|
|
padding: 1em 1.5em;
|
|
margin: 0 auto;
|
|
|
|
div#meta {
|
|
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;
|
|
}
|
|
|
|
span.dash {
|
|
margin: 0 0.7em;
|
|
}
|
|
}
|
|
|
|
h1#title {
|
|
margin-top: 0.3em;
|
|
margin-bottom: 0.6em;
|
|
font-size: 2.2em;
|
|
line-height: 1.3;
|
|
font-weight: 700;
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
div#comments {
|
|
margin-top: 1.5em;
|
|
padding-top: 0.5em;
|
|
|
|
@include themed() {
|
|
border-top: 2px solid t(color-light);
|
|
}
|
|
|
|
div.utterances {
|
|
max-width: unset;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Responsive
|
|
@mixin responsive--single() {
|
|
main#single {
|
|
padding: 0.8em 1.1em;
|
|
|
|
h1#title {
|
|
margin-top: 0.5em;
|
|
font-size: 1.8em;
|
|
}
|
|
}
|
|
}
|