/*-- scss:defaults --*/ // Fonts — IBM Plex, one superfamily in three roles. Designed for // technical documentation, which is what this is. $web-font-path: "https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap"; $font-family-sans-serif: "IBM Plex Sans", system-ui, -apple-system, sans-serif; $font-family-serif: "IBM Plex Serif", Georgia, serif; $font-family-monospace: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; $font-size-root: 17px; $line-height-base: 1.66; // Palette — cool technical, teal structure with an ochre warning accent. $body-bg: #fbfcfd; $body-color: #1b2430; $link-color: #20666f; $primary: #20666f; $secondary: #5a6879; $code-bg: #eef3f7; $code-color: #1b2430; $code-block-bg: #eef3f7; $border-color: #dae0e8; $toc-color: #5a6879; $toc-active-border:#20666f; // Callout colours — Exam trap (amber) and Note (teal). $callout-color-warning: #8a5a08; $callout-color-note: #20666f; /*-- scss:rules --*/ body { font-family: $font-family-serif; } // Headings, sidebar, tables and code all use the sans/mono faces. h1, h2, h3, h4, h5, h6, .sidebar, .quarto-title-block, #quarto-margin-sidebar, .callout-title, table, .quarto-figure figcaption { font-family: $font-family-sans-serif; } h1, h2, h3 { letter-spacing: -0.015em; } h1 { font-weight: 600; } h2 { font-weight: 600; border-bottom: 1px solid $border-color; padding-bottom: .3rem; margin-top: 2.6rem; } h3 { font-weight: 600; color: $primary; margin-top: 1.9rem; } p, li { max-width: 78ch; } // ---- tables --------------------------------------------------------- // The book is table-heavy; keep them airy, hairline-ruled, scrollable. .table-wrapper, .cell-output-display { overflow-x: auto; } table { font-size: .89rem; border-collapse: collapse; width: 100%; margin: 1.3rem 0; } thead th { color: $primary; font-weight: 600; text-align: left; border-bottom: 2px solid $border-color !important; padding: .55rem .8rem .55rem 0; vertical-align: bottom; } tbody td { border-bottom: 1px solid $border-color; padding: .5rem .8rem .5rem 0; vertical-align: top; } tbody tr:last-child td { border-bottom: none; } th:last-child, td:last-child { padding-right: 0; } // ---- code ----------------------------------------------------------- pre, code { font-family: $font-family-monospace; } code { font-size: .86em; } div.sourceCode, pre { border: 1px solid $border-color; border-radius: 4px; } pre code { font-size: .83rem; line-height: 1.5; } // ---- callouts ------------------------------------------------------- // Flat left-bar boxes rather than Quarto's default cards. .callout { border-radius: 0 3px 3px 0; border-left-width: 3px !important; margin: 1.4rem 0; } .callout.callout-style-default > .callout-header { background: transparent; font-family: $font-family-sans-serif; font-weight: 600; font-size: .88rem; padding-bottom: .1rem; } .callout-body p { max-width: 74ch; } .callout-warning { background-color: #f8f1e0; border-left-color: $callout-color-warning !important; .callout-title, .callout-icon::before { color: $callout-color-warning; } } .callout-note { background-color: #e5eff1; border-left-color: $callout-color-note !important; .callout-title, .callout-icon::before { color: $callout-color-note; } } // ---- blockquotes ---------------------------------------------------- blockquote { border-left: 3px solid $primary; padding-left: 1.2rem; color: $body-color; font-style: normal; } // ---- sidebar -------------------------------------------------------- .sidebar-item-text { font-size: .86rem; } .sidebar nav[role="doc-toc"] ul > li > a.active { font-weight: 600; } // ---- print ---------------------------------------------------------- // Printing the HTML is a fallback; the PDF format is the real print path. @media print { .sidebar, #quarto-margin-sidebar, .nav-page, #quarto-header { display: none !important; } body { font-size: 10.5pt; } h1 { break-before: page; } table, pre, .callout { break-inside: avoid; } }