Skip to content

Instantly share code, notes, and snippets.

@dustinhorton
Last active December 1, 2015 19:14
Show Gist options
  • Save dustinhorton/1ba5a8afa5f1d26c682f to your computer and use it in GitHub Desktop.
Save dustinhorton/1ba5a8afa5f1d26c682f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$font-weight---semibold: 600;
$font-weight---light: 300;
$default-webfonts: (
remind-proxima-nova: (
name: remind-proxima-nova,
versions: (
semibold: (
name: 'semibold',
style: normal,
weight: $font-weight---semibold
),
regular: (
name: 'regular',
style: normal,
weight: normal
),
regular-italic: (
name: 'regular-italic',
style: italic,
weight: normal
),
light: (
name: 'light',
style: normal,
weight: $font-weight---light
)
),
location: 's3'
)
) !default;
$marketing-webfonts: (
remind-proxima-nova: (
name: remind-proxima-nova,
versions: (
bold: (
name: 'bold',
style: normal,
weight: bold
)
),
location: 's3'
)
);
$webfonts: map-merge($default-webfonts, $marketing-webfonts);
@each $webfont, $webfont-map in $webfonts {
@each $version, $version-map in map-get($webfont-map, versions) {
@font-face {
$family: map-get($webfont-map, name);
$name: map-get($version-map, name);
$location: map-get($webfont-map, location);
font-family: $family;
font-style: map-get($version-map, style);
font-weight: map-get($version-map, weight);
@if $location == 'local' {
src: font-url('#{$family}/#{$name}.eot?') format('embedded-opentype'),
font-url('#{$family}/#{$name}.woff') format('woff'),
font-url('#{$family}/#{$name}.ttf') format('truetype');
}
@elseif $location == 's3' {
src: url('https://d3498ple9xfqkw.cloudfront.net/common/fonts/#{$family}/#{$family}-#{$name}.eot?') format('embedded-opentype'),
url('https://d3498ple9xfqkw.cloudfront.net/common/fonts/#{$family}/#{$family}-#{$name}.woff2') format('woff2'),
url('https://d3498ple9xfqkw.cloudfront.net/common/fonts/#{$family}/#{$family}-#{$name}.woff') format('woff'),
url('https://d3498ple9xfqkw.cloudfront.net/common/fonts/#{$family}/#{$family}-#{$name}.ttf') format('truetype');
}
}
}
}
@font-face {
font-family: remind-proxima-nova;
font-style: normal;
font-weight: bold;
src: url("https://d3498ple9xfqkw.cloudfront.net/common/fonts/remind-proxima-nova/remind-proxima-nova-bold.eot?") format("embedded-opentype"), url("https://d3498ple9xfqkw.cloudfront.net/common/fonts/remind-proxima-nova/remind-proxima-nova-bold.woff2") format("woff2"), url("https://d3498ple9xfqkw.cloudfront.net/common/fonts/remind-proxima-nova/remind-proxima-nova-bold.woff") format("woff"), url("https://d3498ple9xfqkw.cloudfront.net/common/fonts/remind-proxima-nova/remind-proxima-nova-bold.ttf") format("truetype");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment