Skip to content

Commit

Permalink
Update fontawesome
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Nov 22, 2024
1 parent 5fdc42b commit 156ef19
Show file tree
Hide file tree
Showing 15 changed files with 438 additions and 851 deletions.
2 changes: 1 addition & 1 deletion _sass/external/_font-awesome.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Type-on-strap Font Awesome kit v6.5.1
* Type-on-strap Font Awesome kit v6.7.1
* Find the version and license of the included Font Awesome here: _sass/external/font-awesome/fontawesome.scss
*/
$fa-inverse: var(--background);
Expand Down
1 change: 0 additions & 1 deletion _sass/external/font-awesome/_animated.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,3 @@
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

4 changes: 2 additions & 2 deletions _sass/external/font-awesome/_bordered-pulled.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
}

.#{$fa-css-prefix}-pull-left {
.#{$fa-css-prefix}-pull-left {
float: left;
margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
}

.#{$fa-css-prefix}-pull-right {
.#{$fa-css-prefix}-pull-right {
float: right;
margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
}
28 changes: 17 additions & 11 deletions _sass/external/font-awesome/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
}

.#{$fa-css-prefix},
.#{$fa-css-prefix}-classic,
.#{$fa-css-prefix}-sharp,
.fas,
.#{$fa-css-prefix}-solid,
.far,
.#{$fa-css-prefix}-regular,
.fab,
.#{$fa-css-prefix}-brands {
.#{$fa-css-prefix}-solid,
.#{$fa-css-prefix}-regular,
.#{$fa-css-prefix}-brands,
.#{$fa-css-prefix} {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: var(--#{$fa-css-prefix}-display, #{$fa-display});
Expand All @@ -24,20 +22,28 @@
text-rendering: auto;
}

.fas,
.fas::before,
.far::before,
.fab::before,
.#{$fa-css-prefix}-solid::before,
.#{$fa-css-prefix}-regular::before,
.#{$fa-css-prefix}-brands::before,
.fa::before {
content: var(#{$fa-icon-property});
}

.#{$fa-css-prefix}-classic,
.fas,
.#{$fa-css-prefix}-solid,
.far,
.#{$fa-css-prefix}-regular {
font-family: 'Font Awesome 6 Free';
}

.fab,
.#{$fa-css-prefix}-brands {
.#{$fa-css-prefix}-brands,
.fab {
font-family: 'Font Awesome 6 Brands';
}


%fa-icon {
@include fa-icon;
}
5 changes: 4 additions & 1 deletion _sass/external/font-awesome/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
readers do not read off random characters that represent icons */

@each $name, $icon in $fa-icons {
.#{$fa-css-prefix}-#{$name}::before { content: unquote("\"#{ $icon }\""); }
.#{$fa-css-prefix}-#{$name} {
#{$fa-icon-property}: unquote("\"#{ $icon }\"");
#{$fa-duotone-icon-property}: unquote("\"#{$icon}#{$icon}\"");
}
}

2 changes: 1 addition & 1 deletion _sass/external/font-awesome/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.#{$fa-css-prefix}-li {
left: calc(var(--#{$fa-css-prefix}-li-width, #{$fa-li-width}) * -1);
left: calc(-1 * var(--#{$fa-css-prefix}-li-width, #{$fa-li-width}));
position: absolute;
text-align: center;
width: var(--#{$fa-css-prefix}-li-width, #{$fa-li-width});
Expand Down
24 changes: 7 additions & 17 deletions _sass/external/font-awesome/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,24 @@
}

// sets a specific icon family to use alongside style + icon mixins
@mixin fa-family-classic() {
@extend .fa-classic;
}

// convenience mixins for declaring pseudo-elements by CSS variable,
// including all style-specific font properties, and both the ::before
// and ::after elements in the duotone case.
// including all style-specific font properties
@mixin fa-icon-solid($fa-var) {
@extend %fa-icon;
@extend .fa-solid;

&::before {
content: unquote("\"#{ $fa-var }\"");
}
& { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
}

@mixin fa-icon-regular($fa-var) {
@extend %fa-icon;
@extend .fa-regular;

&::before {
content: unquote("\"#{ $fa-var }\"");
}
& { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
}

@mixin fa-icon-brands($fa-var) {
@extend %fa-icon;
@extend .fa-brands;

&::before {
content: unquote("\"#{ $fa-var }\"");
}
& { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
}

4 changes: 2 additions & 2 deletions _sass/external/font-awesome/_rotated-flipped.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
}

.#{$fa-css-prefix}-flip-both,
.#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical {
.#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical {
transform: scale(-1, -1);
}

.#{$fa-css-prefix}-rotate-by {
transform: rotate(var(--#{$fa-css-prefix}-rotate-angle, none));
transform: rotate(var(--#{$fa-css-prefix}-rotate-angle, 0));
}
Loading

0 comments on commit 156ef19

Please sign in to comment.