Dotclear

source: themes/berlin/scss/libs/bourbon/css3/_font-face.scss @ 2640:489437dde4f5

Revision 2640:489437dde4f5, 1.0 KB checked in by Anne Kozlika <kozlika@…>, 12 years ago (diff)

New default theme BERLIN, first commit.
Needs A LOT of clean-up and to be enhanced.

Line 
1// Order of the includes matters, and it is: normal, bold, italic, bold+italic.
2
3@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) {
4  @font-face {
5    font-family: $font-family;
6    font-weight: $weight;
7    font-style: $style;
8
9    @if $asset-pipeline == true {
10      src: font-url('#{$file-path}.eot');
11      src: font-url('#{$file-path}.eot?#iefix')          format('embedded-opentype'),
12           font-url('#{$file-path}.woff')                format('woff'),
13           font-url('#{$file-path}.ttf')                 format('truetype'),
14           font-url('#{$file-path}.svg##{$font-family}') format('svg');
15    } @else {
16      src: url('#{$file-path}.eot');
17      src: url('#{$file-path}.eot?#iefix')               format('embedded-opentype'),
18           url('#{$file-path}.woff')                     format('woff'),
19           url('#{$file-path}.ttf')                      format('truetype'),
20           url('#{$file-path}.svg##{$font-family}')      format('svg');
21    }
22  }
23}
Note: See TracBrowser for help on using the repository browser.

Sites map