File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
.lib-font-face (
11
11
@family-name ,
12
12
@font-path ,
13
+ @font-format : false,
13
14
@font-weight : normal ,
14
15
@font-style : normal ,
15
16
@font-display : auto
16
- ) {
17
+ ) when ( @font-format = false) {
17
18
@font-face {
18
19
font-family : @family-name ;
19
20
src : url(' @{font-path} .woff2' ) format (' woff2' ),
24
25
}
25
26
}
26
27
28
+ .lib-font-face (
29
+ @family-name ,
30
+ @font-path ,
31
+ @font-format : false,
32
+ @font-weight : normal ,
33
+ @font-style : normal ,
34
+ @font-display : auto
35
+ ) when not (@font-format = false) {
36
+ @font-face {
37
+ font-family : @family-name ;
38
+ src : url(' @{font-path} .@{font-format} ' ) format (@font-format );
39
+ font-weight : @font-weight ;
40
+ font-style : @font-style ;
41
+ font-display : @font-display ;
42
+ }
43
+ }
44
+
27
45
// Rem font size
28
46
.lib-font-size (@sizeValue ) when not (ispercentage (@sizeValue )) and not (@sizeValue = false) and (isunit (@sizeValue , @font-size-unit )) {
29
47
.lib-css (font-size , @sizeValue );
You can’t perform that action at this time.
0 commit comments