mediawiki-skins-Vector/resources/skins.vector.styles/components/Icon.less
Eric Gardner d60a644264 icons: restore "background-" CSS rules
Temporarily hard-codes some CSS background rules after Codex's
CSS-icon mixins stopped supplying them upstream (after changing
to use mask-image in icons).

Bug: T358160
Change-Id: I13be424c58b105472ef22f14e4381693f2985cd8
2024-02-21 21:42:46 -08:00

23 lines
759 B
Plaintext

.vector-icon {
.cdx-mixin-css-icon-background( );
.cdx-mixin-css-icon-size( );
.cdx-mixin-css-icon-alignment( );
font-size: 14px;
// 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} ) )';
}
// Temporary generic small icon class
// FIXME: Replace with proper Codex CSS icon usage in T338403
.vector-icon--x-small {
.cdx-mixin-css-icon-background( @size-icon-x-small );
.cdx-mixin-css-icon-size( @size-icon-x-small );
.cdx-mixin-css-icon-alignment( );
// Temporary fix for https://phabricator.wikimedia.org/T356540
background-size: ~'calc( max( @{size-icon-x-small}, @{min-size-icon-x-small} ) )';
}