From a7ab7d97c292345b6912388941c513beee2d8387 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 21 Feb 2024 09:47:20 +0100 Subject: move stylesheets to subdir styles/ --- _draft.yml | 2 +- _quarto.yml | 4 ++-- styles-draft.css | 18 ------------------ styles.scss | 37 ------------------------------------- styles/draft.css | 18 ++++++++++++++++++ styles/main.scss | 37 +++++++++++++++++++++++++++++++++++++ 6 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 styles-draft.css delete mode 100644 styles.scss create mode 100644 styles/draft.css create mode 100644 styles/main.scss diff --git a/_draft.yml b/_draft.yml index 7e36d3d..67a282d 100644 --- a/_draft.yml +++ b/_draft.yml @@ -1,6 +1,6 @@ format: html: - css: ../styles-draft.css + css: ../styles/draft.css pdf: include-in-header: - text: | diff --git a/_quarto.yml b/_quarto.yml index c9aa398..e822670 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -42,8 +42,8 @@ format: html: default-image-extension: svg theme: - light: [flatly, styles.scss] - dark: [darkly, styles.scss] + light: [flatly, styles/main.scss] + dark: [darkly, styles/main.scss] toc: true # override colors otherwise inherited from html theme diff --git a/styles-draft.css b/styles-draft.css deleted file mode 100644 index f79d452..0000000 --- a/styles-draft.css +++ /dev/null @@ -1,18 +0,0 @@ -/* css styles */ -body:before{ - content: 'UDKAST'; - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: -1; - color: #ff0000; - font-size: 200px; - font-weight: 500px; - display: grid; - justify-content: center; - align-content: center; - opacity: 0.2; - transform: rotate(-45deg); -} diff --git a/styles.scss b/styles.scss deleted file mode 100644 index 15b340b..0000000 --- a/styles.scss +++ /dev/null @@ -1,37 +0,0 @@ -// origin: https://stackoverflow.com/a/75470197/18619283 - -/*-- scss:defaults --*/ - -// avoid web-loading internally declared default Bootswatch font -$web-font-path: ""; - -// fix apply font family setting seemingly missed by quarto -$font-family-sans-serif: "Cabin"; - -// use sans-serif for headers and menus -$headings-font-family: $font-family-sans-serif; -$display-font-family: $font-family-sans-serif; -$input-btn-font-family: $font-family-sans-serif; - -/*-- scss:mixins --*/ - -@mixin font-face($name, $style, $weight, $basedir, $file) { - @font-face { - font-display: swap; - font-family: #{$name}; - font-style: #{$style}; - font-weight: #{$weight}; - src: url("fonts/#{$basedir}/woff2/#{$file}.woff2") format("woff2"), - url("fonts/#{$basedir}/opentype/#{$file}.otf") format("opentype"); - } -} - -/*-- scss:rules --*/ - -@include font-face(ETbb, normal, 400, etbb, ETbb-Regular); -@include font-face(ETbb, italic, 400, etbb, ETbb-Italic); -@include font-face(ETbb, normal, 700, etbb, ETbb-Bold); -@include font-face(ETbb, italic, 700, etbb, ETbb-BoldItalic); - -@include font-face(Cabin, normal, "400 700", cabin, "Cabin-Regular-VF"); -@include font-face(Cabin, italic, "400 700", cabin, "Cabin-Italic-VF"); diff --git a/styles/draft.css b/styles/draft.css new file mode 100644 index 0000000..f79d452 --- /dev/null +++ b/styles/draft.css @@ -0,0 +1,18 @@ +/* css styles */ +body:before{ + content: 'UDKAST'; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: -1; + color: #ff0000; + font-size: 200px; + font-weight: 500px; + display: grid; + justify-content: center; + align-content: center; + opacity: 0.2; + transform: rotate(-45deg); +} diff --git a/styles/main.scss b/styles/main.scss new file mode 100644 index 0000000..15b340b --- /dev/null +++ b/styles/main.scss @@ -0,0 +1,37 @@ +// origin: https://stackoverflow.com/a/75470197/18619283 + +/*-- scss:defaults --*/ + +// avoid web-loading internally declared default Bootswatch font +$web-font-path: ""; + +// fix apply font family setting seemingly missed by quarto +$font-family-sans-serif: "Cabin"; + +// use sans-serif for headers and menus +$headings-font-family: $font-family-sans-serif; +$display-font-family: $font-family-sans-serif; +$input-btn-font-family: $font-family-sans-serif; + +/*-- scss:mixins --*/ + +@mixin font-face($name, $style, $weight, $basedir, $file) { + @font-face { + font-display: swap; + font-family: #{$name}; + font-style: #{$style}; + font-weight: #{$weight}; + src: url("fonts/#{$basedir}/woff2/#{$file}.woff2") format("woff2"), + url("fonts/#{$basedir}/opentype/#{$file}.otf") format("opentype"); + } +} + +/*-- scss:rules --*/ + +@include font-face(ETbb, normal, 400, etbb, ETbb-Regular); +@include font-face(ETbb, italic, 400, etbb, ETbb-Italic); +@include font-face(ETbb, normal, 700, etbb, ETbb-Bold); +@include font-face(ETbb, italic, 700, etbb, ETbb-BoldItalic); + +@include font-face(Cabin, normal, "400 700", cabin, "Cabin-Regular-VF"); +@include font-face(Cabin, italic, "400 700", cabin, "Cabin-Italic-VF"); -- cgit v1.2.3