source: spip-zone/_squelettes_/html5up_editorial/css/_font.scss @ 115095

Last change on this file since 115095 was 108951, checked in by chankalan@…, 19 months ago

on se passe de googlefont

File size: 912 bytes
Line 
1
2/// Font Face
3/// https://gist.github.com/jonathantneal/d0460e5c2d5d7f9bc5e6#file-_mixins-scss
4/// simplification pour uniquement woff2 et woff
5@mixin font-face($name, $path, $weight: null, $style: null, $exts: woff2 woff) {
6        $src: null;
7        @each $ext in $exts {
8                $src: append($src, url(quote($path + "." + $ext)) format(quote($ext)), comma);
9        }
10        @font-face {
11                font-family: quote($name);
12                font-style: $style;
13                font-weight: $weight;
14                src: $src;
15        }
16}
17
18@include font-face(Roboto Slab, fonts/roboto-regular-webfont, 400, normal);
19@include font-face(Roboto Slab, fonts/roboto-bold-webfont, 700, bold);
20@include font-face(Open Sans, fonts/opensans-regular-webfont, 400, normal);
21@include font-face(Open Sans, fonts/opensans-semibold-webfont, 600, normal);
22@include font-face(Open Sans, fonts/opensans-italic-webfont, 400, italic);
23@include font-face(Open Sans, fonts/opensans-semibolditalic-webfont, 600, italic);
Note: See TracBrowser for help on using the repository browser.