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.

60 lines
2.7 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-2019 MuK IT GmbH.
  4. *
  5. * This file is part of MuK Backend Theme
  6. * (see https://mukit.at).
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. **********************************************************************************/
  22. $font-path-noto: '../fonts/Noto';
  23. $font-path-roboto: '../fonts/Roboto';
  24. @mixin mk-roboto-font-face($name, $weight, $style) {
  25. @font-face {
  26. font-family: 'Noto';
  27. src: url('#{$font-path-noto}/Noto-#{$name}.eot');
  28. src: url('#{$font-path-noto}/Noto-#{$name}.eot?#iefix') format('embedded-opentype'),
  29. url('#{$font-path-noto}/Noto-#{$name}.woff') format('woff'),
  30. url('#{$font-path-noto}/Noto-#{$name}.ttf') format('truetype'),
  31. url('#{$font-path-noto}/Noto-#{$name}.svg#Noto') format('svg');
  32. font-weight: $weight;
  33. font-style: $style;
  34. }
  35. @font-face {
  36. font-family: 'Roboto';
  37. src: url('#{$font-path-roboto}/Roboto-#{$name}.eot');
  38. src: url('#{$font-path-roboto}/Roboto-#{$name}.eot?#iefix') format('embedded-opentype'),
  39. url('#{$font-path-roboto}/Roboto-#{$name}.woff') format('woff'),
  40. url('#{$font-path-roboto}/Roboto-#{$name}.ttf') format('truetype'),
  41. url('#{$font-path-roboto}/Roboto-#{$name}.svg#Roboto') format('svg');
  42. font-weight: $weight;
  43. font-style: $style;
  44. }
  45. }
  46. @include mk-roboto-font-face('Thin', 100, normal);
  47. @include mk-roboto-font-face('ThinItalic', 100, italic);
  48. @include mk-roboto-font-face('Light', 300, normal);
  49. @include mk-roboto-font-face('LightItalic', 300, italic);
  50. @include mk-roboto-font-face('Regular', 400, normal);
  51. @include mk-roboto-font-face('Italic', 400, italic);
  52. @include mk-roboto-font-face('Medium', 500, normal);
  53. @include mk-roboto-font-face('MediumItalic', 500, italic);
  54. @include mk-roboto-font-face('Bold', 700, normal);
  55. @include mk-roboto-font-face('BoldItalic', 700, italic);
  56. @include mk-roboto-font-face('Black', 900, normal);
  57. @include mk-roboto-font-face('BlackItalic', 900, italic);