This commit is contained in:
Thomas 2023-12-01 01:28:10 -07:00 committed by GitHub
commit 397380ebfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 8 deletions

View file

@ -1,9 +1,11 @@
// Base Class Definition
// -------------------------
@use "sass:list";
.#{$fa-css-prefix} {
display: inline-block;
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} #{$fa-font-family}; // shortening font declaration
font: normal normal normal list.slash($fa-font-size-base, $fa-line-height-base) #{$fa-font-family}; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;

View file

@ -1,6 +1,8 @@
// Fixed Width Icons
// -------------------------
@use "sass:math";
.#{$fa-css-prefix}-fw {
width: (18em / 14);
width: math.div(18em, 14);
text-align: center;
}

View file

@ -2,9 +2,11 @@
// -------------------------
/* makes the font 33% larger relative to the icon container */
@use "sass:math";
.#{$fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
font-size: math.div(4em, 3);
line-height: (3em * 0.25);
vertical-align: -15%;
}
.#{$fa-css-prefix}-2x { font-size: 2em; }

View file

@ -1,6 +1,8 @@
// List Icons
// -------------------------
@use "sass:math";
.#{$fa-css-prefix}-ul {
padding-left: 0;
margin-left: $fa-li-width;
@ -11,9 +13,9 @@
position: absolute;
left: -$fa-li-width;
width: $fa-li-width;
top: (2em / 14);
top: math.div(2em, 14);
text-align: center;
&.#{$fa-css-prefix}-lg {
left: -$fa-li-width + (4em / 14);
left: -$fa-li-width + math.div(4em, 14);
}
}

View file

@ -1,9 +1,11 @@
// Mixins
// --------------------------
@use "sass:list";
@mixin fa-icon() {
display: inline-block;
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} #{$fa-font-family}; // shortening font declaration
font: normal normal normal list.slash($fa-font-size-base, $fa-line-height-base) #{$fa-font-family}; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;

View file

@ -1,6 +1,8 @@
// Variables
// --------------------------
@use "sass:math";
$fa-font-path: "../fonts" !default;
$fa-font-size-base: 14px !default;
$fa-line-height-base: 1 !default;
@ -9,7 +11,7 @@ $fa-font-family: "ForkAwesome" !default;
$fa-version: "1.2.0" !default;
$fa-border-color: #eee !default;
$fa-inverse: #fff !default;
$fa-li-width: (30em / 14) !default;
$fa-li-width: math.div(30em, 14) !default;
$fa-var-500px: \f26e;
$fa-var-activitypub: \f2f2;