aboutsummaryrefslogtreecommitdiff
path: root/styles/main.scss
blob: a07aec4f56c0bad1d69dd1292ac6e46fb19c5c56 (plain)
  1. // origin: https://stackoverflow.com/a/75470197/18619283
  2. /*-- scss:defaults --*/
  3. // avoid web-loading internally declared default Bootswatch font
  4. $web-font-path: "";
  5. // fix apply font family setting seemingly missed by quarto
  6. $font-family-sans-serif: "Cabin";
  7. // use sans-serif for headers and menus
  8. $headings-font-family: $font-family-sans-serif;
  9. $display-font-family: $font-family-sans-serif;
  10. $input-btn-font-family: $font-family-sans-serif;
  11. @import "sdml";
  12. @include sdml;
  13. /*-- scss:mixins --*/
  14. @mixin font-face($name, $style, $weight, $basedir, $file) {
  15. @font-face {
  16. font-display: swap;
  17. font-family: #{$name};
  18. font-style: #{$style};
  19. font-weight: #{$weight};
  20. src: url("fonts/#{$basedir}/woff2/#{$file}.woff2") format("woff2"),
  21. url("fonts/#{$basedir}/opentype/#{$file}.otf") format("opentype");
  22. }
  23. }
  24. /*-- scss:rules --*/
  25. @include font-face(ETbb, normal, 400, etbb, ETbb-Regular);
  26. @include font-face(ETbb, italic, 400, etbb, ETbb-Italic);
  27. @include font-face(ETbb, normal, 700, etbb, ETbb-Bold);
  28. @include font-face(ETbb, italic, 700, etbb, ETbb-BoldItalic);
  29. @include font-face(Cabin, normal, "400 700", cabin, "Cabin-Regular-VF");
  30. @include font-face(Cabin, italic, "400 700", cabin, "Cabin-Italic-VF");
  31. @include font-face(InconsolataN, normal, 400, inconsolata, InconsolataN-Regular);
  32. @include font-face(InconsolataN, normal, 700, inconsolata, InconsolataN-Bold);
  33. q {
  34. quotes: "„" "”" "‚" "’";
  35. }