Skip to content

Commit

Permalink
Dont do anything with outline/brand inside definition (this is part o…
Browse files Browse the repository at this point in the history
…f override). Use existing names to avoid backwards compatability issues #6226
  • Loading branch information
jlukic committed Mar 18, 2018
1 parent 295af5f commit cf70177
Showing 1 changed file with 11 additions and 48 deletions.
59 changes: 11 additions & 48 deletions src/definitions/elements/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -93,10 +60,6 @@ i.icon:before {
background: none !important;
}

i.icon.outline {
font-family: @regularFontName;
}

/*******************************
Types
*******************************/
Expand Down

0 comments on commit cf70177

Please sign in to comment.