mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
7f6f792a3a
Replacing 'mediawiki.ui/variables.less' `@import` with new skin-aware 'mediawiki.skin.variables.less' standard. Also replacing and removing scattered WikimediaUI Base v0.15.0 variables with new skin variables. Also - replacing several static values with new Codex design tokens featuring skin variables for following properties: - background-color - color - border-width, border-style, border-color and border shorthand - border-radius - box-shadow colors - outline-width, outline-style, outline-color and outline shorthand - opacity - replacing equal-value Echo variables with new skin variables - replacing `opacity: 0` with `opacity: 1px solid transparent`, which improves accessibility in Windows High Contrast mode Bump required MediaWiki core version to >= v1.41.0. Bug: T332541 Co-Authored-by: Volker E. <volker.e@wikimedia.org> Depends-On: I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06 Change-Id: If3863f07d7c3a8b58808fb03401c1060a92bc2ab
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
@import '../echo.variables.less';
|
|
|
|
.mw-echo-ui-toggleReadCircleButtonWidget {
|
|
&-circle {
|
|
border-radius: @border-radius-circle;
|
|
box-sizing: border-box;
|
|
min-width: 10px;
|
|
width: @bundle-group-padding;
|
|
min-height: 10px;
|
|
height: @bundle-group-padding;
|
|
margin: @bundle-group-padding;
|
|
|
|
// Mark as read
|
|
background-color: @background-color-progressive;
|
|
border: 0;
|
|
|
|
// Mark as unread
|
|
&-unread {
|
|
background-color: #eaecf0;
|
|
border: @border-width-base @border-style-base @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;
|
|
// Remove padding for dummy icon
|
|
padding-left: 0;
|
|
}
|
|
|
|
&.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
|
|
// Hide dummy icon
|
|
display: none;
|
|
}
|
|
|
|
&:hover .mw-echo-ui-toggleReadCircleButtonWidget-circle {
|
|
// Mark as read
|
|
background-color: #447ff5;
|
|
|
|
// Mark as unread
|
|
&-unread {
|
|
background-color: #c8ccd1;
|
|
}
|
|
}
|
|
}
|