@import 'mediawiki.skin.variables.less'; // NOTE: @param-is-button-icon lets us change the icon color // with background-color by using mask-image. .minerva-icon--modified-history { .cdx-mixin-css-icon( @cdx-icon-history, @param-is-button-icon: true ); } .minerva-icon--expand { .cdx-mixin-css-icon( @cdx-icon-next, @param-is-button-icon: true ); } .minerva-icon { .cdx-mixin-css-icon-background(); .cdx-mixin-css-icon-size( @size-icon-medium ); .cdx-mixin-css-icon-alignment(); // Temporary fix for https://phabricator.wikimedia.org/T356540 background-position: center; background-repeat: no-repeat; background-size: ~'calc( max( @{size-icon-medium}, @{min-size-icon-medium} ) )'; } .minerva-icon-size-small { .cdx-mixin-css-icon-background( @size-icon-small ); .cdx-mixin-css-icon-size( @size-icon-small ); // Temporary fix for https://phabricator.wikimedia.org/T356540 background-size: ~'calc( max( @{size-icon-small}, @{min-size-icon-small} ) )'; }