Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
[Icons] Global variable update (#632)
Browse files Browse the repository at this point in the history
* [Icons] Global variable update

* Reverted to base class in order to reduce redundant css

* Adjusted comment
  • Loading branch information
vincentsalucci authored Jan 25, 2022
1 parent e1d4c4c commit 946fc20
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions angular/src/scss/bwicons/styles/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$icomoon-font-family: "bwi-font" !default;
$icomoon-font-path: "fonts" !default;

// New font sheet? Update the font-face information below
@font-face {
font-family: "#{$icomoon-font-family}";
Expand All @@ -8,6 +11,22 @@
font-display: block;
}

// Base Class
.bwi {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: "#{$icomoon-font-family}" !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
/* Better Font Rendering */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

// Fixed Width Icons
.bwi-fw {
width: (18em / 14);
Expand Down Expand Up @@ -95,9 +114,6 @@
}

// For new icons - add their glyph name and value to the map below
$icomoon-font-family: "bwi-font" !default;
$icomoon-font-path: "fonts" !default;

$icons: (
"save-changes": "\e988",
"browser": "\e985",
Expand Down Expand Up @@ -243,19 +259,6 @@ $icons: (

@each $name, $glyph in $icons {
.bwi-#{$name}:before {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: "#{$icomoon-font-family}" !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: $glyph;
}
}
Expand Down

0 comments on commit 946fc20

Please sign in to comment.