summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/styles/layouts/FieldLayout.less
blob: 799f9f4b7418f0c6a6e21ee1e92ab27587c90b0a (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
@import '../common';

.oo-ui-fieldLayout {
	display: block;

	&:before,
	&:after {
		content: " ";
		display: table;
	}

	&:after {
		clear: both;
	}

	&.oo-ui-fieldLayout-align-left,
	&.oo-ui-fieldLayout-align-right {
		> .oo-ui-fieldLayout-body {
			> .oo-ui-labelElement-label,
			> .oo-ui-fieldLayout-field {
				display: block;
				float: left;
			}
		}
	}

	&.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label {
		text-align: right;
	}

	&.oo-ui-fieldLayout-align-inline > .oo-ui-fieldLayout-body {
		display: table;

		> .oo-ui-labelElement-label,
		> .oo-ui-fieldLayout-field {
			display: table-cell;
			vertical-align: middle;
		}
	}

	&.oo-ui-labelElement.oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label {
		display: inline-block;
	}

	> .oo-ui-fieldLayout-help {
		float: right;

		> .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
			z-index: 1;
		}

		.oo-ui-fieldLayout-help-content {
			padding: 0.5em 0.75em;
			line-height: 1.5em;
		}
	}

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