font-awesome-sass 4.4.0 → 5.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/README.md +36 -16
- data/assets/fonts/font-awesome/fa-brands-400.eot +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.svg +3717 -0
- data/assets/fonts/font-awesome/fa-brands-400.ttf +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.woff +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.eot +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.svg +801 -0
- data/assets/fonts/font-awesome/fa-regular-400.ttf +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.woff +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.eot +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.svg +5028 -0
- data/assets/fonts/font-awesome/fa-solid-900.ttf +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.woff +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.woff2 +0 -0
- data/assets/stylesheets/{font-awesome.scss → _font-awesome.scss} +3 -3
- data/assets/stylesheets/_v4-shims.scss +6 -0
- data/assets/stylesheets/font-awesome/_animated.scss +6 -20
- data/assets/stylesheets/font-awesome/_bordered-pulled.scss +6 -11
- data/assets/stylesheets/font-awesome/_core.scss +16 -6
- data/assets/stylesheets/font-awesome/_fixed-width.scss +1 -1
- data/assets/stylesheets/font-awesome/_icons.scss +1460 -675
- data/assets/stylesheets/font-awesome/_larger.scss +16 -6
- data/assets/stylesheets/font-awesome/_list.scss +7 -8
- data/assets/stylesheets/font-awesome/_mixins.scss +44 -13
- data/assets/stylesheets/font-awesome/_path.scss +50 -8
- data/assets/stylesheets/font-awesome/_rotated-flipped.scss +10 -6
- data/assets/stylesheets/font-awesome/_screen-reader.scss +5 -0
- data/assets/stylesheets/font-awesome/_shims.scss +2066 -0
- data/assets/stylesheets/font-awesome/_stacked.scss +19 -8
- data/assets/stylesheets/font-awesome/_variables.scss +1477 -683
- data/font-awesome-sass.gemspec +3 -4
- data/lib/font-awesome-sass.rb +13 -15
- data/lib/font_awesome/sass/rails/engine.rb +6 -2
- data/lib/font_awesome/sass/rails/helpers.rb +2 -2
- data/lib/font_awesome/sass/rails/railtie.rb +5 -3
- data/lib/font_awesome/sass/version.rb +1 -1
- metadata +31 -35
- data/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/assets/fonts/font-awesome/fontawesome-webfont.svg +0 -640
- data/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/assets/stylesheets/font-awesome/_extras.scss +0 -44
@@ -1,13 +1,23 @@
|
|
1
1
|
// Icon Sizes
|
2
2
|
// -------------------------
|
3
3
|
|
4
|
-
|
4
|
+
// makes the font 33% larger relative to the icon container
|
5
5
|
.#{$fa-css-prefix}-lg {
|
6
6
|
font-size: (4em / 3);
|
7
7
|
line-height: (3em / 4);
|
8
|
-
vertical-align:
|
8
|
+
vertical-align: -.0667em;
|
9
|
+
}
|
10
|
+
|
11
|
+
.#{$fa-css-prefix}-xs {
|
12
|
+
font-size: .75em;
|
13
|
+
}
|
14
|
+
|
15
|
+
.#{$fa-css-prefix}-sm {
|
16
|
+
font-size: .875em;
|
17
|
+
}
|
18
|
+
|
19
|
+
@for $i from 1 through 10 {
|
20
|
+
.#{$fa-css-prefix}-#{$i}x {
|
21
|
+
font-size: $i * 1em;
|
22
|
+
}
|
9
23
|
}
|
10
|
-
.#{$fa-css-prefix}-2x { font-size: 2em; }
|
11
|
-
.#{$fa-css-prefix}-3x { font-size: 3em; }
|
12
|
-
.#{$fa-css-prefix}-4x { font-size: 4em; }
|
13
|
-
.#{$fa-css-prefix}-5x { font-size: 5em; }
|
@@ -2,18 +2,17 @@
|
|
2
2
|
// -------------------------
|
3
3
|
|
4
4
|
.#{$fa-css-prefix}-ul {
|
5
|
-
padding-left: 0;
|
6
|
-
margin-left: $fa-li-width;
|
7
5
|
list-style-type: none;
|
6
|
+
margin-left: $fa-li-width * 5/4;
|
7
|
+
padding-left: 0;
|
8
|
+
|
8
9
|
> li { position: relative; }
|
9
10
|
}
|
11
|
+
|
10
12
|
.#{$fa-css-prefix}-li {
|
11
|
-
position: absolute;
|
12
13
|
left: -$fa-li-width;
|
13
|
-
|
14
|
-
top: (2em / 14);
|
14
|
+
position: absolute;
|
15
15
|
text-align: center;
|
16
|
-
|
17
|
-
|
18
|
-
}
|
16
|
+
width: $fa-li-width;
|
17
|
+
line-height: inherit;
|
19
18
|
}
|
@@ -1,25 +1,56 @@
|
|
1
1
|
// Mixins
|
2
2
|
// --------------------------
|
3
3
|
|
4
|
-
@mixin fa-icon
|
5
|
-
display: inline-block;
|
6
|
-
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
|
7
|
-
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
8
|
-
text-rendering: auto; // optimizelegibility throws things off #1094
|
4
|
+
@mixin fa-icon {
|
9
5
|
-webkit-font-smoothing: antialiased;
|
10
6
|
-moz-osx-font-smoothing: grayscale;
|
7
|
+
display: inline-block;
|
8
|
+
font-style: normal;
|
9
|
+
font-variant: normal;
|
10
|
+
font-weight: normal;
|
11
|
+
line-height: 1;
|
11
12
|
}
|
12
13
|
|
13
14
|
@mixin fa-icon-rotate($degrees, $rotation) {
|
14
|
-
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
15
|
-
|
16
|
-
-ms-transform: rotate($degrees);
|
17
|
-
transform: rotate($degrees);
|
15
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
|
16
|
+
transform: rotate($degrees);
|
18
17
|
}
|
19
18
|
|
20
19
|
@mixin fa-icon-flip($horiz, $vert, $rotation) {
|
21
|
-
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
|
21
|
+
transform: scale($horiz, $vert);
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
// Only display content to screen readers. A la Bootstrap 4.
|
26
|
+
//
|
27
|
+
// See: http://a11yproject.com/posts/how-to-hide-content/
|
28
|
+
|
29
|
+
@mixin sr-only {
|
30
|
+
border: 0;
|
31
|
+
clip: rect(0, 0, 0, 0);
|
32
|
+
height: 1px;
|
33
|
+
margin: -1px;
|
34
|
+
overflow: hidden;
|
35
|
+
padding: 0;
|
36
|
+
position: absolute;
|
37
|
+
width: 1px;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Use in conjunction with .sr-only to only display content when it's focused.
|
41
|
+
//
|
42
|
+
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
43
|
+
//
|
44
|
+
// Credit: HTML5 Boilerplate
|
45
|
+
|
46
|
+
@mixin sr-only-focusable {
|
47
|
+
&:active,
|
48
|
+
&:focus {
|
49
|
+
clip: auto;
|
50
|
+
height: auto;
|
51
|
+
margin: 0;
|
52
|
+
overflow: visible;
|
53
|
+
position: static;
|
54
|
+
width: auto;
|
55
|
+
}
|
25
56
|
}
|
@@ -1,14 +1,56 @@
|
|
1
1
|
/* FONT PATH
|
2
2
|
* -------------------------- */
|
3
3
|
|
4
|
+
@font-face {
|
5
|
+
font-family: 'Font Awesome 5 Free';
|
6
|
+
font-style: normal;
|
7
|
+
font-weight: 900;
|
8
|
+
font-display: $fa-font-display;
|
9
|
+
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-solid-900.eot'), '#{$fa-font-path}/fa-solid-900.eot'));
|
10
|
+
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-solid-900.eot#iefix'), '#{$fa-font-path}/fa-solid-900.eot#iefix')) format('embedded-opentype'),
|
11
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-solid-900.woff2'), '#{$fa-font-path}/fa-solid-900.woff2')) format('woff2'),
|
12
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-solid-900.woff'), '#{$fa-font-path}/fa-solid-900.woff')) format('woff'),
|
13
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-solid-900.ttf'), '#{$fa-font-path}/fa-solid-900.ttf')) format('truetype'),
|
14
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-solid-900.svg#fontawesome'), '#{$fa-font-path}/fa-solid-900.svg#fontawesome')) format('svg');
|
15
|
+
}
|
16
|
+
|
17
|
+
@font-face {
|
18
|
+
font-family: 'Font Awesome 5 Free';
|
19
|
+
font-style: normal;
|
20
|
+
font-weight: 400;
|
21
|
+
font-display: $fa-font-display;
|
22
|
+
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-regular-400.eot'), '#{$fa-font-path}/fa-regular-400.eot'));
|
23
|
+
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-regular-400.eot#iefix'), '#{$fa-font-path}/fa-regular-400.eot#iefix')) format('embedded-opentype'),
|
24
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-regular-400.woff2'), '#{$fa-font-path}/fa-regular-400.woff2')) format('woff2'),
|
25
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-regular-400.woff'), '#{$fa-font-path}/fa-regular-400.woff')) format('woff'),
|
26
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-regular-400.ttf'), '#{$fa-font-path}/fa-regular-400.ttf')) format('truetype'),
|
27
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-regular-400.svg#fontawesome'), '#{$fa-font-path}/fa-regular-400.svg#fontawesome')) format('svg');
|
28
|
+
}
|
29
|
+
|
4
30
|
@font-face {
|
5
|
-
font-family: '
|
6
|
-
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}#{$fa-font-name}.eot'), '#{$fa-font-path}#{$fa-font-name}.eot'));
|
7
|
-
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}#{$fa-font-name}.eot?#iefix'), '#{$fa-font-path}#{$fa-font-name}.eot?#iefix')) format('embedded-opentype'),
|
8
|
-
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}#{$fa-font-name}.woff2'), '#{$fa-font-path}#{$fa-font-name}.woff2')) format('woff2'),
|
9
|
-
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}#{$fa-font-name}.woff'), '#{$fa-font-path}#{$fa-font-name}.woff')) format('woff'),
|
10
|
-
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}#{$fa-font-name}.ttf'), '#{$fa-font-path}#{$fa-font-name}.ttf')) format('truetype'),
|
11
|
-
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}#{$fa-font-name}.svg#fontawesomeregular'), '#{$fa-font-path}#{$fa-font-name}.svg#fontawesomeregular')) format('svg');
|
12
|
-
font-weight: normal;
|
31
|
+
font-family: 'Font Awesome 5 Brands';
|
13
32
|
font-style: normal;
|
33
|
+
font-weight: normal;
|
34
|
+
font-display: $fa-font-display;
|
35
|
+
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-brands-400.eot'), '#{$fa-font-path}/fa-brands-400.eot'));
|
36
|
+
src: url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-brands-400.eot#iefix'), '#{$fa-font-path}/fa-brands-400.eot#iefix')) format('embedded-opentype'),
|
37
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-brands-400.woff2'), '#{$fa-font-path}/fa-brands-400.woff2')) format('woff2'),
|
38
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-brands-400.woff'), '#{$fa-font-path}/fa-brands-400.woff')) format('woff'),
|
39
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-brands-400.ttf'), '#{$fa-font-path}/fa-brands-400.ttf')) format('truetype'),
|
40
|
+
url(if($fa-sass-asset-helper, fa-font-path('#{$fa-font-path}/fa-brands-400.svg#fontawesome'), '#{$fa-font-path}/fa-brands-400.svg#fontawesome')) format('svg');
|
41
|
+
}
|
42
|
+
|
43
|
+
.fa,
|
44
|
+
.fas {
|
45
|
+
font-family: 'Font Awesome 5 Free';
|
46
|
+
font-weight: 900;
|
47
|
+
}
|
48
|
+
|
49
|
+
.far {
|
50
|
+
font-family: 'Font Awesome 5 Free';
|
51
|
+
font-weight: 400;
|
52
|
+
}
|
53
|
+
|
54
|
+
.fab {
|
55
|
+
font-family: 'Font Awesome 5 Brands';
|
14
56
|
}
|
@@ -7,14 +7,18 @@
|
|
7
7
|
|
8
8
|
.#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); }
|
9
9
|
.#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); }
|
10
|
+
.#{$fa-css-prefix}-flip-both, .#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(-1, -1, 2); }
|
10
11
|
|
11
12
|
// Hook for IE8-9
|
12
13
|
// -------------------------
|
13
14
|
|
14
|
-
:root
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
:root {
|
16
|
+
.#{$fa-css-prefix}-rotate-90,
|
17
|
+
.#{$fa-css-prefix}-rotate-180,
|
18
|
+
.#{$fa-css-prefix}-rotate-270,
|
19
|
+
.#{$fa-css-prefix}-flip-horizontal,
|
20
|
+
.#{$fa-css-prefix}-flip-vertical,
|
21
|
+
.#{$fa-css-prefix}-flip-both {
|
22
|
+
filter: none;
|
23
|
+
}
|
20
24
|
}
|