mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +00:00
952789bc17
- Removes 'mw-ui-icon-with-label-desktop' as that is now the default behavior for icon only buttons in Minerva - Removes icon flushing classes, use codex mixins instead 80 Visual changes relating to minor icon/button subpixel changes in the heading, edit section links, and page actions Bug: T319260 Change-Id: I503b643d33e43196483af4b5f9dd312237322ac8
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
/* stylelint-disable selector-max-id */
|
|
|
|
// 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,
|
|
#mw-mf-page-left ul li a {
|
|
.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: @width-breakpoint-desktop ) {
|
|
.cdx-button.cdx-button--icon-only {
|
|
span + span:last-child {
|
|
.mixin-screen-reader-text();
|
|
}
|
|
}
|
|
}
|