Skip to content

Commit 0cb52b4

Browse files
committed
upgraded to fontawesome 6.5.1
1 parent 03af2a6 commit 0cb52b4

37 files changed

+5998
-7553
lines changed

_sass/fontawesome/_animated.scss

+142-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,153 @@
1-
// Animated Icons
1+
// animating icons
22
// --------------------------
33

4+
.#{$fa-css-prefix}-beat {
5+
animation-name: #{$fa-css-prefix}-beat;
6+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
7+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
8+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
9+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
10+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
11+
}
12+
13+
.#{$fa-css-prefix}-bounce {
14+
animation-name: #{$fa-css-prefix}-bounce;
15+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
16+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
17+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
18+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
19+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.280, 0.840, 0.420, 1));
20+
}
21+
22+
.#{$fa-css-prefix}-fade {
23+
animation-name: #{$fa-css-prefix}-fade;
24+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
25+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
26+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
27+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
28+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
29+
}
30+
31+
.#{$fa-css-prefix}-beat-fade {
32+
animation-name: #{$fa-css-prefix}-beat-fade;
33+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
34+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
35+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
36+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
37+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
38+
}
39+
40+
.#{$fa-css-prefix}-flip {
41+
animation-name: #{$fa-css-prefix}-flip;
42+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
43+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
44+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
45+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
46+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
47+
}
48+
49+
.#{$fa-css-prefix}-shake {
50+
animation-name: #{$fa-css-prefix}-shake;
51+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
52+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
53+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
54+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
55+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
56+
}
57+
458
.#{$fa-css-prefix}-spin {
5-
animation: fa-spin 2s infinite linear;
59+
animation-name: #{$fa-css-prefix}-spin;
60+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
61+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
62+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 2s);
63+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
64+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
65+
}
66+
67+
.#{$fa-css-prefix}-spin-reverse {
68+
--#{$fa-css-prefix}-animation-direction: reverse;
69+
}
70+
71+
.#{$fa-css-prefix}-pulse,
72+
.#{$fa-css-prefix}-spin-pulse {
73+
animation-name: #{$fa-css-prefix}-spin;
74+
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
75+
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
76+
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
77+
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, steps(8));
78+
}
79+
80+
// if agent or operating system prefers reduced motion, disable animations
81+
// see: https://www.smashingmagazine.com/2020/09/design-reduced-motion-sensitivities/
82+
// see: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
83+
@media (prefers-reduced-motion: reduce) {
84+
.#{$fa-css-prefix}-beat,
85+
.#{$fa-css-prefix}-bounce,
86+
.#{$fa-css-prefix}-fade,
87+
.#{$fa-css-prefix}-beat-fade,
88+
.#{$fa-css-prefix}-flip,
89+
.#{$fa-css-prefix}-pulse,
90+
.#{$fa-css-prefix}-shake,
91+
.#{$fa-css-prefix}-spin,
92+
.#{$fa-css-prefix}-spin-pulse {
93+
animation-delay: -1ms;
94+
animation-duration: 1ms;
95+
animation-iteration-count: 1;
96+
transition-delay: 0s;
97+
transition-duration: 0s;
98+
}
99+
}
100+
101+
@keyframes #{$fa-css-prefix}-beat {
102+
0%, 90% { transform: scale(1); }
103+
45% { transform: scale(var(--#{$fa-css-prefix}-beat-scale, 1.25)); }
104+
}
105+
106+
@keyframes #{$fa-css-prefix}-bounce {
107+
0% { transform: scale(1,1) translateY(0); }
108+
10% { transform: scale(var(--#{$fa-css-prefix}-bounce-start-scale-x, 1.1),var(--#{$fa-css-prefix}-bounce-start-scale-y, 0.9)) translateY(0); }
109+
30% { transform: scale(var(--#{$fa-css-prefix}-bounce-jump-scale-x, 0.9),var(--#{$fa-css-prefix}-bounce-jump-scale-y, 1.1)) translateY(var(--#{$fa-css-prefix}-bounce-height, -0.5em)); }
110+
50% { transform: scale(var(--#{$fa-css-prefix}-bounce-land-scale-x, 1.05),var(--#{$fa-css-prefix}-bounce-land-scale-y, 0.95)) translateY(0); }
111+
57% { transform: scale(1,1) translateY(var(--#{$fa-css-prefix}-bounce-rebound, -0.125em)); }
112+
64% { transform: scale(1,1) translateY(0); }
113+
100% { transform: scale(1,1) translateY(0); }
6114
}
7115

8-
.#{$fa-css-prefix}-pulse {
9-
animation: fa-spin 1s infinite steps(8);
116+
@keyframes #{$fa-css-prefix}-fade {
117+
50% { opacity: var(--#{$fa-css-prefix}-fade-opacity, 0.4); }
10118
}
11119

12-
@keyframes fa-spin {
13-
0% {
14-
transform: rotate(0deg);
120+
@keyframes #{$fa-css-prefix}-beat-fade {
121+
0%, 100% {
122+
opacity: var(--#{$fa-css-prefix}-beat-fade-opacity, 0.4);
123+
transform: scale(1);
15124
}
125+
50% {
126+
opacity: 1;
127+
transform: scale(var(--#{$fa-css-prefix}-beat-fade-scale, 1.125));
128+
}
129+
}
16130

17-
100% {
18-
transform: rotate(360deg);
131+
@keyframes #{$fa-css-prefix}-flip {
132+
50% {
133+
transform: rotate3d(var(--#{$fa-css-prefix}-flip-x, 0), var(--#{$fa-css-prefix}-flip-y, 1), var(--#{$fa-css-prefix}-flip-z, 0), var(--#{$fa-css-prefix}-flip-angle, -180deg));
19134
}
20135
}
136+
137+
@keyframes #{$fa-css-prefix}-shake {
138+
0% { transform: rotate(-15deg); }
139+
4% { transform: rotate(15deg); }
140+
8%, 24% { transform: rotate(-18deg); }
141+
12%, 28% { transform: rotate(18deg); }
142+
16% { transform: rotate(-22deg); }
143+
20% { transform: rotate(22deg); }
144+
32% { transform: rotate(-12deg); }
145+
36% { transform: rotate(12deg); }
146+
40%, 100% { transform: rotate(0deg); }
147+
}
148+
149+
@keyframes #{$fa-css-prefix}-spin {
150+
0% { transform: rotate(0deg); }
151+
100% { transform: rotate(360deg); }
152+
}
153+
+13-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
// Bordered & Pulled
1+
// bordered + pulled icons
22
// -------------------------
33

44
.#{$fa-css-prefix}-border {
5-
border: solid .08em $fa-border-color;
6-
border-radius: .1em;
7-
padding: .2em .25em .15em;
5+
border-color: var(--#{$fa-css-prefix}-border-color, #{$fa-border-color});
6+
border-radius: var(--#{$fa-css-prefix}-border-radius, #{$fa-border-radius});
7+
border-style: var(--#{$fa-css-prefix}-border-style, #{$fa-border-style});
8+
border-width: var(--#{$fa-css-prefix}-border-width, #{$fa-border-width});
9+
padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
810
}
911

10-
.#{$fa-css-prefix}-pull-left { float: left; }
11-
.#{$fa-css-prefix}-pull-right { float: right; }
12+
.#{$fa-css-prefix}-pull-left {
13+
float: left;
14+
margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
15+
}
1216

13-
.#{$fa-css-prefix},
14-
.fas,
15-
.far,
16-
.fal,
17-
.fab {
18-
&.#{$fa-css-prefix}-pull-left { margin-right: .3em; }
19-
&.#{$fa-css-prefix}-pull-right { margin-left: .3em; }
17+
.#{$fa-css-prefix}-pull-right {
18+
float: right;
19+
margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
2020
}

_sass/fontawesome/_core.scss

+28-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,43 @@
1-
// Base Class Definition
1+
// base icon class definition
22
// -------------------------
33

4+
.#{$fa-css-prefix} {
5+
font-family: var(--#{$fa-css-prefix}-style-family, '#{$fa-style-family}');
6+
font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
7+
}
8+
49
.#{$fa-css-prefix},
10+
.#{$fa-css-prefix}-classic,
11+
.#{$fa-css-prefix}-sharp,
512
.fas,
13+
.#{$fa-css-prefix}-solid,
614
.far,
7-
.fal,
8-
.fab {
15+
.#{$fa-css-prefix}-regular,
16+
.fab,
17+
.#{$fa-css-prefix}-brands {
918
-moz-osx-font-smoothing: grayscale;
1019
-webkit-font-smoothing: antialiased;
11-
display: inline-block;
20+
display: var(--#{$fa-css-prefix}-display, #{$fa-display});
1221
font-style: normal;
1322
font-variant: normal;
14-
text-rendering: auto;
1523
line-height: 1;
24+
text-rendering: auto;
1625
}
1726

27+
.fas,
28+
.#{$fa-css-prefix}-classic,
29+
.#{$fa-css-prefix}-solid,
30+
.far,
31+
.#{$fa-css-prefix}-regular {
32+
font-family: 'Font Awesome 6 Free';
33+
}
34+
35+
.fab,
36+
.#{$fa-css-prefix}-brands {
37+
font-family: 'Font Awesome 6 Brands';
38+
}
39+
40+
1841
%fa-icon {
1942
@include fa-icon;
2043
}

_sass/fontawesome/_fixed-width.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// Fixed Width Icons
1+
// fixed-width icons
22
// -------------------------
3+
34
.#{$fa-css-prefix}-fw {
45
text-align: center;
56
width: $fa-fw-width;

_sass/fontawesome/_functions.scss

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// functions
2+
// --------------------------
3+
4+
// fa-content: convenience function used to set content property
5+
@function fa-content($fa-var) {
6+
@return unquote("\"#{ $fa-var }\"");
7+
}
8+
9+
// fa-divide: Originally obtained from the Bootstrap https://github.com/twbs/bootstrap
10+
//
11+
// Licensed under: The MIT License (MIT)
12+
//
13+
// Copyright (c) 2011-2021 Twitter, Inc.
14+
// Copyright (c) 2011-2021 The Bootstrap Authors
15+
//
16+
// Permission is hereby granted, free of charge, to any person obtaining a copy
17+
// of this software and associated documentation files (the "Software"), to deal
18+
// in the Software without restriction, including without limitation the rights
19+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20+
// copies of the Software, and to permit persons to whom the Software is
21+
// furnished to do so, subject to the following conditions:
22+
//
23+
// The above copyright notice and this permission notice shall be included in
24+
// all copies or substantial portions of the Software.
25+
//
26+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32+
// THE SOFTWARE.
33+
34+
@function fa-divide($dividend, $divisor, $precision: 10) {
35+
$sign: if($dividend > 0 and $divisor > 0, 1, -1);
36+
$dividend: abs($dividend);
37+
$divisor: abs($divisor);
38+
$quotient: 0;
39+
$remainder: $dividend;
40+
@if $dividend == 0 {
41+
@return 0;
42+
}
43+
@if $divisor == 0 {
44+
@error "Cannot divide by 0";
45+
}
46+
@if $divisor == 1 {
47+
@return $dividend;
48+
}
49+
@while $remainder >= $divisor {
50+
$quotient: $quotient + 1;
51+
$remainder: $remainder - $divisor;
52+
}
53+
@if $remainder > 0 and $precision > 0 {
54+
$remainder: fa-divide($remainder * 10, $divisor, $precision - 1) * .1;
55+
}
56+
@return ($quotient + $remainder) * $sign;
57+
}

0 commit comments

Comments
 (0)