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.

57 lines
2.7 KiB

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