Skip to content

Commit

Permalink
Merge pull request #10311 from nextcloud/bugfix/8702/ie11-icon-white
Browse files Browse the repository at this point in the history
Add icon-black-white mixin to automatically generate icon classes
  • Loading branch information
MorrisJobke committed Jul 20, 2018
2 parents 700aafb + 7b8ee27 commit 52ec71c
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 285 deletions.
14 changes: 14 additions & 0 deletions core/css/functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,18 @@
#{$varName}: url('#{$webroot}/svg/#{$dir}/#{$icon}/#{$color}?v=#{$version}');
}
background-image: var(#{$varName});
}

/**
* Create black and white icons
* This will add a default black version of and an additional white version when .icon-white is applied
*/
@mixin icon-black-white($icon, $dir, $version, $core: false) {
.icon-#{$icon} {
@include icon-color($icon, $dir, $color-black, $version, $core);
}
.icon-#{$icon}-white,
.icon-#{$icon}.icon-white {
@include icon-color($icon, $dir, $color-white, $version, $core);
}
}
Loading

0 comments on commit 52ec71c

Please sign in to comment.