blob: c92eef653cec09c1426b4f2ed76fb98f2d218ef6 (
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
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
|
@import "../../scss";
// responsive-font-size property with `px` unit
.selector-1 {
background-color: #f00;
width: 300px;
@include responsive-font-size(32px);
}
// responsive-font-size property with `rem` unit
.selector-2 {
@include responsive-font-size(2rem);
}
// responsive-font-size property with !important
.selector-3 {
@include responsive-font-size(2rem, true);
}
// rfs shorthand
.selector-4 {
@include rfs(2rem);
}
// not supported unit
.selector-5 {
@include responsive-font-size(2em);
}
// special value
.selector-6 {
@include responsive-font-size(inherit);
}
// responsive-font-size property inside @support-query
@supports (display: flex) {
.selector-7 {
@include rfs(28px);
}
}
// responsive-font-size property without unit
.selector-8 {
@include responsive-font-size(32);
}
// font-size shorthand
.selector-9 {
@include font-size(2rem);
}
|