Skip to content

Commit

Permalink
text showing feature
Browse files Browse the repository at this point in the history
added feature to show text when icon is set to false
  • Loading branch information
Karlasa authored Oct 19, 2018
1 parent f710f9b commit 22a40cc
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions lib/web/css/source/lib/_icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
@_icon-font-text-hide: @icon-font__text-hide,
@_icon-font-display: @icon-font__display
) when (@_icon-font-position = before) {
._lib-icon-text-hide(@_icon-font-text-hide);
.lib-css(display, @_icon-font-display);
text-decoration: none;
text-decoration: none;

& when not (@_icon-font-content = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:before {
._lib-icon-font(
Expand Down Expand Up @@ -68,10 +71,13 @@
@_icon-font-text-hide: @icon-font__text-hide,
@_icon-font-display: @icon-font__display
) when (@_icon-font-position = after) {
._lib-icon-text-hide(@_icon-font-text-hide);
.lib-css(display, @_icon-font-display);
text-decoration: none;


& when not (@_icon-font-content = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:after {
._lib-icon-font(
@_icon-font-content,
Expand Down Expand Up @@ -151,8 +157,11 @@
@_icon-image-text-hide: @icon__text-hide
) when (@_icon-image-position = before) {
display: inline-block;
._lib-icon-text-hide(@_icon-image-text-hide);


& when not (@_icon-image = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:before {
._lib-icon-image(
@_icon-image,
Expand All @@ -179,7 +188,10 @@
@_icon-image-text-hide: @icon__text-hide
) when (@_icon-image-position = after) {
display: inline-block;
._lib-icon-text-hide(@_icon-image-text-hide);

& when not (@_icon-image = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:after {
._lib-icon-image(
Expand Down

0 comments on commit 22a40cc

Please sign in to comment.