summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/layout/layout.scss
blob: 1be2cfccd62b40f0c77a22a7b3c7ec918b43ffd4 (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
/*
TODO
- separate styles to proper places
- decide a good class name structure for core layouts (e.g. 'v-layout', 'v-vertical', 'v-grid' etc.)
- use !important in carefully selected places to prevent accidental layout breakage by custom theming (e.g. alignments should be forced)

*/

@mixin base-layout {

.v-vertical.v-margin-top,
.v-horizontal.v-margin-top {
	padding-top: 12px;
}

.v-vertical.v-margin-right,
.v-horizontal.v-margin-right {
	padding-right: 	12px;
}

.v-vertical.v-margin-bottom,
.v-horizontal.v-margin-bottom {
	padding-bottom: 12px;
}

.v-vertical.v-margin-left,
.v-horizontal.v-margin-left {
	padding-left: 12px;
}

/* Different for historical reasons: previously was inherited directly from Base theme */
/* TODO unify these values in version 7 */
.v-gridlayout.v-layout-margin-top {
	padding-top: 24px;
}
.v-gridlayout.v-layout-margin-bottom {
	padding-bottom: 24px;
}
.v-gridlayout.v-layout-margin-left {
	padding-left: 24px;
} 
.v-gridlayout.v-layout-margin-right {
	padding-right: 24px;
}
.v-gridlayout .v-layout-spacing-on {
	padding-left: 12px;
	padding-top: 12px;
}

.v-spacing {
	width: 6px;
	height: 6px;
}

.v-vertical,
.v-horizontal {
	display: inline-block;
}

div.v-layout.v-horizontal.v-widget {
	white-space: nowrap;
}

.v-layout.v-vertical > .v-expand,
.v-layout.v-horizontal > .v-expand {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
}

.v-slot,
.v-spacing {
	display: inline-block;
	white-space: normal;
	vertical-align: top;
}

/* Clear any floats inside the slot, to prevent unwanted collapsing */
.v-vertical > .v-slot:after {
	display: inline-block;
	clear: both;
	width: 0;
	height: 0;
	overflow: hidden;
}

.v-vertical > .v-slot,
.v-vertical > .v-expand > .v-slot {
	display: block;
	clear: both;
}

.v-horizontal > .v-slot,
.v-horizontal > .v-expand > .v-slot {
	height: 100%;
}

.v-vertical > .v-spacing,
.v-vertical > .v-expand > .v-spacing {
	width: 0;
	display: block;
	clear: both;
}

.v-horizontal > .v-spacing,
.v-horizontal > .v-expand > .v-spacing {
	height: 0;
}

.v-align-middle:before,
.v-align-bottom:before,
.v-expand > .v-align-middle:before,
.v-expand > .v-align-bottom:before {
	
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	width: 0;
}

.v-align-middle,
.v-align-bottom {
	white-space: nowrap;
}

.v-align-middle > .v,
.v-align-bottom > .v-widget {
	display: inline-block;
}

.v-align-middle,
.v-align-middle > .v-widget {
	vertical-align: middle;
}

.v-align-bottom,
.v-align-bottom > .v-widget {
	vertical-align: bottom;
}

.v-align-center {
	text-align: center;
}

.v-align-center > .v-widget {
	margin-left: auto;
	margin-right: auto;
}

.v-align-right {
	text-align: right;
}

.v-align-right > .v-widget {
	margin-left: auto;
}

.v-has-caption,
.v-has-caption > .v-caption {
	display: inline-block; /* Force natural width to zero */
}

.v-caption {
	overflow: visible;
	vertical-align: middle;
}

.v-caption-on-left,
.v-caption-on-right {
	white-space: nowrap;
}

.v-caption-on-top > .v-caption,
.v-caption-on-bottom > .v-caption {
	display: block;
}

.v-caption-on-left > .v-caption {
	padding-right: .5em;
}

.v-caption-on-right > .v-caption {
 	vertical-align:top;
}

.v-caption-on-left > .v,
.v-caption-on-right > .v-widget {
	display: inline-block;
	vertical-align: middle;
}

.v-has-caption.v-has-width > .v-widget {
	width: 100% !important;
}

.v-has-caption.v-has-height > .v-widget {
	height: 100% !important;
}

.v-errorindicator {
	vertical-align: middle;
}

}