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.

47 lines
2.1 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: '../fonts';
  20. @mixin mk-font-face($name, $weight, $style) {
  21. @font-face {
  22. font-family: 'Roboto';
  23. src: url('#{$font-path}/Roboto-#{$name}-webfont.eot');
  24. src: local('Roboto #{$name}'), local('Roboto-#{$name}'),
  25. url('#{$font-path}/Roboto-#{$name}-webfont.eot?#iefix') format('embedded-opentype'),
  26. url('#{$font-path}/Roboto-#{$name}-webfont.woff') format('woff'),
  27. url('#{$font-path}/Roboto-#{$name}-webfont.ttf') format('truetype'),
  28. url('#{$font-path}/Roboto-#{$name}-webfont.svg#Roboto') format('svg');
  29. font-weight: $weight;
  30. font-style: $style;
  31. }
  32. }
  33. @include mk-font-face('Thin', 100, normal);
  34. @include mk-font-face('ThinItalic', 100, italic);
  35. @include mk-font-face('Light', 300, normal);
  36. @include mk-font-face('LightItalic', 300, italic);
  37. @include mk-font-face('Regular', 400, normal);
  38. @include mk-font-face('Italic', 400, italic);
  39. @include mk-font-face('Medium', 500, normal);
  40. @include mk-font-face('MediumItalic', 500, italic);
  41. @include mk-font-face('Bold', 700, normal);
  42. @include mk-font-face('BoldItalic', 700, italic);
  43. @include mk-font-face('Black', 900, normal);
  44. @include mk-font-face('BlackItalic', 900, italic);