mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-18 02:40:50 +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
84 lines
1.5 KiB
Plaintext
84 lines
1.5 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
@import '../echo.variables.less';
|
|
|
|
.mw-echo-ui-pageNotificationsOptionWidget {
|
|
clear: both;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
|
|
&.oo-ui-optionWidget {
|
|
transition: background-color 100ms, color 100ms;
|
|
|
|
&-highlighted {
|
|
background-color: #eaecf0;
|
|
color: @color-emphasized;
|
|
}
|
|
|
|
&-selected {
|
|
background-color: @background-color-progressive-subtle;
|
|
color: @color-progressive;
|
|
}
|
|
|
|
&-selected&-highlighted,
|
|
&-pressed&-highlighted {
|
|
background-color: rgba( 41, 98, 204, 0.1 );
|
|
color: @color-progressive;
|
|
}
|
|
}
|
|
|
|
&-table {
|
|
display: table;
|
|
width: 100%;
|
|
}
|
|
|
|
&-row {
|
|
display: table-row;
|
|
}
|
|
|
|
&-cell {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
&.oo-ui-iconElement &-icon {
|
|
width: 1em;
|
|
|
|
.oo-ui-iconElement-icon {
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
&-title {
|
|
padding: 0;
|
|
width: 100%;
|
|
line-height: 1em;
|
|
|
|
&-label {
|
|
display: inline-block;
|
|
// Sidebar width - icon width - twice padding - counter average width
|
|
max-width: calc( @specialpage-sidebar-width - 1.865em - 2 * @specialpage-separation-unit - 2em );
|
|
// Truncate text with ellipsis.
|
|
.text-overflow( @visible: false );
|
|
}
|
|
}
|
|
|
|
&-count {
|
|
width: 1em;
|
|
}
|
|
|
|
&-label-count {
|
|
background-color: #eaecf0;
|
|
color: @color-subtle;
|
|
padding: 0.2em 0.5em;
|
|
margin-left: 0.5em;
|
|
border-radius: @border-radius-base;
|
|
white-space: nowrap;
|
|
|
|
.oo-ui-optionWidget-selected & {
|
|
background-color: transparent;
|
|
color: @color-progressive;
|
|
}
|
|
}
|
|
}
|