Debian Codegraph @

skins/MinervaNeue/resources/skins.minerva.base.styles/buttons.less

raw
1 @import 'mediawiki.skin.variables.less';
2
3 // Make sure label vertically aligns with icon
4 .cdx-button {
5 display: inline-flex;
6 align-items: center;
7 justify-content: center;
8 }
9
10 // Apply spacing between icons and text in buttons and menu items
11 .toggle-list-item__anchor,
12 .cdx-button {
13 .minerva-icon + span:not( :empty ) {
14 margin-left: 8px;
15 }
16 }
17
18 // Never reveal the labels of icon only buttons in the header,
19 // article content (parser-output), IP masking banner,
20 // or MobileFrontend overlays / drawers.
21 // Also applies to the slide left/right buttons in the image overlay.
22 .mw-temp-user-banner,
23 .mw-parser-output,
24 .overlay-header,
25 .drawer-container,
26 .slider-button,
27 .minerva-header {
28 .cdx-button.cdx-button--icon-only {
29 span + span {
30 .mixin-screen-reader-text();
31 }
32 }
33 }
34
35 // On desktop reveal labels of icon-only buttons.
36 // This applies to page actions and other icon only buttons
37 // that are not scoped in the rule above.
38 @media all and ( max-width: @max-width-breakpoint-tablet ) {
39 .cdx-button.cdx-button--icon-only {
40 span + span:last-child {
41 .mixin-screen-reader-text();
42 }
43 }
44 }