2016-01-30 00:27:47 +00:00
|
|
|
@import '../../echo.variables';
|
|
|
|
@import '../../echo.mixins';
|
|
|
|
|
|
|
|
.mw-echo-ui-menuItemWidget {
|
|
|
|
&-icon {
|
|
|
|
display: inline-block;
|
|
|
|
// We have to override oojs-ui's width/height, which uses
|
|
|
|
// a very specific selector
|
|
|
|
width: 1.5em !important;
|
|
|
|
height: 1.5em !important;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 1.5em + 0.5em; // Icon width + 0.5em spacing
|
|
|
|
|
|
|
|
// We have to override oojs-ui's color, which uses
|
|
|
|
// a very specific selector
|
|
|
|
font-weight: normal !important;
|
2016-02-26 23:16:47 +00:00
|
|
|
color: #333333 !important;
|
2016-01-30 00:27:47 +00:00
|
|
|
// Set max-width so buttons are truncated
|
|
|
|
max-width: 15em;
|
|
|
|
|
|
|
|
&-description {
|
|
|
|
color: #666666 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-prioritized {
|
2016-03-03 20:54:11 +00:00
|
|
|
.mw-echo-ui-mixin-hover-opacity();
|
2016-01-30 00:27:47 +00:00
|
|
|
display: inline-block;
|
2016-03-03 20:54:11 +00:00
|
|
|
padding: 0;
|
2016-01-30 00:27:47 +00:00
|
|
|
}
|
2016-02-26 23:16:47 +00:00
|
|
|
|
|
|
|
// Correct for when inside the popup menu
|
|
|
|
.mw-echo-ui-actionMenuPopupWidget-menu & {
|
|
|
|
display: block;
|
|
|
|
padding: 0.7em;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: #eeeeee;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
// The icon should be 15px, which is 1.1em. However,
|
|
|
|
// ooui icons are surrounded by whitespace. In this case,
|
|
|
|
// the whitespace is about 6px out of the original 24px
|
|
|
|
// so the non-whitespace dimensions are 3/4 of the total.
|
|
|
|
// So to compensate, the new size should be 1.1em*4/3 = 1.4em
|
|
|
|
width: 1.4em !important;
|
|
|
|
height: 1.4em !important;
|
|
|
|
// Take into account the padding and subtract half of
|
|
|
|
// the whitespace adjustment of the icon
|
|
|
|
top: 0.7em - 0.3em / 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
margin-left: 1.4em + 0.7em; // Icon width + 0.7em spacing
|
|
|
|
font-weight: bold !important;
|
|
|
|
|
|
|
|
span.oo-ui-labelElement-label {
|
|
|
|
line-height: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-01-30 00:27:47 +00:00
|
|
|
}
|