summaryrefslogtreecommitdiff
path: root/www/wiki/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterMenuHeaderWidget.less
blob: 928b4831c72455e2a3e48317de94e63db900209d (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
@import 'mediawiki.mixins';
@import 'mediawiki.ui/variables';
@import 'mw.rcfilters.variables';

.mw-rcfilters-ui-filterMenuHeaderWidget {
	&-title {
		display: inline-block;
		font-size: 1.2em;
		padding: 0.75em 0 0.75em 0.5em;
		color: @colorGray5;
	}

	&-helpIcon {
		position: absolute;
		top: 50%;
		.transform( translateY( -50% ) );
	}

	&-header {
		border-bottom: 1px solid @colorGray12;
		background-color: @colorGray15;

		&-invert,
		&-highlight {
			min-width: 1em;
			vertical-align: middle;
			// Using the same padding that the filter item
			// uses, so the button is aligned with the highlight
			// buttons for the filters
			padding-right: 12 / @font-size-system-ui / @font-size-vector;
		}

		&-back {
			width: 1em;
			vertical-align: middle;

			.mw-rcfilters-ui-filterMenuHeaderWidget-backButton:first-child {
				// Overwrite `.oo-ui-buttonElement-frameless.oo-ui-iconElement:first-child`
				margin-left: 0;
			}
		}

		&-title {
			position: relative;
			width: 100%;
			vertical-align: middle;
		}
	}
}