mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 16:30:28 -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)
116 lines
1.7 KiB
SCSS
116 lines
1.7 KiB
SCSS
@charset "UTF-8";
|
|
|
|
div#content {
|
|
font-size: 0.935em; // ~15px
|
|
letter-spacing: -0.008em;
|
|
line-height: 1.7;
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
margin-top: 1.25em;
|
|
margin-bottom: 0.5em;
|
|
letter-spacing: 0.001em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
h2 {
|
|
padding-bottom: 0.25em;
|
|
|
|
@include themed() {
|
|
border-bottom: 1px solid t(color-kinda-light);
|
|
}
|
|
}
|
|
|
|
p.image img,
|
|
figure img {
|
|
height: auto;
|
|
max-width: 100%;
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
figure {
|
|
margin: 1em auto;
|
|
|
|
img {
|
|
margin-bottom: 0.4em;
|
|
}
|
|
|
|
// image captions
|
|
figcaption {
|
|
font-size: 0.95em;
|
|
text-align: center;
|
|
|
|
@include themed() {
|
|
color: t(color-medium);
|
|
}
|
|
}
|
|
}
|
|
|
|
ul {
|
|
margin-left: 1em;
|
|
padding-left: 0;
|
|
|
|
li {
|
|
padding-left: 0.25em;
|
|
}
|
|
}
|
|
|
|
div.embed {
|
|
&.video {
|
|
video {
|
|
display: block;
|
|
margin: 1em auto;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
&.tweet {
|
|
// stylelint-disable-next-line selector-type-no-unknown
|
|
twitter-widget,
|
|
iframe.twitter-tweet {
|
|
margin: 0 auto;
|
|
display: block;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
&.youtube {
|
|
position: relative;
|
|
padding-bottom: 56.25%;
|
|
margin: 1em auto;
|
|
height: 0;
|
|
overflow: hidden;
|
|
|
|
iframe.youtube-player {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: inline-block;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
&.gh-buttons {
|
|
text-align: center;
|
|
}
|
|
|
|
&.codepen {
|
|
iframe {
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Responsive
|
|
@mixin responsive--content() {
|
|
// stylelint-disable-block block-no-empty
|
|
}
|