_fonts.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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: "FKGrotesk";
  8. $category: "sans-serif";
  9. // secuela regular
  10. $file: "FKGrotesk-Regular";
  11. $Regular: "Regular";
  12. @mixin font-face($Regular, $file, $typo, $category:"") {
  13. $filepath: "../fonts/" + $typo + "/" + $file;
  14. @font-face {
  15. font-family: "#{$Regular}";
  16. src: url($filepath + ".eot");
  17. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  18. url($filepath + ".woff") format('woff'),
  19. url($filepath + ".woff2") format('woff2'),
  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. $file2: "FKGrotesk-ItalicB";
  35. $Italic: "ItalicB";
  36. @mixin font-face($Italic, $file2, $typo, $category:"") {
  37. $filepath: "../fonts/" + $typo + "/" + $file2;
  38. @font-face {
  39. font-family: "#{$Italic}";
  40. src: url($filepath + ".eot");
  41. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  42. url($filepath + ".woff") format('woff'),
  43. url($filepath + ".woff2") format('woff2'),
  44. }
  45. %#{$Italic} {
  46. font: {
  47. @if $category != "" {
  48. family: "#{$Italic}", #{$category};
  49. weight: normal;
  50. }
  51. @else {
  52. family: "#{$Italic}";
  53. weight: normal;
  54. }
  55. }
  56. }
  57. }
  58. $file3: "FKGrotesk-Bold";
  59. $Bold: "Bold";
  60. @mixin font-face($Bold, $file3, $typo, $category:"") {
  61. $filepath: "../fonts/" + $typo + "/" + $file;
  62. @font-face {
  63. font-family: "#{$Bold}";
  64. src: url($filepath + ".eot");
  65. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  66. url($filepath + ".woff") format('woff'),
  67. url($filepath + ".woff2") format('woff2'),
  68. }
  69. %#{$Bold} {
  70. font: {
  71. @if $category != "" {
  72. family: "#{$Bold}", #{$category};
  73. weight: normal;
  74. }
  75. @else {
  76. family: "#{$Bold}";
  77. weight: normal;
  78. }
  79. }
  80. }
  81. }
  82. $file4: "FKGrotesk-BoldItalicB";
  83. $BoldItalicB: "BoldItalicB";
  84. @mixin font-face($BoldItalicB, $file4, $typo, $category:"") {
  85. $filepath: "../fonts/" + $typo + "/" + $file4;
  86. @font-face {
  87. font-family: "#{$BoldItalicB}";
  88. src: url($filepath + ".eot");
  89. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  90. url($filepath + ".woff") format('woff'),
  91. url($filepath + ".woff2") format('woff2'),
  92. }
  93. %#{$BoldItalicB} {
  94. font: {
  95. @if $category != "" {
  96. family: "#{$BoldItalicB}", #{$category};
  97. weight: normal;
  98. }
  99. @else {
  100. family: "#{$BoldItalicB}";
  101. weight: normal;
  102. }
  103. }
  104. }
  105. }
  106. $file5: "FKGroteskMono-Regular";
  107. $Mono-Regular: "Mono-Regular";
  108. @mixin font-face($Mono-Regular, $file5, $typo, $category:"") {
  109. $filepath: "../fonts/" + $typo + "/" + $file5;
  110. @font-face {
  111. font-family: "#{$Mono-Regular}";
  112. src: url($filepath + ".eot");
  113. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  114. url($filepath + ".woff") format('woff'),
  115. url($filepath + ".woff2") format('woff2'),
  116. }
  117. %#{$Mono-Regular} {
  118. font: {
  119. @if $category != "" {
  120. family: "#{$Mono-Regular}", #{$category};
  121. weight: normal;
  122. }
  123. @else {
  124. family: "#{$Mono-Regular}";
  125. weight: normal;
  126. }
  127. }
  128. }
  129. }