summaryrefslogtreecommitdiff
path: root/styles.scss
blob: 39a3282d263dc843628eca63b5fe8ba715d8193b (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. /*-- scss:mixins --*/
  6. @mixin font-face($name, $style, $weight, $basedir, $file) {
  7. @font-face {
  8. font-display: swap;
  9. font-family: #{$name};
  10. font-style: #{$style};
  11. font-weight: #{$weight};
  12. src: url("fonts/#{$basedir}/woff2/#{$file}.woff2") format("woff2"),
  13. url("fonts/#{$basedir}/opentype/#{$file}.otf") format("opentype");
  14. }
  15. }
  16. /*-- scss:rules --*/
  17. @include font-face(ETbb, normal, 400, etbb, ETbb-Regular);
  18. @include font-face(ETbb, italic, 400, etbb, ETbb-Italic);
  19. @include font-face(ETbb, normal, 700, etbb, ETbb-Bold);
  20. @include font-face(ETbb, italic, 700, etbb, ETbb-BoldItalic);