mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/buttons.less
Volker E dd154b4ea7 styles: Replace deprecated breakpoints
The values have slightly changed:
- Tablet breakpoint is decreased by 80px,
  pushing lesser devices into a mobile only experience but
  should make barely a difference to vast majority of our users.
- Biggest difference is in `min-width-breakpoint-desktop`,
  which is increased by 120px in comparison to
  `@width-breakpoint-desktop: 1000px`

Also removing one out-dated feature phone clause.

TECHNICAL CHANGES:
* The previous breakpoint was tied to the maximum content width.
The previous maximum content width is preserved, and several media
queries are adjusted to make use of it.
* The header (logo) is not optimized for  640px-720px. For now
a temporary fix is but in place which will be investigated as part
of T366859

VISUAL CHANGES:
* 6 visual changes which improve alignment in language and
visual editor overlay and diffs (where wikidiff2 is not
installed)

Bug: T349793
Depends-On: I3afba8c51f60de9271054499bfa3ffbcc1a9d779
Change-Id: I9552d8ad7509aae90e15edda26e786465773d3ac
2024-06-07 12:52:39 -07:00

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();
}
}
}