summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/fonts/fonts.scss
blob: 2a882ab53d1f12802500d0c829b8f0ac59ee8feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@mixin fonts {
	@include fonticons;
}

@mixin fonticons {
	@include font(FontAwesome, fontawesome-webfont);
}

@mixin font($font-family, $file-name) {
	@font-face {
	  font-family: '#{$font-family}';
	  src: url('#{$file-name}.eot');
	  src: url('#{$file-name}.eot?#iefix') format('embedded-opentype'), url('#{$file-name}.woff') format('woff'), url('#{$file-name}.ttf') format('truetype'), url('#{$file-name}.svg') format('svg');
	  font-weight: normal;
	  font-style: normal;
	}
    .#{$font-family} {
        font-family: '#{$font-family}';
        font-style: normal;
        font-weight: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        display: inline-block;
    }
}