mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-20 02:01:47 +01:00
[Icons] Global variable update (#632)
* [Icons] Global variable update * Reverted to base class in order to reduce redundant css * Adjusted comment
This commit is contained in:
parent
e1d4c4c903
commit
946fc20674
@ -1,3 +1,6 @@
|
|||||||
|
$icomoon-font-family: "bwi-font" !default;
|
||||||
|
$icomoon-font-path: "fonts" !default;
|
||||||
|
|
||||||
// New font sheet? Update the font-face information below
|
// New font sheet? Update the font-face information below
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "#{$icomoon-font-family}";
|
font-family: "#{$icomoon-font-family}";
|
||||||
@ -8,6 +11,22 @@
|
|||||||
font-display: block;
|
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
|
// Fixed Width Icons
|
||||||
.bwi-fw {
|
.bwi-fw {
|
||||||
width: (18em / 14);
|
width: (18em / 14);
|
||||||
@ -95,9 +114,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// For new icons - add their glyph name and value to the map below
|
// 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: (
|
$icons: (
|
||||||
"save-changes": "\e988",
|
"save-changes": "\e988",
|
||||||
"browser": "\e985",
|
"browser": "\e985",
|
||||||
@ -243,19 +259,6 @@ $icons: (
|
|||||||
|
|
||||||
@each $name, $glyph in $icons {
|
@each $name, $glyph in $icons {
|
||||||
.bwi-#{$name}:before {
|
.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;
|
content: $glyph;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user