2019-10-25 20:53:39 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@import '../echo.variables.less';
|
2016-05-31 22:32:16 +00:00
|
|
|
|
|
|
|
.mw-echo-ui-pageNotificationsOptionWidget {
|
2016-10-25 04:18:08 +00:00
|
|
|
clear: both;
|
2022-04-20 04:59:30 +00:00
|
|
|
box-sizing: border-box;
|
2016-05-31 22:32:16 +00:00
|
|
|
width: 100%;
|
|
|
|
|
2016-10-04 21:37:45 +00:00
|
|
|
&.oo-ui-optionWidget {
|
2016-10-04 23:08:14 +00:00
|
|
|
.transition( ~'background-color 100ms, color 100ms' );
|
|
|
|
|
2016-10-04 21:37:45 +00:00
|
|
|
&-highlighted {
|
|
|
|
background-color: #eaecf0;
|
2020-04-16 01:02:21 +00:00
|
|
|
color: @color-base--active;
|
2016-10-04 21:37:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-selected {
|
2016-10-25 04:18:08 +00:00
|
|
|
background-color: @background-color-primary;
|
|
|
|
color: @color-primary;
|
2016-10-04 21:37:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-selected&-highlighted,
|
|
|
|
&-pressed&-highlighted {
|
|
|
|
background-color: rgba( 41, 98, 204, 0.1 );
|
2016-10-25 04:18:08 +00:00
|
|
|
color: @color-primary;
|
2016-10-04 21:37:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-12 00:03:08 +00:00
|
|
|
&-table {
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-row {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-cell {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2017-10-18 18:56:27 +00:00
|
|
|
&.oo-ui-iconElement &-icon {
|
2018-01-12 00:03:08 +00:00
|
|
|
width: 1em;
|
|
|
|
|
2016-05-31 22:32:16 +00:00
|
|
|
.oo-ui-iconElement-icon {
|
2018-01-12 00:03:08 +00:00
|
|
|
position: relative;
|
2016-05-31 22:32:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
2018-01-12 00:03:08 +00:00
|
|
|
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 );
|
2020-04-18 02:16:01 +00:00
|
|
|
// Truncate text with ellipsis.
|
|
|
|
.text-overflow( @visible: false );
|
2018-01-12 00:03:08 +00:00
|
|
|
}
|
2016-05-31 22:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-count {
|
2018-01-12 00:03:08 +00:00
|
|
|
width: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-label-count {
|
2016-10-25 04:18:08 +00:00
|
|
|
background-color: #eaecf0;
|
|
|
|
color: @grey-medium;
|
2016-05-31 22:32:16 +00:00
|
|
|
padding: 0.2em 0.5em;
|
|
|
|
margin-left: 0.5em;
|
2020-04-16 01:09:48 +00:00
|
|
|
border-radius: @border-radius-base;
|
2018-01-12 00:03:08 +00:00
|
|
|
white-space: nowrap;
|
2016-05-31 22:32:16 +00:00
|
|
|
|
|
|
|
.oo-ui-optionWidget-selected & {
|
2016-10-25 04:18:08 +00:00
|
|
|
background: none; // `background-color: transparent` would be the goto value, but IE 8-9 introduces a bug
|
|
|
|
color: @color-primary;
|
2016-05-31 22:32:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|