1 |
|
2 |
|
3 |
|
4 |
|
5 | .fa-icon() {
|
6 | -moz-osx-font-smoothing: grayscale;
|
7 | -webkit-font-smoothing: antialiased;
|
8 | display: inline-block;
|
9 | font-style: normal;
|
10 | font-variant: normal;
|
11 | font-weight: normal;
|
12 | line-height: 1;
|
13 | }
|
14 |
|
15 |
|
16 | .fa-size(@font-size) {
|
17 | font-size: (@font-size / @fa-size-scale-base) * 1em;
|
18 | line-height: (1 / @font-size) * 1em;
|
19 | vertical-align: ((6 / @font-size) - (3 / 8)) * 1em;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | .fa-sr-only() {
|
26 | position: absolute;
|
27 | width: 1px;
|
28 | height: 1px;
|
29 | padding: 0;
|
30 | margin: -1px;
|
31 | overflow: hidden;
|
32 | clip: rect(0, 0, 0, 0);
|
33 | white-space: nowrap;
|
34 | border-width: 0;
|
35 | }
|
36 |
|
37 |
|
38 | .fa-sr-only-focusable() {
|
39 | &:not(:focus) {
|
40 | .fa-sr-only();
|
41 | }
|
42 | }
|
43 |
|
44 |
|
45 | .fa-family-classic() {
|
46 | font-family: 'Font Awesome 6 Free';
|
47 | }
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | .fa-icon-solid(@fa-var) {
|
53 | .fa-icon;
|
54 | .fa-solid;
|
55 |
|
56 | &::before {
|
57 | content: @fa-var;
|
58 | }
|
59 | }
|
60 |
|
61 | .fa-icon-regular(@fa-var) {
|
62 | .fa-icon;
|
63 | .fa-regular;
|
64 |
|
65 | &::before {
|
66 | content: @fa-var;
|
67 | }
|
68 | }
|
69 |
|
70 | .fa-icon-brands(@fa-var) {
|
71 | .fa-icon;
|
72 | .fa-brands;
|
73 |
|
74 | &::before {
|
75 | content: @fa-var;
|
76 | }
|
77 | }
|
78 |
|