mediawiki-extensions-Echo/modules/styles/mw.echo.ui.ToggleReadCircleButtonWidget.less
Moriel Schottlender 9e320bac6a Fix 'unread' dot top padding regression
All frameless buttons seemed to have recieved a generous padding-top
in the latest OOUI release. This fix overrides that.

Bug: T173059
Change-Id: Ia1f1bbc48410555163afabc84a199e7a69bb95dc
2017-08-21 11:21:39 -07:00

40 lines
870 B
Plaintext

@import 'mediawiki.mixins';
@import '../echo.variables';
.mw-echo-ui-toggleReadCircleButtonWidget {
&-circle {
border-radius: 50%;
min-width: 10px;
width: @bundle-group-padding;
min-height: 10px;
height: @bundle-group-padding;
margin: @bundle-group-padding;
.box-sizing( border-box );
// Mark as read
background-color: #36c;
border: 0;
// Mark as unread
&-unread {
background-color: #eaecf0;
border: 1px solid @grey-light;
}
}
// Override OOUI specific rule for frameless buttons that adds a ~2.5em padding-top
&.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-frameless > .oo-ui-buttonElement-button {
padding-top: 0;
}
&:hover .mw-echo-ui-toggleReadCircleButtonWidget-circle {
// Mark as read
background-color: #447ff5;
// Mark as unread
&-unread {
background-color: #c8ccd1;
}
}
}