_fonts.scss 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. $icons: "FontAwesome";
  7. // @font-face
  8. $Regular: "Montserrat-Regular";
  9. $family: "Montserrat/webfonts";
  10. $file-regular: "Montserrat-Regular";
  11. $category: "sans-serif";
  12. @mixin Montserrat-Regular($Regular, $file-regular, $family, $category:"") {
  13. $filepath: "../fonts/" + $family + "/" + $file-regular;
  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 + ".ttf") format('truetype'),
  20. url($filepath + ".svg#" + $Regular + "") format('svg');
  21. }
  22. %#{$Regular} {
  23. font: {
  24. @if $category != "" {
  25. family: "#{$Regular}", #{$category};
  26. }
  27. @else {
  28. family: "#{$Regular}";
  29. weight: normal;
  30. }
  31. }
  32. }
  33. }
  34. $light: "Montserrat-Light";
  35. $family: "Montserrat/webfonts";
  36. $file-light: "Montserrat-Light";
  37. $category: "sans-serif";
  38. @mixin Montserrat-light($light, $file-light, $family, $category:"") {
  39. $filepath: "../fonts/" + $family + "/" + $file-light;
  40. @font-face {
  41. font-family: "#{$light}";
  42. src: url($filepath + ".eot");
  43. src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
  44. url($filepath + ".woff") format('woff'),
  45. url($filepath + ".ttf") format('truetype'),
  46. url($filepath + ".svg#" + $light + "") format('svg');
  47. }
  48. %#{$light} {
  49. font: {
  50. @if $category != "" {
  51. family: "#{$light}", #{$category};
  52. }
  53. @else {
  54. family: "#{$light}";
  55. weight: normal;
  56. }
  57. }
  58. }
  59. }
  60. // font-size
  61. $font16: 1rem;
  62. $font18: 1.134rem;
  63. $font21: 1.323rem;
  64. $font24: 1.512rem;
  65. $font36: 2.268rem;
  66. $font48: 3.024rem;
  67. // $fonth1: 2rem;
  68. // $fonth2: 1.5rem;
  69. // $fonth3: 1rem;
  70. // $fontp: 1rem;