main.scss
2.61 KB
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
// The main form.
// Most of the styles for display of the main form come from the display
// controller (lightbox and envelope are the two built in options).
div.DTE_Body {
padding: 52px 0; // space for hte header and footer which are position: absolute
div.DTE_Body_Content {
position: relative;
overflow: auto;
div.DTE_Form_Info {
padding: 1em 1em 0 1em;
margin: 0;
}
div.DTE_Field {
position: relative;
zoom: 1;
clear: both;
padding: 5px 20%;
border: 1px solid transparent;
&:after {
display: block;
content: ".";
height: 0;
line-height: 0;
clear: both;
visibility: hidden;
}
&:hover {
background-color: #f9f9f9;
border: 1px solid #f3f3f3;
}
>label {
float: left;
width: 40%;
padding-top: 6px;
}
>div.DTE_Field_Input {
float: right;
width: 60%;
}
// Field in error state
&.DTE_Field_StateError { }
&.full {
padding: 5px 0 5px 20%;
>label {
width: 30%;
}
>div.DTE_Field_Input {
width: 70%;
}
}
&.block {
>div.DTE_Field_Input {
float: none;
clear: both;
width: 100%;
}
}
}
}
}
html[dir="rtl"] {
div.DTE_Body div.DTE_Body_Content div.DTE_Field {
> label {
float: right;
}
>div.DTE_Field_Input {
float: left;
}
}
div.DTE div.DTE_Form_Buttons button {
float: left;
}
}
// iPad in portrait
@media only screen
and (max-width : 768px) {
div.DTE_Body {
div.DTE_Body_Content {
div.DTE_Field {
padding: 5px 10%;
&.full {
padding: 5px 0 5px 10%;
>label {
width: 35.5%;
}
>div.DTE_Field_Input {
width: 64.5%;
}
}
&.block {
>div.DTE_Field_Input {
width: 100%;
}
}
}
}
}
}
@media only screen
and (max-width : 640px) {
div.DTE_Body {
div.DTE_Body_Content {
div.DTE_Field {
padding: 5px 0;
&.full {
padding: 5px 0%;
>label {
width: 40%;
}
>div.DTE_Field_Input {
width: 60%;
}
}
&.block {
>div.DTE_Field_Input {
width: 100%;
}
}
}
}
}
}
// For devices with smaller screens, the fields should be shown stacked
@media only screen
and (max-width : 580px) {
div.DTE_Body {
div.DTE_Body_Content {
div.DTE_Field {
position: relative;
zoom: 1;
clear: both;
padding: 5px 0;
>label {
float: none;
width: auto;
padding-top: 0;
}
>div.DTE_Field_Input {
float: none;
width: auto;
}
&.full,
&.block {
padding: 5px 0;
>label,
>div.DTE_Field_Input {
width: 100%;
}
}
}
}
}
}