Last active
March 18, 2019 21:26
-
-
Save starryeyez024/e86a96c9ebcbb5a8b3e05c1a2e5fd909 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<br/> | |
<div class="headline1">Headline hello world, 400 weight</div> | |
<div class="headline2">Headline hello world, 500 weight</div> | |
<div class="headline3">Headline hello world, 600 weight</div> | |
<div class="headline4">Headline hello world, 700 weight</div> | |
<div class="headline5">Headline hello world, 800 weight</div> | |
<div class="headline6">Headline hello world, 900 weight</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.5.4) | |
// ---- | |
//---------------------- | |
// Red Hat Display font | |
//---------------------- | |
@mixin printRedHatFont($weightValue, $weightName, $style: "normal", $familyName: "RedHatText") { | |
$version: "1.0"; | |
$path:"/files/assets/fonts/redhat/"; | |
$subfolder: "/webfont/"; | |
$filePath: $path + $version + $subfolder + $familyName + "-" + $weightName; | |
@font-face { | |
font-family: $familyName; | |
src: url('#{$filePath}.eot'); /* IE9 Compat Modes */ | |
src: url('#{$filePath}.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
url('#{$filePath}.woff') format('woff'), /* Modern Browsers */ | |
url('#{$filePath}.ttf') format('truetype'), /* Safari, Android, iOS */ | |
url('#{$filePath}.svg#RedHatDisplay-#{$weightName}') format('svg'); /* Legacy iOS */ | |
font-style: $style; | |
font-weight: $weightValue; | |
text-rendering: optimizeLegibility; | |
} | |
} | |
//---------------------- | |
// Red Hat Display font | |
//---------------------- | |
@include printRedHatFont(300, regular, $familyName: "Red Hat Display"); | |
@include printRedHatFont(400, medium, $familyName: "Red Hat Display"); | |
//---------------------- | |
// Red Hat Text font | |
//---------------------- | |
@include printRedHatFont(300, regular, $familyName: "Red Hat Text"); | |
@include printRedHatFont(400, medium, $familyName: "Red Hat Text"); | |
@include printRedHatFont(700, bold, $familyName: "Red Hat Text"); | |
@mixin regular { | |
font-weight: 400; | |
} | |
@mixin medium { | |
font-weight: 500; | |
} | |
@mixin bold { | |
font-weight: 600; | |
} | |
.headline1 { | |
font-family: "Red Hat Display"; | |
//@include regular; | |
font-weight: 400; | |
} | |
.headline2 { | |
font-family: "Red Hat Display"; | |
//@include medium; | |
font-weight: 500; | |
} | |
.headline3 { | |
font-family: "Red Hat Display"; | |
//@include bold; | |
font-weight: 600; | |
} | |
.headline4 { | |
font-family: "Red Hat Display"; | |
//@include bold; | |
font-weight: 700; | |
} | |
.headline5 { | |
font-family: "Red Hat Display"; | |
//@include bold; | |
font-weight: 800; | |
} | |
.headline6 { | |
font-family: "Red Hat Display"; | |
//@include bold; | |
font-weight: 900; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: "Red Hat Display"; | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-regular.eot"); | |
/* IE9 Compat Modes */ | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-regular.eot?#iefix") format("embedded-opentype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-regular.woff") format("woff"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-regular.ttf") format("truetype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-regular.svg#RedHatDisplay-regular") format("svg"); | |
/* Legacy iOS */ | |
font-style: "normal"; | |
font-weight: 300; | |
text-rendering: optimizeLegibility; | |
} | |
@font-face { | |
font-family: "Red Hat Display"; | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-medium.eot"); | |
/* IE9 Compat Modes */ | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-medium.eot?#iefix") format("embedded-opentype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-medium.woff") format("woff"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-medium.ttf") format("truetype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Display-medium.svg#RedHatDisplay-medium") format("svg"); | |
/* Legacy iOS */ | |
font-style: "normal"; | |
font-weight: 400; | |
text-rendering: optimizeLegibility; | |
} | |
@font-face { | |
font-family: "Red Hat Text"; | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-regular.eot"); | |
/* IE9 Compat Modes */ | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-regular.eot?#iefix") format("embedded-opentype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-regular.woff") format("woff"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-regular.ttf") format("truetype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-regular.svg#RedHatDisplay-regular") format("svg"); | |
/* Legacy iOS */ | |
font-style: "normal"; | |
font-weight: 300; | |
text-rendering: optimizeLegibility; | |
} | |
@font-face { | |
font-family: "Red Hat Text"; | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-medium.eot"); | |
/* IE9 Compat Modes */ | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-medium.eot?#iefix") format("embedded-opentype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-medium.woff") format("woff"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-medium.ttf") format("truetype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-medium.svg#RedHatDisplay-medium") format("svg"); | |
/* Legacy iOS */ | |
font-style: "normal"; | |
font-weight: 400; | |
text-rendering: optimizeLegibility; | |
} | |
@font-face { | |
font-family: "Red Hat Text"; | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-bold.eot"); | |
/* IE9 Compat Modes */ | |
src: url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-bold.eot?#iefix") format("embedded-opentype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-bold.woff") format("woff"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-bold.ttf") format("truetype"), url("/files/assets/fonts/redhat/1.0/webfont/Red Hat Text-bold.svg#RedHatDisplay-bold") format("svg"); | |
/* Legacy iOS */ | |
font-style: "normal"; | |
font-weight: 700; | |
text-rendering: optimizeLegibility; | |
} | |
.headline1 { | |
font-family: "Red Hat Display"; | |
font-weight: 400; | |
} | |
.headline2 { | |
font-family: "Red Hat Display"; | |
font-weight: 500; | |
} | |
.headline3 { | |
font-family: "Red Hat Display"; | |
font-weight: 600; | |
} | |
.headline4 { | |
font-family: "Red Hat Display"; | |
font-weight: 700; | |
} | |
.headline5 { | |
font-family: "Red Hat Display"; | |
font-weight: 800; | |
} | |
.headline6 { | |
font-family: "Red Hat Display"; | |
font-weight: 900; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<br/> | |
<div class="headline1">Headline hello world, 400 weight</div> | |
<div class="headline2">Headline hello world, 500 weight</div> | |
<div class="headline3">Headline hello world, 600 weight</div> | |
<div class="headline4">Headline hello world, 700 weight</div> | |
<div class="headline5">Headline hello world, 800 weight</div> | |
<div class="headline6">Headline hello world, 900 weight</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment