Sha256: 24c447629d6386d68b580426cf9d23d2d45e0802ca1feabae903274a6579ae3d
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 KB
Contents
// // mixin for bullet proof font declaration syntax // @mixin declare-font-face($font-family, $font-filename, $font-weight : normal, $font-style :normal, $font-stretch : normal) { @font-face { font-family: '#{$font-family}'; src: url(font-path('#{$font-family}/#{$font-filename}.eot')); src: url(font-path('#{$font-family}/#{$font-filename}.eot?#iefix')) format('embedded-opentype'), url(font-path('#{$font-family}/#{$font-filename}.woff')) format('woff'), url(font-path('#{$font-family}/#{$font-filename}.ttf')) format('truetype'), url(font-path('#{$font-family}/#{$font-filename}.svg##{$font-family}')) format('svg'); font-weight: $font-weight; font-style: $font-style; font-stretch: $font-stretch; } } @include declare-font-face(FontAwesome, 'fontawesome-webfont'); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-extralight-webfont', $extralight-weight); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-extralight-webfont', $extralight-weight, italic); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-light-webfont', $light-weight); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-light-webfont', $light-weight, italic); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-regular-webfont', normal); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-it-webfont', normal, italic); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-semibold-webfont', $semibold-weight); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-semiboldit-webfont', $semibold-weight, italic); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-bold-webfont', bold); @include declare-font-face(Source-Sans-Pro, 'sourcesanspro-boldit-webfont', bold, italic); @include declare-font-face(Undercase-Icons, 'Undercase-Icons'); // @include declare-font-face('Source Sans Pro', 'sourcesanspro-black-webfont', 800); // @include declare-font-face('Source Sans Pro', 'sourcesanspro-blackit-webfont', 800, italic);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
undercase-0.2.57 | app/assets/stylesheets/undercase/patterns/_font_faces.scss |
undercase-0.2.29 | app/assets/stylesheets/undercase/patterns/_font_faces.scss |