:root { --font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Cantarell, Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; --font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace; --text-color: #212529; --border-color: rgba(0,0,0,0.2); --background-color: #f8f9fa; --well-color: #e9ecef; --accent-color: #1864ab; } @media (prefers-color-scheme: dark) { :root { --text-color: #f1f3f5; --background-color: #212529; --well-color: #343a40; --accent-color: #d0ebff; } } // Change these two variables for styling $baseline: 1.6; // Don't change this one, it's just to // make code more readable $lineheight: $baseline * 1rem; @mixin paragraph() { padding:0; margin:0; margin-bottom: $lineheight; } html { font-family: var(--font-family); text-align: left; font-size: 17px; background-color: var(--background-color); accent-color: var(--accent-color); } body { line-height: $lineheight; color: var(--text-color); font-weight: 400; max-width: 800px; padding:1rem; margin: auto; } strong { font-weight: 600; } em { font-style: italic; } a { color: var(--accent-color); text-decoration:none; } p, time { @include paragraph(); &:last-child { margin-bottom:0; } } ul, ol { @include paragraph(); ul { margin-bottom:0; } li { margin-left: $lineheight; } } /* sup, sub */ sup, sub { margin:0; padding:0; line-height:$lineheight; font-size: 0.8rem; vertical-align:baseline; position:relative; } sup { top: -$lineheight/4; } sub { top: $lineheight/4; } ::selection, ::-moz-selection { background: var(--accent-color); color: var(--background-color); } /* ------------------ TITLES ------------------- */ @mixin title($size, $weight) { font-size: $size; font-weight: $weight; } h1, h2, h3, h4, h5, h6 { text-align: left; line-height: 1; padding:0; margin:0; font-weight:400; margin-bottom: $lineheight; } h1 { @include title(2.3333333rem, 700); } h2 { @include title(2rem, 700); } h3 { @include title(1.5rem, 700); } h4 { @include title(1.5rem, 600); } h5 { @include title(1.333333rem, 600); } h6 { @include title(1.1rem, 600); } /* ------------------ HR ------------------- */ hr { border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 1px; border-color: var(--border-color); border-style: solid; padding:0; margin:0; margin-bottom: $lineheight; } /* ------------------ QUOTE ------------------- */ @mixin well() { border-width: 0 0 0 $lineheight/4; border-style: solid; border-radius: $lineheight/8; margin:0; margin-bottom: $lineheight; padding: $lineheight; font-size:1.1rem; max-width: 100%; overflow: auto; } blockquote { @include well(); border-color: var(--accent-color); background-color:var(--well-color); } pre { @include well(); border-color: var(--accent-color); background-color:var(--well-color); } code { background-color:var(--well-color); padding: 5px; border-radius: 3px; } /* ------------------ SPECIAL STYLING ------------------- */ mark { border-radius: 0.2em; padding:0 $lineheight/4 0 $lineheight/4; background-color:rgba(255,255,0,0.33); color: inherit; } /* ------------------ SPECIAL STYLING ------------------- */ .time { font-style: italic; text-align: right; width: 100%; display: block; font-size: 0.9rem; }