summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/styles/toolgroups/PopupToolGroup.less
blob: 1b54bea54fd6e8b2b25d8bd4bb524be0f7cf5022 (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
@import '../common';

.oo-ui-popupToolGroup {
	position: relative;

	&-handle {
		display: block;
		cursor: pointer;

		.oo-ui-indicatorElement-indicator,
		.oo-ui-iconElement-icon {
			position: absolute;
			background-position: center center;
			background-repeat: no-repeat;
		}
	}

	&.oo-ui-widget-disabled {
		.oo-ui-popupToolGroup-handle {
			cursor: default;
		}
	}

	.oo-ui-toolGroup-tools {
		display: none;
		position: absolute;
		z-index: 4;

		.oo-ui-iconElement-icon {
			background-repeat: no-repeat;
			background-position: center center;
		}
	}

	&-active.oo-ui-widget-enabled {
		> .oo-ui-toolGroup-tools {
			display: block;
		}
	}

	&-left > .oo-ui-toolGroup-tools {
		left: 0;
	}

	&-right > .oo-ui-toolGroup-tools {
		right: 0;
	}

	.oo-ui-tool-link {
		display: table;
		width: 100%;
		vertical-align: middle;
		white-space: nowrap;

		.oo-ui-iconElement-icon,
		.oo-ui-tool-accel,
		.oo-ui-tool-title {
			display: table-cell;
			vertical-align: middle;
		}

		.oo-ui-tool-accel {
			text-align: right;
		}

		.oo-ui-tool-accel:not(:empty) {
			// Push away from tool's title
			padding-left: 3em;
		}
	}

	.theme-oo-ui-popupToolGroup();
}