summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/themes/apex/layouts.less
blob: b86aa010ef7e7d252372a82ff9775cfec922539d (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
@import 'common';

.theme-oo-ui-layout () {}

.theme-oo-ui-bookletLayout () {
	&-stackLayout {
		> .oo-ui-panelLayout {
			padding: 1.5em;
		}
	}

	&-outlinePanel {
		border-right: 1px solid #ddd;

		> .oo-ui-outlineControlsWidget {
			box-shadow: 0 0 0.25em rgba(0,0,0,0.25);
		}
	}
}

.theme-oo-ui-indexLayout () {
	&-stackLayout {
		> .oo-ui-panelLayout {
			padding: 1.5em;
		}
	}
}

.theme-oo-ui-fieldLayout () {
	margin-bottom: 1em;

	&:last-child {
		margin-bottom: 0;
	}

	&.oo-ui-fieldLayout-align-left,
	&.oo-ui-fieldLayout-align-right {
		&.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label {
			padding-top: 0.5em;
			margin-right: 5%;
			width: 35%;
		}

		> .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
			width: 60%;
		}
	}

	&.oo-ui-fieldLayout-align-inline {
		&.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label {
			padding: 0.5em;
		}

		> .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
			padding: 0.5em 0;
		}
	}

	&.oo-ui-fieldLayout-align-top {
		&.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label {
			padding: 0.5em 0;
		}
	}

	> .oo-ui-popupButtonWidget {
		.oo-ui-inline-spacing(0);
		margin-top: 0.25em;
	}

	&-disabled .oo-ui-labelElement-label {
		color: #ccc;
	}
}

.theme-oo-ui-actionFieldLayout () {}

.theme-oo-ui-fieldsetLayout () {
	margin: 0;
	padding: 0;
	border: none;

	+ .oo-ui-fieldsetLayout,
	+ .oo-ui-formLayout {
		margin-top: 2em;
	}

	> .oo-ui-labelElement-label {
		font-size: 1.1em;
		margin-bottom: 0.5em;
		padding: 0.25em 0;
		font-weight: bold;
	}

	&.oo-ui-iconElement > .oo-ui-labelElement-label {
		padding-left: 2em;
		line-height: 1.8em;
	}

	&.oo-ui-iconElement > .oo-ui-iconElement-icon {
		left: 0;
		top: 0.25em;
		width: @icon-size;
		height: @icon-size;
	}

	> .oo-ui-popupButtonWidget {
		.oo-ui-inline-spacing(0);
	}
}

.theme-oo-ui-formLayout () {
	+ .oo-ui-fieldsetLayout,
	+ .oo-ui-formLayout {
		margin-top: 2em;
	}
}

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

.theme-oo-ui-panelLayout () {
	&-padded {
		padding: 1.25em;
	}

	&-framed {
		border-radius: 0.5em;
		box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.25);
	}
}

.theme-oo-ui-cardLayout () {}

.theme-oo-ui-pageLayout () {}

.theme-oo-ui-stackLayout () {}