-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.scss
52 lines (47 loc) · 1.52 KB
/
index.scss
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$base-path: '@arma-events/icon-font/dist' !default;
$class: 'arma-eventicons' !default;
$font-family: 'arma.events Icon Font' !default;
$font-family-fallback: 'arma.events Icon Font Fallback' !default;
// this fallback font is to make sure icons are invisible (size = 0%)
// while the webfont is still loading, to make sure the text is not visible
@font-face {
font-family: $font-family-fallback;
src: local('Arial');
size-adjust: 0%;
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: $font-family;
src: url('#{$base-path}/icon-font.woff2') format('woff2'), url('#{$base-path}/icon-font.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@mixin styles() {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: $font-family, $font-family-fallback !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Enable Ligatures ================ */
letter-spacing: 0;
-webkit-font-feature-settings: 'liga';
-moz-font-feature-settings: 'liga=1';
-moz-font-feature-settings: 'liga';
-ms-font-feature-settings: 'liga' 1;
font-feature-settings: 'liga';
-webkit-font-variant-ligatures: discretionary-ligatures;
font-variant-ligatures: discretionary-ligatures;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@if $class != '' {
.#{$class} {
@include styles();
}
}