-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
347 lines (291 loc) · 5.88 KB
/
style.css
File metadata and controls
347 lines (291 loc) · 5.88 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
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
/* Define CSS variables */
:root {
/* This custom CSS variable represents the primary color used in the design. */
--primary-color: #bcccd0;
/* This custom CSS variable represents the secondary color used in the design. */
--secondary-color: #93a59d;
/* This variable represents an accent color. */
--accent-color: #c8a746;
/* This variable represents the secondary accent color. */
--secondary-accent-color: #dd6c7e;
/* This variable represents the text color. */
--text-color: #493d2c;
/* This variable represents the default font size. */
--font-size: 16px;
}
* {
/* Ensure consistent sizing with border-box box-sizing. */
box-sizing: border-box;
/* Remove underlines from anchor links. */
text-decoration: none;
/* Reset margins, paddings, and outlines for all elements. */
padding: 0;
margin: 0;
outline: none;
/* Set default font styles for text elements. */
font-family: "Quicksand", sans-serif;
color: var(--text-color);
font-size: var(--font-size);
}
/*styling for the header which displays the sitename and navigation*/
header {
display: flex;
justify-content: space-between;
}
header h1 {
font-family: "Protest Revolution", sans-serif;
color: var(--secondary-accent-color);
font-size: 45px;
padding-left: 5px;
}
header p {
color: var(--secondary-accent-color);
font-family: "Protest Revolution";
text-align: center;
}
/*styling for the navigation for mobile and tablets*/
.navigation-mobile {
display: inline-block;
align-self: center;
padding: 5px;
}
.dropdown-menu-icon {
color: var(--secondary-accent-color);
cursor: pointer;
}
.navigation-content-mobile {
display: none;
background-color: var(--primary-color);
margin: 5px 5px 0 0;
min-width: 150px;
position: absolute;
right: 0;
z-index: 1;
}
.navigation-content-mobile a {
color: var(--text-color);
display: block;
padding: 12px 16px;
text-transform: uppercase;
}
.navigation-mobile:hover .navigation-content-mobile {
display: block;
}
.navigation-content-mobile a:hover {
background-color: var(--secondary-color);
}
/*hidden navigation för tablet and desktops*/
.navigation-tablet-desktop {
display: none;
}
/*styling for the form element*/
form {
width: 100%;
padding: 10px;
}
/*styling the hero section which displays a background image, a banner and text*/
.hero-image {
display: flex;
position: relative;
height: 380px;
background-image: url("assets/pexels-cottonbro-studio-6700275.jpg");
background-size: cover;
background-position: center;
align-items: center;
margin-top: 10px;
}
/*styling for the banner through the hero bakcground image*/
.banner {
align-items: center;
background-color: rgba(200, 167, 70, 0.5);
border: 2px solid var(--accent-color);
padding: 3px 0;
width: 100%;
}
/*styling for the text displayed in the hero section*/
.hero-text {
display: flex;
justify-content: center;
width: 50%;
}
.hero-text h1 {
font-size: 22px;
font-family: "Protest Revolution";
color: #fff;
text-transform: uppercase;
}
h2 {
font-size: 20px;
margin-bottom: 10px;
padding: 5px 0;
}
.form-area {
margin-bottom: 15px;
}
label {
display: block;
}
.section-title {
font-size: 18px;
}
input[type="text"],
input[type="tel"],
input[type="email"] {
padding: 8px;
width: 100%;
}
.radio-option {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
margin: 10px;
}
.checkbox-option-box {
display: flex;
margin-top: 10px;
}
.checkbox-option {
display: flex;
flex-direction: column;
margin: 0 20px;
text-align: center;
}
.radio-option input[type="radio"] {
margin-right: 10px;
}
.checkbox-option input[type="checkbox"] {
margin-top: 10px;
}
input[placeholder] {
color: var(--text-color);
font-size: 14px;
}
fieldset {
border: dashed 2px var(--accent-color);
margin-bottom: 10px;
padding: 10px;
}
p {
font-size: 14px;
}
select {
background-color: var(--secondary-color);
border-radius: 3px;
color: #fff;
font-size: 14px;
padding: 2px;
}
.textarea-box label {
font-size: 18px;
}
textarea {
display: flex;
flex-direction: column;
width: 100%;
}
.submit-button {
display: flex;
width: 100%;
justify-content: center;
}
button {
background-color: var(--accent-color);
color: #fff;
border-radius: 5px;
border: 1px solid var(--primary-color);
margin-bottom: 10px;
padding: 8px 0;
text-transform: uppercase;
width: 100%;
}
footer {
display: flex;
width: 100%;
background-color: var(--primary-color);
padding: 8px;
}
.tablet-desktop-footer {
display: none;
}
@media (min-width: 576px) {
.hero-image {
height: 450px;
}
footer {
justify-content: space-between;
}
.tablet-desktop-footer {
display: block;
}
footer a {
display: block;
margin: 3px;
}
}
@media (min-width: 768px) {
.navigation-mobile {
display: none;
}
.navigation-tablet-desktop {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-tablet-desktop a {
color: var(--secondary-accent-color);
padding: 15px;
text-transform: uppercase;
}
.navigation-tablet-desktop a:hover {
background-color: var(--secondary-accent-color);
color: #fff;
}
.hero-image {
height: 550px;
}
.tablet-desktop-layout {
display: flex;
justify-content: space-between;
width: 100%;
}
.tablet-desktop-layout label {
width: 48%;
}
.post-code-box {
width: 35%;
}
.post-code-box label {
width: 90%;
}
.city-box {
width: 100%;
}
.city-box label {
width: 100%;
}
}
@media (min-width: 992px) {
body {
width: 80%;
padding: 10px;
margin: auto;
}
form {
border-right: 2px solid var(--primary-color);
border-left: 2px solid var(--primary-color);
}
}
@media (min-width: 1200px) {
body {
width: 70%;
}
.hero-image {
height: 650px;
}
.banner {
padding: 5px 0;
}
.hero-text h1 {
font-size: 30px;
}
}