font-awesome-sass 6.0.0 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +74 -0
- data/README.md +7 -59
- 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 +4 -13
- data/assets/stylesheets/font-awesome/_brands.scss +30 -0
- data/assets/stylesheets/font-awesome/_core.scss +6 -6
- data/assets/stylesheets/font-awesome/_functions.scss +16 -1
- data/assets/stylesheets/font-awesome/_icons.scss +1 -1
- data/assets/stylesheets/font-awesome/_regular.scss +26 -0
- data/assets/stylesheets/font-awesome/_screen-reader.scss +4 -4
- data/assets/stylesheets/font-awesome/_shims.scss +306 -291
- data/assets/stylesheets/font-awesome/_solid.scss +26 -0
- data/assets/stylesheets/font-awesome/_variables.scss +711 -96
- data/font-awesome-sass.gemspec +1 -1
- data/lib/font_awesome/sass/version.rb +1 -1
- metadata +8 -8
- data/assets/stylesheets/_brands.scss +0 -33
- data/assets/stylesheets/_regular.scss +0 -27
- data/assets/stylesheets/_solid.scss +0 -26
- data/assets/stylesheets/_v4-shims.scss +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f971797296d05b70ae30be5981892ad19d0da083a7648d006e54ad803a63b8
|
4
|
+
data.tar.gz: 9b89ebd2290b5973883aa114a907b21be6d4d3e036ea716a3b319ec2ab69be2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 876f4c374c7d93e9ac7c9d4ab609ec70e2675fc488d23cfeaa429ae137d587a4a04387613a02ff2c3eeaa6e920dcfa91b808009c6d6f01b626dd4f0448eeecac
|
7
|
+
data.tar.gz: 4bc6d16aa2b2664cbc26bc5344a0fb9e78d8a408e0ca387a5e2062eee7a413ff3fd358b95ae90ec85bc5408b7b25d87171cf7a8fcb5ccf5f7a54923babd948af
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to make participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community includes using an official project e-mail
|
51
|
+
address, posting via an official social media account or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at <hello@fontawesome.com>. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality about to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/README.md
CHANGED
@@ -2,70 +2,18 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/font-awesome-sass)
|
4
4
|
|
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.
|
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.
|
6
6
|
|
7
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
|
8
8
|
|
9
|
-
|
9
|
+
---
|
10
10
|
|
11
|
-
##
|
11
|
+
## Documentation
|
12
12
|
|
13
|
-
|
13
|
+
Official documentation is hosted at fontawesome.com. Check out the [Ruby on Rails](https://fontawesome.com/docs/web/use-with/ruby-on-rails/) docs.
|
14
14
|
|
15
|
-
|
15
|
+
## How to Help
|
16
16
|
|
17
|
-
|
18
|
-
gem 'font-awesome-sass', '~> 6.0.0'
|
19
|
-
```
|
17
|
+
1. Review the following docs before diving in: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
```sh
|
24
|
-
bundle install
|
25
|
-
```
|
26
|
-
|
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.
|
28
|
-
|
29
|
-
```scss
|
30
|
-
@import "font-awesome";
|
31
|
-
```
|
32
|
-
|
33
|
-
If `app/assets/stylesheets/application.css.scss` does not exist then rename `app/assets/stylesheets/application.css` and add the `@import` statements below the `*= require` statements but outside of the comment block.
|
34
|
-
|
35
|
-
#### Rails Helper usage
|
36
|
-
|
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:
|
38
|
-
|
39
|
-
* solid (`fa-solid` or `fas`)
|
40
|
-
* regular (`fa-regular` or `far`)
|
41
|
-
* brands (`fa-brands` or `fab`)
|
42
|
-
|
43
|
-
In your view:
|
44
|
-
|
45
|
-
```ruby
|
46
|
-
icon('fa-solid', 'flag')
|
47
|
-
# => <i class="fa-solid fa-flag" aria-hidden="true"></i>
|
48
|
-
icon('fas', 'flag')
|
49
|
-
# => <i class="fas fa-flag" aria-hidden="true"></i>
|
50
|
-
|
51
|
-
```
|
52
|
-
|
53
|
-
```ruby
|
54
|
-
icon('fa-regular', 'address-book', class: 'strong')
|
55
|
-
# => <i class="fa-regular fa-address-book strong" aria-hidden="true"></i>
|
56
|
-
icon('far', 'address-book', class: 'strong')
|
57
|
-
# => <i class="far fa-address-book strong" aria-hidden="true"></i>
|
58
|
-
```
|
59
|
-
|
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
|
63
|
-
icon('fab', 'font-awesome', 'Font Awesome', id: 'my-icon', class: 'strong')
|
64
|
-
# => <i id="my-icon" class="fab fa-font-awesome strong" aria-hidden="true"></i> Font Awesome
|
65
|
-
```
|
66
|
-
|
67
|
-
Note: the icon helper can take a hash of options that will be passed to the content_tag helper
|
68
|
-
|
69
|
-
### Other Ruby Projects
|
70
|
-
|
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.
|
19
|
+
2. Check the existing [issues](https://github.com/FortAwesome/font-awesome-sass/issues) and see if you can help!
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Font Awesome Free 6.
|
2
|
+
* Font Awesome Free 6.1.1 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
4
|
* Copyright 2022 Fonticons, Inc.
|
5
5
|
*/
|
@@ -19,15 +19,6 @@
|
|
19
19
|
@import "font-awesome/stacked";
|
20
20
|
@import "font-awesome/icons";
|
21
21
|
@import "font-awesome/screen-reader";
|
22
|
-
|
23
|
-
@
|
24
|
-
|
25
|
-
@return font-path("font-awesome/#{$file}");
|
26
|
-
} @else {
|
27
|
-
@return "#{$fa-font-path}/#{$file}";
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
@import "solid";
|
32
|
-
@import "regular";
|
33
|
-
@import "brands";
|
22
|
+
@import "font-awesome/solid";
|
23
|
+
@import "font-awesome/regular";
|
24
|
+
@import "font-awesome/brands";
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.1.2 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, :host {
|
10
|
+
--#{$fa-css-prefix}-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
11
|
+
}
|
12
|
+
|
13
|
+
@font-face {
|
14
|
+
font-family: 'Font Awesome 6 Brands';
|
15
|
+
font-style: normal;
|
16
|
+
font-weight: 400;
|
17
|
+
font-display: $fa-font-display;
|
18
|
+
src: url(fa-font-path('fa-brands-400.woff2')) format('woff2'),
|
19
|
+
url(fa-font-path('fa-brands-400.ttf')) format('truetype');
|
20
|
+
}
|
21
|
+
|
22
|
+
.fab,
|
23
|
+
.#{$fa-css-prefix}-brands {
|
24
|
+
font-family: 'Font Awesome 6 Brands';
|
25
|
+
font-weight: 400;
|
26
|
+
}
|
27
|
+
|
28
|
+
@each $name, $icon in $fa-brand-icons {
|
29
|
+
.#{$fa-css-prefix}-#{$name}:before { content: unquote("\"#{ $icon }\""); }
|
30
|
+
}
|
@@ -8,17 +8,17 @@
|
|
8
8
|
|
9
9
|
.#{$fa-css-prefix},
|
10
10
|
.fas,
|
11
|
-
|
11
|
+
.#{$fa-css-prefix}-solid,
|
12
12
|
.far,
|
13
|
-
|
13
|
+
.#{$fa-css-prefix}-regular,
|
14
14
|
.fal,
|
15
|
-
|
15
|
+
.#{$fa-css-prefix}-light,
|
16
16
|
.fat,
|
17
|
-
|
17
|
+
.#{$fa-css-prefix}-thin,
|
18
18
|
.fad,
|
19
|
-
|
19
|
+
.#{$fa-css-prefix}-duotone,
|
20
20
|
.fab,
|
21
|
-
|
21
|
+
.#{$fa-css-prefix}-brands {
|
22
22
|
-moz-osx-font-smoothing: grayscale;
|
23
23
|
-webkit-font-smoothing: antialiased;
|
24
24
|
display: var(--#{$fa-css-prefix}-display, #{$fa-display});
|
@@ -1,7 +1,12 @@
|
|
1
1
|
// functions
|
2
2
|
// --------------------------
|
3
3
|
|
4
|
-
//
|
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
|
5
10
|
//
|
6
11
|
// Licensed under: The MIT License (MIT)
|
7
12
|
//
|
@@ -25,6 +30,7 @@
|
|
25
30
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
31
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
27
32
|
// THE SOFTWARE.
|
33
|
+
|
28
34
|
@function fa-divide($dividend, $divisor, $precision: 10) {
|
29
35
|
$sign: if($dividend > 0 and $divisor > 0, 1, -1);
|
30
36
|
$dividend: abs($dividend);
|
@@ -49,3 +55,12 @@
|
|
49
55
|
}
|
50
56
|
@return ($quotient + $remainder) * $sign;
|
51
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
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Awesome Free 6.1.2 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, :host {
|
10
|
+
--#{$fa-css-prefix}-font-regular: normal 400 1em/1 "#{ $fa-style-family }";
|
11
|
+
}
|
12
|
+
|
13
|
+
@font-face {
|
14
|
+
font-family: 'Font Awesome 6 Free';
|
15
|
+
font-style: normal;
|
16
|
+
font-weight: 400;
|
17
|
+
font-display: $fa-font-display;
|
18
|
+
src: url(fa-font-path('fa-regular-400.woff2')) format('woff2'),
|
19
|
+
url(fa-font-path('fa-regular-400.ttf')) format('truetype');
|
20
|
+
}
|
21
|
+
|
22
|
+
.far,
|
23
|
+
.#{$fa-css-prefix}-regular {
|
24
|
+
font-family: 'Font Awesome 6 Free';
|
25
|
+
font-weight: 400;
|
26
|
+
}
|
@@ -3,12 +3,12 @@
|
|
3
3
|
|
4
4
|
// only display content to screen readers
|
5
5
|
.sr-only,
|
6
|
-
|
7
|
-
@include fa-sr-only;
|
6
|
+
.#{$fa-css-prefix}-sr-only {
|
7
|
+
@include fa-sr-only;
|
8
8
|
}
|
9
9
|
|
10
10
|
// use in conjunction with .sr-only to only display content when it's focused
|
11
11
|
.sr-only-focusable,
|
12
|
-
|
13
|
-
@include fa-sr-only-focusable;
|
12
|
+
.#{$fa-css-prefix}-sr-only-focusable {
|
13
|
+
@include fa-sr-only-focusable;
|
14
14
|
}
|