mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-25 14:47:08 +00:00
17968826fa
Follow up to I4c2e115451c0a76c742734730712814c1f1d838d. This will allow us to load the templates directly into skin.mustache via {{>PartialName}} Templates partials can only be resolved relative to the folder given to the TemplateParser. Change-Id: I5783d49c25d2efcf4781dd912500bf8b413b8cb6
45 lines
973 B
Plaintext
45 lines
973 B
Plaintext
// A MenuListItem is a ToggleList item for menus.
|
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
|
|
|
.toggle-list-item {
|
|
display: block;
|
|
|
|
//
|
|
// Make the app feel like an app, not a JPEG. When hovering over a menu item, add a little
|
|
// interactivity.
|
|
&:hover {
|
|
background: @grayLightest;
|
|
}
|
|
|
|
a {
|
|
padding: 0.75em 0.875em;
|
|
}
|
|
}
|
|
|
|
.toggle-list-item__anchor {
|
|
// Override .mw-ui-icon `display: inline-block` so that the text is
|
|
// vertically centered. It also avoids whitespace issues.
|
|
display: flex;
|
|
align-items: center;
|
|
// Override .mw-ui-icon `line-height: 0` so that the text is visible.
|
|
line-height: inherit;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:visited, &:active {
|
|
color: @grayMediumDark;
|
|
}
|
|
}
|
|
|
|
.toggle-list-item__label {
|
|
color: @grayMediumDark;
|
|
font-weight: bold;
|
|
font-size: @font-size-minerva-small;
|
|
// Overflow text is ellipsized in one line.
|
|
.text-overflow( @visible: false );
|
|
}
|