summaryrefslogtreecommitdiff
blob: 44d51b455746b9426119182b55e71f1c068241ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@import 'mediawiki.mixins.less';
@import '../echo.variables.less';

.mw-echo-ui-pageNotificationsOptionWidget {
	clear: both;
	width: 100%;
	.box-sizing( border-box );

	&.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;
		}
	}
}