summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/styles/layouts/MenuLayout.less
blob: c5080e2bfb0e508173e5b1248bfc0aeb68e92791 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@import '../common';

.oo-ui-menuLayout {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	&-menu,
	&-content {
		position: absolute;
		.oo-ui-transition(all ease-in-out 200ms);
	}

	// These are overridden with 'auto' or '0' later
	&-menu {
		height: 18em;
		width: 18em;
	}

	// These are overridden with 'auto' or '0' later
	&-content {
		top: 18em;
		left: 18em;
		right: 18em;
		bottom: 18em;
	}

	&.oo-ui-menuLayout-hideMenu {
		.oo-ui-menuLayout-menu {
			width: 0 !important;
			height: 0 !important;
			overflow: hidden;
		}

		.oo-ui-menuLayout-content {
			top: 0 !important;
			left: 0 !important;
			right: 0 !important;
			bottom: 0 !important;
		}
	}

	&.oo-ui-menuLayout-showMenu {
		&.oo-ui-menuLayout-top {
			.oo-ui-menuLayout-menu {
				width: auto !important;
				left: 0;
				top: 0;
				right: 0;
			}

			.oo-ui-menuLayout-content {
				right: 0 !important;
				bottom: 0 !important;
				left: 0 !important;
			}
		}

		&.oo-ui-menuLayout-after {
			.oo-ui-menuLayout-menu {
				height: auto !important;
				top: 0;
				right: 0;
				bottom: 0;
			}

			.oo-ui-menuLayout-content {
				bottom: 0 !important;
				left: 0 !important;
				top: 0 !important;
			}
		}

		&.oo-ui-menuLayout-bottom {
			.oo-ui-menuLayout-menu {
				width: auto !important;
				right: 0;
				bottom: 0;
				left: 0;
			}

			.oo-ui-menuLayout-content {
				left: 0 !important;
				top: 0 !important;
				right: 0 !important;
			}
		}

		&.oo-ui-menuLayout-before {
			.oo-ui-menuLayout-menu {
				height: auto !important;
				bottom: 0;
				left: 0;
				top: 0;
			}

			.oo-ui-menuLayout-content {
				top: 0 !important;
				right: 0 !important;
				bottom: 0 !important;
			}
		}
	}

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