-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
351 lines (263 loc) · 6.86 KB
/
styles.css
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
body {
background: white;
font-family: 'Quicksand', sans-serif;
}
section {
background: #5c6b75;
margin: 60px auto 120px;
border-top: 10px solid #c45e5e;
text-align: center;
padding: 50px 0 80px;
width: 100%;
max-width: 1200px;
font-size: 0.8em;
color: white;
}
/** Inside the section - form */
form {
width: 75.3333333333%;
margin: 0 auto;
}
/** Inside the section - form */
form .field {
width: 100%;
position: relative;
margin-bottom: 20px;
}
/** label sections - name, email, mobile and message **/
form .field label {
position: absolute;
top: 0;
left: 0;
background: #6d8baf;
width: 100%;
padding: 14px 0;
font-size: 2em;
letter-spacing: 0.04em;
-webkit-transition: all 333ms ease-in-out;
-moz-transition: all 333ms ease-in-out;
-o-transition: all 333ms ease-in-out;
-ms-transition: all 333ms ease-in-out;
transition: all 333ms ease-in-out;
}
/** label sections - name, email, mobile and message **/
/** For the DONE span text **/
form .field label + span {
text-transform: uppercase;
opacity: 0;
color: white;
display: block;
position: absolute;
top: 14px;
left: 4.75%;
font-size: 2em;
-webkit-transition: all 333ms ease-in-out;
-moz-transition: all 333ms ease-in-out;
-o-transition: all 333ms ease-in-out;
-ms-transition: all 333ms ease-in-out;
transition: all 333ms ease-in-out;
}
/** For the DONE span text **/
/*** This is for when the field is selected by the user ***/
form .field input[type=text],
form .field textarea {
border: none; /* user text */
background: white;
width: 100%;
margin: 0;
padding: 19px 0; /* user text */
padding-left: 21.5%;
color: black; /* user text */
font-size: 1.5em; /* user text */
letter-spacing: 0.1em; /* user text */
}
/*** This is for when the field is selected by the user ***/
/** MESSAGE **/
form .field input[type=text]#msg,
form .field textarea#msg {
height: 65px;
resize: none;
-webkit-transition: all 333ms ease-in-out;
-moz-transition: all 333ms ease-in-out;
-o-transition: all 333ms ease-in-out;
-ms-transition: all 333ms ease-in-out;
transition: all 333ms ease-in-out;
}
/** MESSAGE **/
/** Declaring we do not want an outline when the input field is selected **/
form .field input[type=text]:focus, form .field input[type=text].focused,
form .field textarea:focus,
form .field textarea.focused {
outline: none;
}
/** Declaring we do not want an outline when the input field is selected **/
/** MESSAGE when selected **/
form .field input[type=text]:focus#msg, form .field input[type=text].focused#msg,
form .field textarea:focus#msg,
form .field textarea.focused#msg {
padding-bottom: 170px;
}
/** MESSAGE when selected **/
/* label color when selected */
form .field input[type=text]:focus + label, form .field input[type=text].focused + label,
form .field textarea:focus + label,
form .field textarea.focused + label {
width: 20%;
background: #c45e5e;
color: white;
}
/* label color when selected */
/** When data is inputted the name, email etc. will change same colour as the background for the done box **/
form .field input[type=text].focused + label,
form .field textarea.focused + label {
color: #c45e5e;
}
/** This is for when the user selects the box and you have the email name box on the left side**/
form .field:hover label {
width: 20%;
background: #313A3D;
color: white;
}
/** SUBMIT BUTTON DISPLAY & HOVER **/
form input[type=submit] {
cursor: pointer;
background: #c45e5e;
color: white;
-webkit-appearance: none;
border: none;
text-transform: uppercase;
position: relative;
padding: 13px 50px;
font-size: 1.7em;
letter-spacing: 0.08em;
font-weight: 100;
-webkit-transition: all 333ms ease-in-out;
-moz-transition: all 333ms ease-in-out;
-o-transition: all 333ms ease-in-out;
-ms-transition: all 333ms ease-in-out;
transition: all 333ms ease-in-out;
}
form input[type=submit]:hover {
background: white;
color: #c45e5e;
}
/** SUBMIT BUTTON DISPLAY & HOVER **/
/** SUBMIT BUTTON when selected **/
form input[type=submit]:focus {
outline: none;
background: #c45e5e;
color: white;
}
/** SUBMIT BUTTON when selected **/
/** For MEDIUM **/
@media only screen and (max-width: 990px) and (min-width: 768px) {
form .field label {
font-size: 1.74em;
padding-left: 2px;
padding-right: 2px;
}
form .field input[type=text],
form .field textarea {
width: 100%;
margin: 0;
padding: 18px 0; /* user text */
padding-left: 22%;
color: black; /* user text */
font-size: 1.3em; /* user text */
letter-spacing: 0.1em; /* user text */
}
form .field label + span {
font-size: 1.8em;
left: 3.5%;
}
form {
width: 85.3333333333%;
}
form .field input[type=text]#msg,
form .field textarea#msg {
height: 60px;
}
}
/** For MEDIUM **/
/** Between MEDIUM & SMALL **/
@media only screen and (max-width: 767px) and (min-width: 411px) {
form .field label {
font-size: 1.74em;
padding-left: 2px;
padding-right: 2px;
}
form .field input[type=text],
form .field textarea {
width: 100%;
margin: 0;
padding: 18px 0; /* user text */
padding-left: 30%;
color: black; /* user text */
font-size: 1.3em; /* user text */
letter-spacing: 0.1em; /* user text */
}
form .field label + span {
font-size: 1.5em;
left: 6%;
top: 15px;
}
form {
width: 85.3333333333%;
}
/** Height of the message box**/
form .field input[type=text]#msg,
form .field textarea#msg {
height: 60px;
}
/** Height of the message box**/
/** Width of the DONE box when user is finished **/
form .field input[type=text]:focus + label, form .field input[type=text].focused + label,
form .field textarea:focus + label,
form .field textarea.focused + label {
width: 25%;
}
/** Width of the message, email, and name boxes when user selects **/
form .field:hover label {
width: 28%;
}
}
/** Between MEDIUM & SMALL **/
/** For SMALL **/
@media only screen and (max-width: 410px) {
form .field label {
font-size: 0.9em;
padding-left: 3px;
padding-right: 3px;
}
form .field input[type=text],
form .field textarea {
width: 100%;
margin: 0;
padding: 12px 0; /* user text */
padding-left: 25%;
color: black; /* user text */
font-size: 1.13em; /* user text */
letter-spacing: 0.1em; /* user text */
}
form {
width: 85.3333333333%;
}
form .field label + span {
font-size: 1em;
left: 4.5%;
top: 14px;
}
form .field input[type=text]#msg,
form .field textarea#msg {
height: 45px;
}
form .field input[type=text]:focus + label, form .field input[type=text].focused + label,
form .field textarea:focus + label,
form .field textarea.focused + label {
width: 22%;
}
form .field:hover label {
width: 23%;
}
}
/** For SMALL **/