2019-06-20 19:17:50 +00:00
|
|
|
// A MenuListItem is a ToggleList item for menus.
|
|
|
|
|
2021-10-19 18:45:43 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
2022-05-16 16:55:54 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2019-06-20 19:17:50 +00:00
|
|
|
|
2019-08-30 17:23:55 +00:00
|
|
|
.toggle-list-item {
|
2019-06-20 19:17:50 +00:00
|
|
|
display: block;
|
2019-09-16 20:22:52 +00:00
|
|
|
|
2019-06-20 19:17:50 +00:00
|
|
|
//
|
|
|
|
// Make the app feel like an app, not a JPEG. When hovering over a menu item, add a little
|
|
|
|
// interactivity.
|
|
|
|
&:hover {
|
|
|
|
background: @grayLightest;
|
|
|
|
}
|
2021-09-09 16:45:53 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 0.75em 0.875em;
|
|
|
|
}
|
2019-06-20 19:17:50 +00:00
|
|
|
}
|
2019-08-30 17:23:55 +00:00
|
|
|
|
|
|
|
.toggle-list-item__anchor {
|
2021-08-11 00:13:09 +00:00
|
|
|
// 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;
|
2019-08-30 17:23:55 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:visited, &:active {
|
|
|
|
color: @grayMediumDark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-list-item__label {
|
|
|
|
color: @grayMediumDark;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: @font-size-minerva-small;
|
2021-08-11 00:13:09 +00:00
|
|
|
// Overflow text is ellipsized in one line.
|
|
|
|
.text-overflow( @visible: false );
|
2019-08-30 17:23:55 +00:00
|
|
|
}
|