maj
This commit is contained in:
@@ -63,3 +63,92 @@ $Bold: "bold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$typo3: "now_alt";
|
||||
$file3: "nowalt-bold-webfont";
|
||||
$now_alt_bold: "now_alt_bold";
|
||||
|
||||
@mixin font-face($now_alt_bold, $file3, $typo3, $category:"") {
|
||||
$filepath: "../fonts/" + $typo3 + "/" + $file3;
|
||||
@font-face {
|
||||
font-family: "#{$now_alt_bold}";
|
||||
src: url($filepath + ".eot");
|
||||
src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
|
||||
url($filepath + ".woff") format('woff'),
|
||||
url($filepath + ".ttf") format('truetype'),
|
||||
url($filepath + ".svg#" + $now_alt_bold + "") format('svg');
|
||||
}
|
||||
|
||||
%#{$now_alt_bold} {
|
||||
font: {
|
||||
@if $category != "" {
|
||||
family: "#{$now_alt_bold}", #{$category};
|
||||
weight: normal;
|
||||
}
|
||||
@else {
|
||||
family: "#{$now_alt_bold}";
|
||||
weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$typo4: "now_alt";
|
||||
$file4: "nowalt-light-webfont";
|
||||
$now_alt_light: "now_alt_light";
|
||||
|
||||
@mixin font-face($now_alt_light, $file4, $typo4, $category:"") {
|
||||
$filepath: "../fonts/" + $typo4 + "/" + $file4;
|
||||
@font-face {
|
||||
font-family: "#{$now_alt_light}";
|
||||
src: url($filepath + ".eot");
|
||||
src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
|
||||
url($filepath + ".woff") format('woff'),
|
||||
url($filepath + ".ttf") format('truetype'),
|
||||
url($filepath + ".svg#" + $now_alt_light + "") format('svg');
|
||||
}
|
||||
|
||||
%#{$now_alt_light} {
|
||||
font: {
|
||||
@if $category != "" {
|
||||
family: "#{$now_alt_light}", #{$category};
|
||||
weight: normal;
|
||||
}
|
||||
@else {
|
||||
family: "#{$now_alt_light}";
|
||||
weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$typo5: "now_alt";
|
||||
$file5: "nowalt-medium-webfont";
|
||||
$now_alt_medium: "now_alt_medium";
|
||||
|
||||
@mixin font-face($now_alt_medium, $file5, $typo5, $category:"") {
|
||||
$filepath: "../fonts/" + $typo5 + "/" + $file5;
|
||||
@font-face {
|
||||
font-family: "#{$now_alt_medium}";
|
||||
src: url($filepath + ".eot");
|
||||
src: url($filepath + ".eot?#iefix") format('embedded-opentype'),
|
||||
url($filepath + ".woff") format('woff'),
|
||||
url($filepath + ".ttf") format('truetype'),
|
||||
url($filepath + ".svg#" + $now_alt_medium + "") format('svg');
|
||||
}
|
||||
|
||||
%#{$now_alt_medium} {
|
||||
font: {
|
||||
@if $category != "" {
|
||||
family: "#{$now_alt_medium}", #{$category};
|
||||
weight: normal;
|
||||
}
|
||||
@else {
|
||||
family: "#{$now_alt_medium}";
|
||||
weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,9 @@
|
||||
// fonts
|
||||
@include font-face($Regular, $file, $typo, $category);//1
|
||||
@include font-face($Bold, $file2, $typo2, $category);//1
|
||||
@include font-face($now_alt_bold, $file3, $typo3, $category);//1
|
||||
@include font-face($now_alt_light, $file4, $typo4, $category);//1
|
||||
@include font-face($now_alt_medium, $file5, $typo5, $category);//1
|
||||
|
||||
// fontsize
|
||||
// title
|
||||
@@ -25,7 +28,7 @@ $light-blue: #0093a3;
|
||||
$dark-blue: #00407d;
|
||||
$green: #b5cb3a;
|
||||
$red: #9e0027;
|
||||
$light-grey: #d8dadb;
|
||||
$light-grey: #d8dadbff;
|
||||
$grey: #6e6f70;
|
||||
$white: #ffffff;
|
||||
$black: #231f20;
|
||||
|
Reference in New Issue
Block a user