/* fonts */ /* overpass-100normal - latin */ @font-face { font-family: 'Overpass'; font-style: normal; font-weight: 100; src: local('Overpass Thin '), local('Overpass-Thin'), url('fonts/overpass/overpass-latin-100.woff2') format('woff2'); } /* overpass-300normal - latin */ @font-face { font-family: 'Overpass'; font-style: normal; font-weight: 300; src: local('Overpass Light '), local('Overpass-Light'), url('fonts/overpass/overpass-latin-300.woff2') format('woff2'); } /* overpass-400normal - latin */ @font-face { font-family: 'Overpass'; font-style: normal; font-weight: 400; src: local('Overpass Light '), local('Overpass-Light'), url('fonts/overpass/overpass-latin-400.woff2') format('woff2'); } /* overpass-700normal - latin */ @font-face { font-family: 'Overpass'; font-style: normal; font-weight: 700; src: local('Overpass Bold '), local('Overpass-Bold'), url('fonts/overpass/overpass-latin-700.woff2') format('woff2'); } /* fira-mono-400normal - latin */ @font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400; src: local('Fira Mono Regular '), local('Fira Mono-Regular'), url('fonts/fira-mono/fira-mono-latin-400.woff2') format('woff2'); } /* roboto-400normal - latin */ @font-face { font-family: 'Roboto'; font-style: normal; font-display: swap; font-weight: 400; src: local('Roboto Regular '), local('Roboto-Regular'), url('fonts/roboto/roboto-latin-400.woff2') format('woff2'); } /* roboto-400italic - latin */ @font-face { font-family: 'Roboto'; font-style: italic; font-display: swap; font-weight: 400; src: local('Roboto Regular italic'), local('Roboto-Regularitalic'), url('fonts/roboto/roboto-latin-400italic.woff2') format('woff2'); } /* roboto-500normal - latin */ @font-face { font-family: 'Roboto'; font-style: normal; font-display: swap; font-weight: 500; src: local('Roboto Medium '), local('Roboto-Medium'), url('fonts/roboto/roboto-latin-500.woff2') format('woff2'); } /* roboto-500italic - latin */ @font-face { font-family: 'Roboto'; font-style: italic; font-display: swap; font-weight: 500; src: local('Roboto Medium italic'), local('Roboto-Mediumitalic'), url('fonts/roboto/roboto-latin-500italic.woff2') format('woff2'); } body { --font: 'Overpass', sans-serif; /* --font: 'Roboto', 'sans-serif'; */ /* --font-mono: 'Overpass Mono', monospace; */ /* --font-mono: 'IBM Plex Mono'; */ --font-mono: 'Fira Mono'; --font-ui: var(--font-mono); --font-system: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; } /* base reset ----------------------------- */ html { font-size: 62.5%; -ms-text-size-adjust: 62.5%; -webkit-text-size-adjust: 62.5%; -ms-overflow-style: -ms-autohiding-scrollbar; box-sizing: border-box; border-collapse: collapse; } * { box-sizing: inherit; margin: 0; padding: 0; } /* links reset ---------------------------- */ a { text-decoration: none; cursor: pointer; color: inherit; } a:hover, a:active { color: var(--flash); } a:focus { outline: none } /* ----------------------------------------------- global styles NOTE – !important overrides class-definitions - some vars change inside media-queries! ----------------------------------------------- */ /* constants and calc ----------------------- - commonly used values - under normal conditions, there's no need to touch these - look confusing/cluttering at first, but they simplify life immensely ----------------------------------------------- */ :root { --nav-h: 6rem; --top-offset: 6rem; --sidebar-w: 24rem; --main-width: 80rem; --code-w: 72em; --side-nav: 1.6rem; --side-page: var(--side-nav); /* easings */ --in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); --out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); --inout-cubic: cubic-bezier(0.645, 0.045, 0.355, 1); --in-back: cubic-bezier(0.6, -0.28, 0.735, 0.045); --out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275); --inout-back: cubic-bezier(0.68, -0.55, 0.265, 1.55); } /* theme vars ----------------------------- */ .theme-default { --back: #ffffff; --back-light: #fbfcfd; --prime: #ff3e00; --second: #676778; --flash: #40b3ff; --heading: var(--second); --text: #333; /* hsl(36, 3%, 62%) */ --border-w: .3rem; /* border-width */ --border-r: .4rem; /* border-radius */ } /* typo vars ------------------------------ */ .typo-default { --unit: .8rem; --code-fs: 1.3rem; --h6: 1.6rem; --h5: 1.6rem; --h4: 1.8rem; --h3: 2.4rem; --h2: 3rem; --h1: 3.2rem; --linemax: 42em; /* max line-length */ --lh: calc(4/2.2); /* base line-height */ } /* typography ----------------------------- */ body { font: 400 var(--h4)/var(--lh) var(--font); background-color: var(--back); color: var(--text); } h1, h2, h3, h4, h5, h6, blockquote { margin: 0; color: var(--heading); position: relative; } h1, h2, h3, h4, h5, h6 { font-weight: 700 } h6 { font-size: var(--h6) } h5 { font-size: var(--h5) } h4 { font-size: var(--h4) } h3 { font-size: var(--h3) } h2 { font-size: var(--h2) } h1 { font-size: var(--h1) } p, ol, ul { line-height: 1.5; margin: 0 0 1em 0; font-family: Roboto, sans-serif; -webkit-font-smoothing: antialiased; /* font-family: var(--font-system); */ } .b, b, strong { font-weight: 500 } tt, code, kbd, samp { font: 400 var(--code-fs)/1.7 var(--font-mono); } code { position: relative; border-radius: 0.3em; white-space: nowrap; /* border-top: .1rem solid #e5e5e9; border-left: .1rem solid #e5e5e9; */ /* color: inherit; */ color: #444; -webkit-font-smoothing: initial; } pre code { top: 0; white-space: inherit; background-color: none; } ::selection { background: var(--flash); color: white; } /* opinionated styles --------------------- */ h1, h2 { font-family: var(--font); line-height: 1.2; } li:not(.white) > h2 { color: var(--second) } blockquote { position: relative; margin: 1.6rem 0 2.4rem; padding: 2rem 2.4rem 1.8rem 2.4rem; border-radius: var(--border-r); font-family: var(--font); max-width: var(--linemax); } blockquote p { font-size: var(--h5); } blockquote :last-child { margin: 0; } /* buttons -------------------------------- */ button { font-family: inherit; font-size: inherit; background-color: transparent; border: none; color: currentColor; } button:focus { outline: 0 } button[disabled] { opacity: .55; pointer-events: none; } button > svg { position: relative; top: -.1rem; width: 2rem !important; height: 2rem !important; } /* options */ button[outline] { min-height: var(--bttn-calc-h); line-height: var(--bttn-calc-h); border: var(--bttn-outline) solid currentColor; background-color: white; color: currentColor; } /* links ------------------------------------- - idea from https://up.docs.apex.sh How can this be solved? Setup for all links is risky/tricky We need global -styles and