2023-08-09 19:13:50 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
|
|
|
// Make sure label vertically aligns with icon
|
|
|
|
.cdx-button {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-08-09 21:49:19 +00:00
|
|
|
}
|
2023-08-09 19:13:50 +00:00
|
|
|
|
2023-08-09 21:49:19 +00:00
|
|
|
// Apply spacing between icons and text in buttons and menu items
|
|
|
|
.toggle-list-item__anchor,
|
2023-08-17 21:21:20 +00:00
|
|
|
.cdx-button {
|
2023-08-09 19:13:50 +00:00
|
|
|
.minerva-icon + span:not( :empty ) {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
2023-08-10 21:20:30 +00:00
|
|
|
|
|
|
|
// 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.
|
2023-11-07 09:03:29 +00:00
|
|
|
@media all and ( max-width: @max-width-breakpoint-tablet ) {
|
2023-08-10 21:20:30 +00:00
|
|
|
.cdx-button.cdx-button--icon-only {
|
2023-08-23 20:43:55 +00:00
|
|
|
span + span:last-child {
|
2023-08-10 21:20:30 +00:00
|
|
|
.mixin-screen-reader-text();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|