mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-24 11:33:42 +00:00
9b48993728
Delete the following deprecated modules: skins.minerva.base.styles, skins.minerva.mainMenu.styles, skins.minerva.icons.wikimedia and skins.minerva.mainMenu.icons And reorganize files for skins.minerva.styles Bug: T266361 Change-Id: I35b1d9461edd63a1a5d488a2fdc6939547fd29ad
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
|
|
// Make sure label vertically aligns with icon
|
|
.cdx-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
// Apply spacing between icons and text in buttons and menu items
|
|
.toggle-list-item__anchor,
|
|
.cdx-button {
|
|
.minerva-icon + span:not( :empty ) {
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
// Never reveal the labels of icon only buttons in the header,
|
|
// article content (parser-output), IP masking banner,
|
|
// or MobileFrontend overlays / drawers.
|
|
// Also applies to the slide left/right buttons in the image overlay.
|
|
.mw-temp-user-banner,
|
|
.mw-parser-output,
|
|
.overlay-header,
|
|
.drawer-container,
|
|
.slider-button,
|
|
.minerva-header {
|
|
.cdx-button.cdx-button--icon-only {
|
|
span + span {
|
|
.mixin-screen-reader-text();
|
|
}
|
|
}
|
|
}
|
|
|
|
// On desktop reveal labels of icon-only buttons.
|
|
// This applies to page actions and other icon only buttons
|
|
// that are not scoped in the rule above.
|
|
@media all and ( max-width: @max-width-breakpoint-tablet ) {
|
|
.cdx-button.cdx-button--icon-only {
|
|
span + span:last-child {
|
|
.mixin-screen-reader-text();
|
|
}
|
|
}
|
|
}
|