From d8be83b96b9de01a65a7b8b4dd80efe68510290d Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Thu, 18 May 2023 15:01:02 -0500 Subject: [PATCH] Tweak css styles --- r4ds.scss | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/r4ds.scss b/r4ds.scss index bed1393..3c53e9d 100644 --- a/r4ds.scss +++ b/r4ds.scss @@ -1,6 +1,7 @@ /*-- scss:defaults --*/ $primary: #637238 !default; +$font-size-root: 18px !default; /*-- scss:rules --*/ @@ -22,19 +23,20 @@ img.quarto-cover-image { /* Headings ------------------------------------------------------ */ +#title-block-header.quarto-title-block.default .quarto-title h1.title { + margin-bottom: 0.5rem; +} + h2 { margin-top: 2rem; margin-bottom: 1rem; - font-size: 1.5rem; + font-size: 1.4rem; + font-weight: 600; } -h3 { margin-top: 1.5em; font-size: 1.2rem; } +h3 { margin-top: 1.5em; font-size: 1.2rem; font-weight: 500; } h4 { margin-top: 1.5em; font-size: 1.1rem; } h5 { margin-top: 1.5em; font-size: 1rem; } -h1, h2, h3, h4, h5 { - line-height: 1.3; -} - .quarto-section-identifier { color: #6C6C6C; font-weight: normal; @@ -54,23 +56,3 @@ code a:any-link { pre { background-image: linear-gradient(160deg,#f8f8f8 0,#f1f1f1 100%); } - -/* Printing ------------------------------------------------ */ - -@media print { - :root { - font-size: 11pt; - } - #quarto-sidebar, #TOC, .nav-page { - display: none; - } - .page-columns .content { - grid-column-start: page-start; - } - .fixed-top { - position: relative; - } - .panel-caption, .figure-caption, figcaption { - color: #666; - } -}