Browse Source

Dont do anything with outline/brand inside definition (this is part of override). Use existing names to avoid backwards compatability issues #6226

fa5-icon
Jack 7 years ago
parent
commit
cf70177a37
1 changed files with 11 additions and 48 deletions
  1. 59
      src/definitions/elements/icon.less

59
src/definitions/elements/icon.less

@ -23,49 +23,16 @@
Icon
*******************************/
.loadSolidIcons() when (@importSolidIcons) {
@font-face {
font-family: @fontName;
src: @solidFallbackSRC;
src: @solidSrc;
font-style: normal;
font-weight: @normal;
font-variant: normal;
text-decoration: inherit;
text-transform: none;
}
}
.loadRegularIcons() when (@importRegularIcons) {
@font-face {
font-family: @regularFontName;
src: @regularFallbackSRC;
src: @regularSrc;
font-style: normal;
font-weight: @normal;
font-variant: normal;
text-decoration: inherit;
text-transform: none;
}
}
.loadBrandIcons() when (@importBrandIcons) {
@font-face {
font-family: @brandFontName;
src: @brandFallbackSRC;
src: @brandSrc;
font-style: normal;
font-weight: @normal;
font-variant: normal;
text-decoration: inherit;
text-transform: none;
}
}
.loadSolidIcons();
.loadRegularIcons();
.loadBrandIcons();
@font-face {
font-family: 'Icons';
src: @fallbackSRC;
src: @src;
font-style: normal;
font-weight: @normal;
font-variant: normal;
text-decoration: inherit;
text-transform: none;
}
i.icon {
display: inline-block;
@ -76,7 +43,7 @@ i.icon {
width: @width;
height: @height;
font-family: @fontName;
font-family: 'Icons';
font-style: normal;
font-weight: @normal;
text-decoration: inherit;
@ -93,10 +60,6 @@ i.icon:before {
background: none !important;
}
i.icon.outline {
font-family: @regularFontName;
}
/*******************************
Types
*******************************/

Loading…
Cancel
Save