/*-- scss:defaults --*/ // PRIME Q — Quarto theme. Works for both revealjs slides and HTML documents, // so an analysis and the deck that presents it share one file. // // quarto render przyklad-pl.qmd → slides // quarto render raport-pl.qmd → document // // The typeface comes from primeq.pl, which self-hosts it; a locally installed // Inter is used first, Arial last. $primeq-navy: #041e42; $primeq-navy-deep: #02142d; $primeq-red: #e11d2e; $primeq-slate: #6b7280; $primeq-line: #e5e7eb; $primeq-tint: #f7f8fa; $primeq-ink: #1f2937; $font-family-sans-serif: "Inter", Arial, sans-serif !default; $presentation-font-size-root: 30px !default; $body-bg: #fff !default; $body-color: $primeq-ink !default; $link-color: $primeq-red !default; $primary: $primeq-navy !default; $presentation-heading-font: $font-family-sans-serif !default; $presentation-heading-color: $primeq-navy !default; $presentation-heading-font-weight: 700 !default; $presentation-h1-font-size: 2.0em !default; $presentation-h2-font-size: 1.35em !default; $presentation-h3-font-size: 1.05em !default; $code-block-bg: $primeq-tint !default; $table-border-color: $primeq-line !default; /*-- scss:rules --*/ @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: local("Inter"), url("https://primeq.pl/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; } @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: local("Inter"), url("https://primeq.pl/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F; } h1, h2, h3, h4 { letter-spacing: -0.016em; } // The rule that opens a slide: a hairline with a short red lead-in. .reveal section > h2 { padding-bottom: 0.32em; border-bottom: 1px solid $primeq-line; margin-bottom: 0.8em; position: relative; &::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 2.4em; height: 3px; background: $primeq-red; } } // The bullet is the slash off the Q. .reveal ul { list-style: none; margin-left: 0; li { position: relative; padding-left: 1.1em; margin-bottom: 0.55em; &::before { content: "/"; position: absolute; left: 0; color: $primeq-red; font-weight: 700; } } ul li { color: $primeq-slate; font-size: 0.85em; &::before { content: "\2013"; color: $primeq-slate; font-weight: 400; } } } .reveal ol li::marker { color: $primeq-red; font-weight: 700; } .reveal blockquote { border-left: 3px solid $primeq-red; background: none; box-shadow: none; padding: 0.2em 0 0.2em 0.8em; color: $primeq-navy; font-style: normal; font-weight: 600; } .reveal table { th { background: $primeq-navy; color: #fff; font-weight: 700; } th, td { border-bottom: 1px solid $primeq-line; padding: 0.4em 0.6em; } tbody tr:nth-child(even) { background: $primeq-tint; } } .reveal .slide-number { color: $primeq-slate; font-size: 0.5em; } .reveal .footer { color: $primeq-slate; font-size: 0.5em; } // A section divider: put ::: {.section} around it, or use `.section` on the h1. .reveal section.section-divider, .reveal .section-divider { background: $primeq-navy-deep; color: #fff; h1, h2 { color: #fff; } .eyebrow { color: $primeq-red; letter-spacing: 0.08em; font-weight: 700; } } // One line, nothing else. .reveal .statement { text-align: center; h1, h2 { border: 0; } h2::after { display: none; } p { color: $primeq-slate; } } // The legal notice, which every outgoing deck keeps. .reveal .legal, .legal { font-size: 0.62em; color: $primeq-slate; line-height: 1.6; ul li::before { content: ""; } ul li { padding-left: 0; } } // ---- the same tokens, for a rendered document rather than slides ---- body:not(.reveal-viewport) { color: $primeq-ink; font-family: $font-family-sans-serif; h1, h2, h3 { color: $primeq-navy; } h2 { border-bottom: 1px solid $primeq-line; padding-bottom: 0.3rem; } a { color: $primeq-red; } blockquote { border-left: 3px solid $primeq-red; color: $primeq-navy; } table th { background: $primeq-navy; color: #fff; } .callout { border-left-color: $primeq-red !important; } }