mediawiki-skins-Citizen/resources/skins.citizen.styles/components/KeyboardHint.less
github-actions 3b2ea71115 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-10-05 07:03:07 +00:00

34 lines
643 B
Plaintext

.citizen-keyboard-hint {
display: none;
gap: var( --space-xs );
font-size: var( --font-size-x-small );
line-height: 1;
/* Should have a keyboard */
@media ( hover: hover ) and ( pointer: fine ) {
display: flex;
}
&-label {
color: var( --color-base );
}
&-key {
font-weight: var( --font-weight-normal );
color: var( --color-subtle );
}
}
/* Align keyhint to the right */
.citizen-menu .mw-list-item a > span:has( + .citizen-keyboard-hint-key ) {
flex-grow: 1;
}
/*
* Hide key hint in main menu for now
* It has some wrapping issue with long label text
*/
#p-navigation .citizen-keyboard-hint-key {
display: none;
}