font-awesome-sass 5.14.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -66
- data/assets/fonts/font-awesome/fa-brands-400.ttf +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.ttf +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.ttf +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.woff2 +0 -0
- data/assets/stylesheets/_font-awesome.scss +11 -4
- data/assets/stylesheets/font-awesome/_animated.scss +201 -5
- data/assets/stylesheets/font-awesome/_bordered-pulled.scss +13 -13
- data/assets/stylesheets/font-awesome/_brands.scss +33 -0
- data/assets/stylesheets/font-awesome/_core.scss +16 -4
- data/assets/stylesheets/font-awesome/_fixed-width.scss +2 -1
- data/assets/stylesheets/font-awesome/_functions.scss +66 -0
- data/assets/stylesheets/font-awesome/_icons.scss +8 -1448
- data/assets/stylesheets/font-awesome/_list.scss +7 -5
- data/assets/stylesheets/font-awesome/_mixins.scss +50 -34
- data/assets/stylesheets/font-awesome/_regular.scss +27 -0
- data/assets/stylesheets/font-awesome/_rotated-flipped.scss +25 -18
- data/assets/stylesheets/font-awesome/_screen-reader.scss +12 -3
- data/assets/stylesheets/font-awesome/_shims.scss +1195 -652
- data/assets/stylesheets/font-awesome/_sizing.scss +16 -0
- data/assets/stylesheets/font-awesome/_solid.scss +26 -0
- data/assets/stylesheets/font-awesome/_stacked.scss +5 -4
- data/assets/stylesheets/font-awesome/_variables.scss +4181 -771
- data/font-awesome-sass.gemspec +1 -2
- data/lib/font-awesome-sass.rb +0 -18
- data/lib/font_awesome/sass/rails/engine.rb +1 -1
- data/lib/font_awesome/sass/rails/helpers.rb +1 -0
- data/lib/font_awesome/sass/version.rb +1 -1
- metadata +10 -33
- data/assets/fonts/font-awesome/fa-brands-400.eot +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.svg +0 -3637
- data/assets/fonts/font-awesome/fa-brands-400.woff +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.eot +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.svg +0 -805
- data/assets/fonts/font-awesome/fa-regular-400.woff +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.eot +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.svg +0 -5015
- data/assets/fonts/font-awesome/fa-solid-900.woff +0 -0
- data/assets/stylesheets/_font-awesome-compass.scss +0 -5
- data/assets/stylesheets/_font-awesome-sprockets.scss +0 -5
- data/assets/stylesheets/_v4-shims.scss +0 -6
- data/assets/stylesheets/font-awesome/_larger.scss +0 -23
- data/assets/stylesheets/font-awesome/_path.scss +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ee9d3c87656a6e2c112936c1cd09c8de660b56dfb2928ca5163ec6431d7fc6
|
4
|
+
data.tar.gz: 2892c87a286914a5b7d3feb9dd88db15f88952aaabe27996807bdf3ed9452252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e8b7baba671ae6272476cea723a9267dbb8121ccee64d2d85f1e8c742856d3815dab9e24592962b0c8f25eb42efb992b8718fce08cce4fd9766911eb8bf6337
|
7
|
+
data.tar.gz: ead5f3a70ab169bb1afb4d64a9d990e7b727e79d81b0eae93fbdb83510f25d268b4a1bf610b82555f72650d52372f81d2fa81a93f28f3e281a2a55c7243340a4
|
data/README.md
CHANGED
@@ -2,35 +2,20 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/font-awesome-sass.svg)](https://badge.fury.io/rb/font-awesome-sass)
|
4
4
|
|
5
|
-
'font-awesome-sass' is a Sass-powered version of [
|
6
|
-
Ruby on Rails, Compass, Sprockets, etc.
|
5
|
+
'font-awesome-sass' is a Sass-powered version of [Font Awesome](http://fontawesome.com/) for your Ruby projects with specific support for Ruby on Rails and Sprockets.
|
7
6
|
|
8
|
-
|
9
|
-
[bootstrap-sass](https://github.com/twbs/bootstrap-sass) project by the Bootstrap team
|
7
|
+
Refactored to support more Ruby environments with code and documentation humbly used from the excellent [bootstrap-sass](https://github.com/twbs/bootstrap-sass) project by the Bootstrap team
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
With the update to Font Awesome 5.x there are some breaking changes that will effect your use of this gem. Some of the changes include:
|
14
|
-
|
15
|
-
* Icon name changes
|
16
|
-
* New icons
|
17
|
-
* The use of an icon style (`solid`, `regular`, or `brands`)
|
18
|
-
|
19
|
-
You can find more detailed information on these changes on our [Getting Started](https://fontawesome.com/get-started/web-fonts-with-css) guide, our [How to Use](https://fontawesome.com/how-to-use/web-fonts-with-css) guide, and our [Upgrading from Version 4](https://fontawesome.com/how-to-use/upgrading-from-4) guide.
|
9
|
+
You can find more detailed information on these changes on our [Getting Started](https://fontawesome.com/docs/web/setup/get-started) guide, our [How to Use](https://fontawesome.com/docs/web/) guide, and our [Upgrade](https://fontawesome.com/docs/web/setup/upgrade/) guide.
|
20
10
|
|
21
11
|
## Installation
|
22
12
|
|
23
|
-
|
24
|
-
|
25
|
-
* [Ruby on Rails](#a-ruby-on-rails).
|
26
|
-
* [Compass](#b-compass-without-rails) not on Rails.
|
27
|
-
|
28
|
-
### a. Ruby on Rails
|
13
|
+
### Ruby on Rails
|
29
14
|
|
30
15
|
In your Gemfile include:
|
31
16
|
|
32
17
|
```ruby
|
33
|
-
gem 'font-awesome-sass', '~>
|
18
|
+
gem 'font-awesome-sass', '~> 6.1.0'
|
34
19
|
```
|
35
20
|
|
36
21
|
And then execute:
|
@@ -39,11 +24,9 @@ And then execute:
|
|
39
24
|
bundle install
|
40
25
|
```
|
41
26
|
|
42
|
-
Import the FontAwesome styles in your `app/assets/stylesheets/application.css.scss`. The `font-awesome
|
43
|
-
includes the sprockets assets helper Sass functions used for finding the proper path to the font file.
|
27
|
+
Import the FontAwesome styles in your `app/assets/stylesheets/application.css.scss`. The `font-awesome` file includes all the tools needed to get Font Awesome up and running for Rails.
|
44
28
|
|
45
29
|
```scss
|
46
|
-
@import "font-awesome-sprockets";
|
47
30
|
@import "font-awesome";
|
48
31
|
```
|
49
32
|
|
@@ -51,65 +34,38 @@ If `app/assets/stylesheets/application.css.scss` does not exist then rename `app
|
|
51
34
|
|
52
35
|
#### Rails Helper usage
|
53
36
|
|
54
|
-
With Font Awesome
|
37
|
+
With Font Awesome Free 6.x you now need to select what style of icon you want to use. Font Awesome Free 6.x has 3 styles:
|
55
38
|
|
56
|
-
* solid (`fas`)
|
57
|
-
* regular (`far`)
|
58
|
-
* brands (`fab`)
|
39
|
+
* solid (`fa-solid` or `fas`)
|
40
|
+
* regular (`fa-regular` or `far`)
|
41
|
+
* brands (`fa-brands` or `fab`)
|
59
42
|
|
60
43
|
In your view:
|
61
44
|
|
62
45
|
```ruby
|
46
|
+
icon('fa-solid', 'flag')
|
47
|
+
# => <i class="fa-solid fa-flag" aria-hidden="true"></i>
|
63
48
|
icon('fas', 'flag')
|
64
|
-
# => <i class="fas fa-flag"></i>
|
49
|
+
# => <i class="fas fa-flag" aria-hidden="true"></i>
|
50
|
+
|
65
51
|
```
|
66
52
|
|
67
53
|
```ruby
|
54
|
+
icon('fa-regular', 'address-book', class: 'strong')
|
55
|
+
# => <i class="fa-regular fa-address-book strong" aria-hidden="true"></i>
|
68
56
|
icon('far', 'address-book', class: 'strong')
|
69
|
-
# => <i class="far fa-address-book strong"></i>
|
57
|
+
# => <i class="far fa-address-book strong" aria-hidden="true"></i>
|
70
58
|
```
|
71
59
|
|
72
60
|
```ruby
|
61
|
+
icon('fa-brands', 'font-awesome', 'Font Awesome', id: 'my-icon', class: 'strong')
|
62
|
+
# => <i id="my-icon" class="fa-brands fa-font-awesome strong" aria-hidden="true"></i> Font Awesome
|
73
63
|
icon('fab', 'font-awesome', 'Font Awesome', id: 'my-icon', class: 'strong')
|
74
|
-
# => <i id="my-icon" class="fab fa-font-awesome strong"></i> Font Awesome
|
64
|
+
# => <i id="my-icon" class="fab fa-font-awesome strong" aria-hidden="true"></i> Font Awesome
|
75
65
|
```
|
76
66
|
|
77
67
|
Note: the icon helper can take a hash of options that will be passed to the content_tag helper
|
78
68
|
|
79
|
-
###
|
80
|
-
|
81
|
-
Install the gem
|
82
|
-
|
83
|
-
```sh
|
84
|
-
gem install font-awesome-sass
|
85
|
-
```
|
86
|
-
|
87
|
-
If you have an existing Compass project:
|
88
|
-
|
89
|
-
```ruby
|
90
|
-
# config.rb:
|
91
|
-
require 'font-awesome-sass'
|
92
|
-
```
|
93
|
-
|
94
|
-
Import the FontAwesome styles
|
95
|
-
|
96
|
-
```scss
|
97
|
-
@import "font-awesome-compass";
|
98
|
-
@import "font-awesome";
|
99
|
-
```
|
100
|
-
|
101
|
-
## Upgrading from FontAwesome::Sass 4.x
|
69
|
+
### Other Ruby Projects
|
102
70
|
|
103
|
-
|
104
|
-
|
105
|
-
4.x Syntax
|
106
|
-
|
107
|
-
```html
|
108
|
-
<i class="fa fa-github"></i>
|
109
|
-
```
|
110
|
-
|
111
|
-
5.x Syntax (GitHub icon exists in the Brands style)
|
112
|
-
|
113
|
-
```html
|
114
|
-
<i class="fab fa-github"></i>
|
115
|
-
```
|
71
|
+
The `path.scss` file contains a function for using the `font-path` function if found. If the function is not found it will use the `$fa-font-path` variable for the path to the webfont files. You can override this variable to where your framework will store the webfonts files.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,12 +1,16 @@
|
|
1
1
|
/*!
|
2
|
-
* Font Awesome Free
|
2
|
+
* Font Awesome Free 6.1.0 by @fontawesome - https://fontawesome.com
|
3
3
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2022 Fonticons, Inc.
|
4
5
|
*/
|
6
|
+
// Font Awesome core compile (Web Fonts-based)
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
@import "font-awesome/functions";
|
5
10
|
@import "font-awesome/variables";
|
6
11
|
@import "font-awesome/mixins";
|
7
|
-
@import "font-awesome/path";
|
8
12
|
@import "font-awesome/core";
|
9
|
-
@import "font-awesome/
|
13
|
+
@import "font-awesome/sizing";
|
10
14
|
@import "font-awesome/fixed-width";
|
11
15
|
@import "font-awesome/list";
|
12
16
|
@import "font-awesome/bordered-pulled";
|
@@ -14,4 +18,7 @@
|
|
14
18
|
@import "font-awesome/rotated-flipped";
|
15
19
|
@import "font-awesome/stacked";
|
16
20
|
@import "font-awesome/icons";
|
17
|
-
@import "font-awesome/screen-reader";
|
21
|
+
@import "font-awesome/screen-reader";
|
22
|
+
@import "font-awesome/solid";
|
23
|
+
@import "font-awesome/regular";
|
24
|
+
@import "font-awesome/brands";
|
@@ -1,19 +1,215 @@
|
|
1
|
-
//
|
1
|
+
// animating icons
|
2
2
|
// --------------------------
|
3
3
|
|
4
|
+
.#{$fa-css-prefix}-beat {
|
5
|
+
animation-name: #{$fa-css-prefix}-beat;
|
6
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
|
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, 0);
|
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.28, 0.84, 0.42, 1));
|
20
|
+
}
|
21
|
+
|
22
|
+
.#{$fa-css-prefix}-fade {
|
23
|
+
animation-name: #{$fa-css-prefix}-fade;
|
24
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
|
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(0.4, 0, 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, 0);
|
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(0.4, 0, 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, 0);
|
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, 0);
|
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
|
+
|
4
58
|
.#{$fa-css-prefix}-spin {
|
5
|
-
animation: fa-spin
|
59
|
+
animation-name: #{$fa-css-prefix}-spin;
|
60
|
+
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
|
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%,
|
103
|
+
90% {
|
104
|
+
transform: scale(1);
|
105
|
+
}
|
106
|
+
45% {
|
107
|
+
transform: scale(var(--#{$fa-css-prefix}-beat-scale, 1.25));
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@keyframes #{$fa-css-prefix}-bounce {
|
112
|
+
0% {
|
113
|
+
transform: scale(1, 1) translateY(0);
|
114
|
+
}
|
115
|
+
10% {
|
116
|
+
transform: scale(
|
117
|
+
var(--#{$fa-css-prefix}-bounce-start-scale-x, 1.1),
|
118
|
+
var(--#{$fa-css-prefix}-bounce-start-scale-y, 0.9)
|
119
|
+
)
|
120
|
+
translateY(0);
|
121
|
+
}
|
122
|
+
30% {
|
123
|
+
transform: scale(
|
124
|
+
var(--#{$fa-css-prefix}-bounce-jump-scale-x, 0.9),
|
125
|
+
var(--#{$fa-css-prefix}-bounce-jump-scale-y, 1.1)
|
126
|
+
)
|
127
|
+
translateY(var(--#{$fa-css-prefix}-bounce-height, -0.5em));
|
128
|
+
}
|
129
|
+
50% {
|
130
|
+
transform: scale(
|
131
|
+
var(--#{$fa-css-prefix}-bounce-land-scale-x, 1.05),
|
132
|
+
var(--#{$fa-css-prefix}-bounce-land-scale-y, 0.95)
|
133
|
+
)
|
134
|
+
translateY(0);
|
135
|
+
}
|
136
|
+
57% {
|
137
|
+
transform: scale(1, 1) translateY(var(--#{$fa-css-prefix}-bounce-rebound, -0.125em));
|
138
|
+
}
|
139
|
+
64% {
|
140
|
+
transform: scale(1, 1) translateY(0);
|
141
|
+
}
|
142
|
+
100% {
|
143
|
+
transform: scale(1, 1) translateY(0);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
@keyframes #{$fa-css-prefix}-fade {
|
148
|
+
50% {
|
149
|
+
opacity: var(--#{$fa-css-prefix}-fade-opacity, 0.4);
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
@keyframes #{$fa-css-prefix}-beat-fade {
|
154
|
+
0%,
|
155
|
+
100% {
|
156
|
+
opacity: var(--#{$fa-css-prefix}-beat-fade-opacity, 0.4);
|
157
|
+
transform: scale(1);
|
158
|
+
}
|
159
|
+
50% {
|
160
|
+
opacity: 1;
|
161
|
+
transform: scale(var(--#{$fa-css-prefix}-beat-fade-scale, 1.125));
|
162
|
+
}
|
6
163
|
}
|
7
164
|
|
8
|
-
|
9
|
-
|
165
|
+
@keyframes #{$fa-css-prefix}-flip {
|
166
|
+
50% {
|
167
|
+
transform: rotate3d(
|
168
|
+
var(--#{$fa-css-prefix}-flip-x, 0),
|
169
|
+
var(--#{$fa-css-prefix}-flip-y, 1),
|
170
|
+
var(--#{$fa-css-prefix}-flip-z, 0),
|
171
|
+
var(--#{$fa-css-prefix}-flip-angle, -180deg)
|
172
|
+
);
|
173
|
+
}
|
10
174
|
}
|
11
175
|
|
12
|
-
@keyframes fa-
|
176
|
+
@keyframes #{$fa-css-prefix}-shake {
|
13
177
|
0% {
|
178
|
+
transform: rotate(-15deg);
|
179
|
+
}
|
180
|
+
4% {
|
181
|
+
transform: rotate(15deg);
|
182
|
+
}
|
183
|
+
8%,
|
184
|
+
24% {
|
185
|
+
transform: rotate(-18deg);
|
186
|
+
}
|
187
|
+
12%,
|
188
|
+
28% {
|
189
|
+
transform: rotate(18deg);
|
190
|
+
}
|
191
|
+
16% {
|
192
|
+
transform: rotate(-22deg);
|
193
|
+
}
|
194
|
+
20% {
|
195
|
+
transform: rotate(22deg);
|
196
|
+
}
|
197
|
+
32% {
|
198
|
+
transform: rotate(-12deg);
|
199
|
+
}
|
200
|
+
36% {
|
201
|
+
transform: rotate(12deg);
|
202
|
+
}
|
203
|
+
40%,
|
204
|
+
100% {
|
14
205
|
transform: rotate(0deg);
|
15
206
|
}
|
207
|
+
}
|
16
208
|
|
209
|
+
@keyframes #{$fa-css-prefix}-spin {
|
210
|
+
0% {
|
211
|
+
transform: rotate(0deg);
|
212
|
+
}
|
17
213
|
100% {
|
18
214
|
transform: rotate(360deg);
|
19
215
|
}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
//
|
1
|
+
// bordered + pulled icons
|
2
2
|
// -------------------------
|
3
3
|
|
4
4
|
.#{$fa-css-prefix}-border {
|
5
|
-
border:
|
6
|
-
border-radius:
|
7
|
-
|
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});
|
8
10
|
}
|
9
11
|
|
10
|
-
.#{$fa-css-prefix}-pull-left {
|
11
|
-
|
12
|
+
.#{$fa-css-prefix}-pull-left {
|
13
|
+
float: left;
|
14
|
+
margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
|
15
|
+
}
|
12
16
|
|
13
|
-
.#{$fa-css-prefix}
|
14
|
-
|
15
|
-
|
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});
|
20
20
|
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.1.0 by @fontawesome - https://fontawesome.com
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4
|
+
* Copyright 2022 Fonticons, Inc.
|
5
|
+
*/
|
6
|
+
@import "functions";
|
7
|
+
@import "variables";
|
8
|
+
|
9
|
+
:root,
|
10
|
+
:host {
|
11
|
+
--#{$fa-css-prefix}-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
12
|
+
}
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: "Font Awesome 6 Brands";
|
16
|
+
font-style: normal;
|
17
|
+
font-weight: 400;
|
18
|
+
font-display: $fa-font-display;
|
19
|
+
src: url(fa-font-path("fa-brands-400.woff2")) format("woff2"),
|
20
|
+
url(fa-font-path("fa-brands-400.ttf")) format("truetype");
|
21
|
+
}
|
22
|
+
|
23
|
+
.fab,
|
24
|
+
.#{$fa-css-prefix}-brands {
|
25
|
+
font-family: "Font Awesome 6 Brands";
|
26
|
+
font-weight: 400;
|
27
|
+
}
|
28
|
+
|
29
|
+
@each $name, $icon in $fa-brand-icons {
|
30
|
+
.#{$fa-css-prefix}-#{$name}:before {
|
31
|
+
content: unquote('"#{ $icon }"');
|
32
|
+
}
|
33
|
+
}
|
@@ -1,19 +1,31 @@
|
|
1
|
-
//
|
1
|
+
// base icon class definition
|
2
2
|
// -------------------------
|
3
3
|
|
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
|
+
|
4
9
|
.#{$fa-css-prefix},
|
5
10
|
.fas,
|
11
|
+
.#{$fa-css-prefix}-solid,
|
6
12
|
.far,
|
13
|
+
.#{$fa-css-prefix}-regular,
|
7
14
|
.fal,
|
15
|
+
.#{$fa-css-prefix}-light,
|
16
|
+
.fat,
|
17
|
+
.#{$fa-css-prefix}-thin,
|
8
18
|
.fad,
|
9
|
-
|
19
|
+
.#{$fa-css-prefix}-duotone,
|
20
|
+
.fab,
|
21
|
+
.#{$fa-css-prefix}-brands {
|
10
22
|
-moz-osx-font-smoothing: grayscale;
|
11
23
|
-webkit-font-smoothing: antialiased;
|
12
|
-
display:
|
24
|
+
display: var(--#{$fa-css-prefix}-display, #{$fa-display});
|
13
25
|
font-style: normal;
|
14
26
|
font-variant: normal;
|
15
|
-
text-rendering: auto;
|
16
27
|
line-height: 1;
|
28
|
+
text-rendering: auto;
|
17
29
|
}
|
18
30
|
|
19
31
|
%fa-icon {
|
@@ -0,0 +1,66 @@
|
|
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) * 0.1;
|
55
|
+
}
|
56
|
+
@return ($quotient + $remainder) * $sign;
|
57
|
+
}
|
58
|
+
|
59
|
+
// fa-font-path: function used to set font path to webfont files
|
60
|
+
@function fa-font-path($file) {
|
61
|
+
@if function-exists("font-path") {
|
62
|
+
@return font-path("font-awesome/#{$file}");
|
63
|
+
} @else {
|
64
|
+
@return "#{$fa-font-path}/#{$file}";
|
65
|
+
}
|
66
|
+
}
|