mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-18 22:15:32 -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)
62 lines
919 B
SCSS
62 lines
919 B
SCSS
@charset "UTF-8";
|
|
|
|
// Archive/List Styles
|
|
main#list {
|
|
max-width: 980px;
|
|
padding: 1.5em 1.5em 0.25em 1.5em;
|
|
margin: 0 auto;
|
|
|
|
section.year {
|
|
font-size: 1.05em;
|
|
|
|
h2 {
|
|
font-size: 2.25em;
|
|
letter-spacing: -0.025em;
|
|
margin-top: 0;
|
|
margin-bottom: 0.4em;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding-left: 0;
|
|
display: block;
|
|
}
|
|
|
|
li {
|
|
display: flex;
|
|
letter-spacing: -0.011em;
|
|
line-height: 1.75;
|
|
margin-bottom: 1em;
|
|
|
|
div.date {
|
|
width: 5.25em;
|
|
flex-shrink: 0;
|
|
|
|
@include themed() {
|
|
color: t(color-medium);
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
margin-bottom: 1.6em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Responsive
|
|
@mixin responsive--list() {
|
|
main#list {
|
|
padding: 1em 1em 0.25em 1em;
|
|
|
|
section.year {
|
|
font-size: 1em;
|
|
|
|
h2 {
|
|
font-size: 2em;
|
|
}
|
|
}
|
|
}
|
|
}
|