1 |
|
2 |
|
3 |
|
4 |
|
5 | @mixin fa-icon {
|
6 | -webkit-font-smoothing: antialiased;
|
7 | -moz-osx-font-smoothing: grayscale;
|
8 | display: inline-block;
|
9 | font-style: normal;
|
10 | font-variant: normal;
|
11 | font-weight: normal;
|
12 | line-height: 1;
|
13 | }
|
14 |
|
15 |
|
16 | @mixin fa-size ($font-size) {
|
17 | font-size: fa-divide($font-size, $fa-size-scale-base) * 1em;
|
18 | line-height: fa-divide(1, $font-size) * 1em;
|
19 | vertical-align: (fa-divide(6, $font-size) - fa-divide(3, 8)) * 1em;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | @mixin 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 | @mixin fa-sr-only-focusable() {
|
39 | &:not(:focus) {
|
40 | @include fa-sr-only();
|
41 | }
|
42 | }
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | @mixin fa-icon-solid($fa-var) {
|
50 | @extend %fa-icon;
|
51 | @extend .fa-solid;
|
52 |
|
53 | &::before {
|
54 | content: unquote("\"#{ $fa-var }\"");
|
55 | }
|
56 | }
|
57 | @mixin fa-icon-regular($fa-var) {
|
58 | @extend %fa-icon;
|
59 | @extend .fa-regular;
|
60 |
|
61 | &::before {
|
62 | content: unquote("\"#{ $fa-var }\"");
|
63 | }
|
64 | }
|
65 | @mixin fa-icon-brands($fa-var) {
|
66 | @extend %fa-icon;
|
67 | @extend .fa-brands;
|
68 |
|
69 | &::before {
|
70 | content: unquote("\"#{ $fa-var }\"");
|
71 | }
|
72 | }
|