2019-06-20 19:17:50 +00:00
|
|
|
// A MenuListItem is a ToggleList item for menus.
|
|
|
|
|
2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../minerva.less/minerva.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-24 22:12:51 +00:00
|
|
|
padding: 0.75em 0.875em;
|
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;
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|