_fonts.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. // Font Family
  2. $font-family-default: "Raleway", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  3. $font-family-header: "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  4. $font-family-mono: "Inconsolata", monospace;
  5. $font-family-serif: "Georgia", "Times", "Times New Roman", serif;
  6. // @font-face
  7. $typo: "aileron_regular";
  8. $category: "sans-serif";
  9. $file: "Aileron-Regular-webfont";
  10. $Regular: "Regular";
  11. @mixin font-face($Regular, $file, $typo, $category:"") {
  12. $filepath: "../fonts/" + $typo + "/" + $file;
  13. @font-face {
  14. font-family: "#{$Regular}";
  15. src: url($filepath + ".eot");
  16. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  17. url($filepath + ".woff") format('woff'),
  18. url($filepath + ".ttf") format('truetype'),
  19. url($filepath + ".svg#" + $Regular + "") format('svg');
  20. }
  21. %#{$Regular} {
  22. font: {
  23. @if $category != "" {
  24. family: "#{$Regular}", #{$category};
  25. weight: normal;
  26. }
  27. @else {
  28. family: "#{$Regular}";
  29. weight: normal;
  30. }
  31. }
  32. }
  33. }
  34. $typo2: "aileron_bold";
  35. $file2: "Aileron-Bold-webfont";
  36. $Bold: "bold";
  37. @mixin font-face($Bold, $file2, $typo2, $category:"") {
  38. $filepath: "../fonts/" + $typo2 + "/" + $file2;
  39. @font-face {
  40. font-family: "#{$Bold}";
  41. src: url($filepath + ".eot");
  42. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  43. url($filepath + ".woff") format('woff'),
  44. url($filepath + ".ttf") format('truetype'),
  45. url($filepath + ".svg#" + $Bold + "") format('svg');
  46. }
  47. %#{$Bold} {
  48. font: {
  49. @if $category != "" {
  50. family: "#{$Bold}", #{$category};
  51. weight: normal;
  52. }
  53. @else {
  54. family: "#{$Bold}";
  55. weight: normal;
  56. }
  57. }
  58. }
  59. }
  60. $typo3: "now_alt";
  61. $file3: "nowalt-bold-webfont";
  62. $now_alt_bold: "now_alt_bold";
  63. @mixin font-face($now_alt_bold, $file3, $typo3, $category:"") {
  64. $filepath: "../fonts/" + $typo3 + "/" + $file3;
  65. @font-face {
  66. font-family: "#{$now_alt_bold}";
  67. src: url($filepath + ".eot");
  68. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  69. url($filepath + ".woff") format('woff'),
  70. url($filepath + ".ttf") format('truetype'),
  71. url($filepath + ".svg#" + $now_alt_bold + "") format('svg');
  72. }
  73. %#{$now_alt_bold} {
  74. font: {
  75. @if $category != "" {
  76. family: "#{$now_alt_bold}", #{$category};
  77. weight: normal;
  78. }
  79. @else {
  80. family: "#{$now_alt_bold}";
  81. weight: normal;
  82. }
  83. }
  84. }
  85. }
  86. $typo4: "now_alt";
  87. $file4: "nowalt-light-webfont";
  88. $now_alt_light: "now_alt_light";
  89. @mixin font-face($now_alt_light, $file4, $typo4, $category:"") {
  90. $filepath: "../fonts/" + $typo4 + "/" + $file4;
  91. @font-face {
  92. font-family: "#{$now_alt_light}";
  93. src: url($filepath + ".eot");
  94. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  95. url($filepath + ".woff") format('woff'),
  96. url($filepath + ".ttf") format('truetype'),
  97. url($filepath + ".svg#" + $now_alt_light + "") format('svg');
  98. }
  99. %#{$now_alt_light} {
  100. font: {
  101. @if $category != "" {
  102. family: "#{$now_alt_light}", #{$category};
  103. weight: normal;
  104. }
  105. @else {
  106. family: "#{$now_alt_light}";
  107. weight: normal;
  108. }
  109. }
  110. }
  111. }
  112. $typo5: "now_alt";
  113. $file5: "nowalt-medium-webfont";
  114. $now_alt_medium: "now_alt_medium";
  115. @mixin font-face($now_alt_medium, $file5, $typo5, $category:"") {
  116. $filepath: "../fonts/" + $typo5 + "/" + $file5;
  117. @font-face {
  118. font-family: "#{$now_alt_medium}";
  119. src: url($filepath + ".eot");
  120. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  121. url($filepath + ".woff") format('woff'),
  122. url($filepath + ".ttf") format('truetype'),
  123. url($filepath + ".svg#" + $now_alt_medium + "") format('svg');
  124. }
  125. %#{$now_alt_medium} {
  126. font: {
  127. @if $category != "" {
  128. family: "#{$now_alt_medium}", #{$category};
  129. weight: normal;
  130. }
  131. @else {
  132. family: "#{$now_alt_medium}";
  133. weight: normal;
  134. }
  135. }
  136. }
  137. }