mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
fe766f04ea
Also remove 'mediawiki.mixins' includes where unused. Bug: T306488 Change-Id: Ia9a5a1ce1e47c1de2c2197885237f9355f9cc4f2
83 lines
1.5 KiB
Plaintext
83 lines
1.5 KiB
Plaintext
@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-base--active;
|
|
}
|
|
|
|
&-selected {
|
|
background-color: @background-color-primary;
|
|
color: @color-primary;
|
|
}
|
|
|
|
&-selected&-highlighted,
|
|
&-pressed&-highlighted {
|
|
background-color: rgba( 41, 98, 204, 0.1 );
|
|
color: @color-primary;
|
|
}
|
|
}
|
|
|
|
&-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: @grey-medium;
|
|
padding: 0.2em 0.5em;
|
|
margin-left: 0.5em;
|
|
border-radius: @border-radius-base;
|
|
white-space: nowrap;
|
|
|
|
.oo-ui-optionWidget-selected & {
|
|
background: none; // `background-color: transparent` would be the goto value, but IE 8-9 introduces a bug
|
|
color: @color-primary;
|
|
}
|
|
}
|
|
}
|