summaryrefslogtreecommitdiff
path: root/styles.scss
blob: 7bbec8aa27aefbe60019956eb1dd470ae90f67e1 (plain)
  1. // origin: https://stackoverflow.com/a/75470197/18619283
  2. /*-- scss:defaults --*/
  3. // use broken white as background color
  4. $body-bg: #eeebe3;
  5. $primary: #336666;
  6. // avoid web-loading internally declared default Bootswatch font
  7. $web-font-path: "";
  8. // fix apply font family setting seemingly missed by quarto
  9. $font-family-sans-serif: "Cabin";
  10. // use sans-serif for headers and menus
  11. $headings-font-family: $font-family-sans-serif;
  12. $display-font-family: $font-family-sans-serif;
  13. $input-btn-font-family: $font-family-sans-serif;
  14. /*-- scss:mixins --*/
  15. @mixin font-face($name, $style, $weight, $basedir, $file) {
  16. @font-face {
  17. font-display: swap;
  18. font-family: #{$name};
  19. font-style: #{$style};
  20. font-weight: #{$weight};
  21. src: url("fonts/#{$basedir}/woff2/#{$file}.woff2") format("woff2"),
  22. url("fonts/#{$basedir}/opentype/#{$file}.otf") format("opentype");
  23. }
  24. }
  25. /*-- scss:rules --*/
  26. @include font-face(ETbb, normal, 400, etbb, ETbb-Regular);
  27. @include font-face(ETbb, italic, 400, etbb, ETbb-Italic);
  28. @include font-face(ETbb, normal, 700, etbb, ETbb-Bold);
  29. @include font-face(ETbb, italic, 700, etbb, ETbb-BoldItalic);
  30. @include font-face(Cabin, normal, "400 700", cabin, "Cabin-Regular-VF");
  31. @include font-face(Cabin, italic, "400 700", cabin, "Cabin-Italic-VF");
  32. .navbar-title {
  33. font-weight: bold;
  34. }
  35. h2,
  36. h3 {
  37. margin-bottom: unset;
  38. padding-bottom: unset;
  39. border-bottom: unset;
  40. }
  41. q {
  42. quotes: "„" "”" "‚" "’";
  43. }
  44. .callout {
  45. font-family: $font-family-sans-serif;
  46. }