You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_fonts.scss 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Not included automatically, only if $v-font-family specifies them
  2. @import "open-sans/open-sans";
  3. @import "source-sans-pro/source-sans-pro";
  4. @import "roboto/roboto";
  5. @import "lato/lato";
  6. @import "lora/lora";
  7. $v-font-awesome: true !default;
  8. $fontawesome-pathPrefix: null;
  9. @if $v-relative-paths == true {
  10. $fontawesome-pathPrefix: "../../../";
  11. }
  12. @mixin valo-fonts {
  13. // Valo Icons
  14. @include v-font(ThemeIcons, "#{$fontawesome-pathPrefix}../base/fonts/themeicons-webfont");
  15. @if $v-font-awesome {
  16. @include v-font(FontAwesome, "#{$fontawesome-pathPrefix}../base/fonts/fontawesome-webfont");
  17. }
  18. }
  19. @mixin v-font($font-family, $file-name) {
  20. @include font-face($font-family, $file-name);
  21. .#{$font-family} {
  22. font-family: #{$font-family};
  23. font-style: normal;
  24. font-weight: normal;
  25. -webkit-font-smoothing: antialiased;
  26. -moz-osx-font-smoothing: grayscale;
  27. display: inline-block;
  28. text-align: center;
  29. }
  30. }
  31. @mixin font($font-family, $file-name) {
  32. @warn "The 'font' mixin is DEPRECATED. You should use the corresponding 'v-font' mixin instead.";
  33. @include v-font($font-family, $file-name);
  34. }
  35. // Include directly to avoid trapping inside a parent selector
  36. // TODO move inside the theme main mixin once we can use Sass 3.3 (@at-root)
  37. @include valo-fonts;