@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap'); /* default by bookdown - start here */ p.caption { color: #777; margin-top: 10px; } p code { white-space: pre; } pre { word-break: normal; word-wrap: normal; } pre code { white-space: pre; } /* default by bookdown - end here */ /* chapter title numbers */ .book-body h1 .header-section-number { font-size: 1.25em; } .book-body h1 .header-section-number:after { content: "\a"; } .book-body h1 .header-section-number:before { content: "CHAPTER "; } .book-body h1 .header-section-number { font-weight: inherit; white-space: pre-wrap; } /* all other chapter numbers */ .header-section-number, li { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* so no condensed bold */ font-weight: normal; } .header-section-number:after, li.chapter b:after{ content: "."; } .book .book-header h1 { /* title of book in header, make always visible */ transition: none; opacity: 1; color: black; } /* #contents * { font-family: "HelveticaNeue-Medium", "Helvetica Neue" !important; font-size: 1.1rem; } */ .book-body sup { /* inline references such as [1] */ font-size: 60% !important; } .book-body p { text-align: justify !important; /* font-weight: 500; */ } .book-body p code, .book-body li code { font-size: 1.3rem !important; white-space: unset; } .book-body p code:before, .book-body p code:after, .book-body li code:before, .book-body li code:after { content: "" !important; letter-spacing: normal !important; } .book-body .caption, .book-body .tbl-caption { color: black; font-size: 1.7rem !important; line-height: 1.2; } .book.color-theme-2 .book-body .caption, .book.color-theme-2 .book-body .tbl-caption { color: inherit; } .book-body .caption { margin-top: 0px !important; margin-bottom: 2.5em !important; } .book-body .tbl-caption { margin-top: 2.5em !important; margin-bottom: 0px !important; } .book-body .figure { /* this will only be in fig:fig chunks, not in fig:tbl chunks */ margin-top: 2.5em !important; } img[src*=-t] { /* this will only be in fig:tbl chunks, not in fig:fig chunks */ margin-bottom: 2.5em !important; } [id^="references"] li { /* stylise references */ text-align: justify !important; font-size: 1.6rem !important; } .book-body h1, .book-body h2 { font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue" !important; } .book-body h1 { font-size: 1.8em !important; } .book-body h2 { font-size: 1.25em !important; margin-bottom: 0.25rem !important; text-transform: uppercase; } .book-body h3 { font-family: "HelveticaNeue-Medium", "Helvetica Neue" !important; font-size: 1.1em !important; margin-bottom: 0 !important; } .book-body h4 .header-section-number { /* I didn't have numbers for level 4 */ display: none; } .book-body h4 { font-size: 1em !important; margin-bottom: 0px !important; font-style: italic !important; } .book-body .sourceCode.r span { color: black; } .book-body .sourceCode.r span .co { color: grey; font-style: normal !important; } .book-body pre, .book-body pre *, .book-body code, .book-body code * { font-family: "Fira Code",monospace !important; line-height: 2rem; background: #ebebeb !important; } .book-body p note { color: #9a99a2; font-variant: small-caps; } .book-body .title { font-size: 3em !important; margin-bottom: 0.2rem !important; text-align: center !important; } .book-body .subtitle { font-size: 1.8em !important; text-transform: none; margin-top: 0px !important; text-align: center !important; } .book.font-family-0 .book-body p.author, .book.font-family-1 .book-body p.author, .book.font-family-0 .book-body p.date, .book.font-family-1 .book-body p.date { font-family: "HelveticaNeue-Medium", "Helvetica Neue" !important; font-size: 1.25em !important; margin-top: 0 !important; margin-bottom: 0 !important; text-align: center !important; } .copyright { text-align: center; margin: 2rem; } /* MENU SETTINGS /* /* menu settings colour */ .book .book-body .section * { color: black; } .book.color-theme-2 .book-body .section * { color: inherit; } /* menu settings font family */ .book.font-family-0 .book-body p, .book.font-family-0 .book-body li { font-family: "Helvetica Neue", sans-serif !important; } .book.font-family-1 .book-body p, .book.font-family-1 .book-body li { font-family: 'EB Garamond', serif !important; } /* menu settings font size */ .book.font-size-0 .book-body p, .book.font-size-0 .book-body li { font-size: 1.0rem !important; } .book.font-size-1 .book-body p, .book.font-size-1 .book-body li { font-size: 1.4rem !important; } .book.font-size-2 .book-body p, .book.font-size-2 .book-body li { font-size: 1.8rem !important; } .book.font-size-3 .book-body p, .book.font-size-3 .book-body li { font-size: 2.8rem !important; } .book.font-size-4 .book-body p, .book.font-size-4 .book-body li { font-size: 4.0rem !important; }