-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
332 lines (321 loc) · 7.1 KB
/
style.css
File metadata and controls
332 lines (321 loc) · 7.1 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
*{
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
/* This nice fix hides the ugly left-right scrollbar */
html, body {
max-width: 100%;
overflow-x: hidden;
}
.header{
min-height: 100vh;
width: 100%;
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/bostonbridge.jpg);
background-position: center;
background-size: cover;
position: relative;/*break this*/
}
nav{
display: flex;
padding: 2% 6%;
justify-content: space-between;
align-items: center;
}
nav img{/*okay update, we found out that if you set the width to 35% it would leave a big empty space that still counts as a link for some reason. It's not because its a part of the image but instead a part of the nav, leaving me to believe that the 35% is of the nav container. however, without the 100% the size will never adjust when the screen size changes */
width: 100%; /* this is the value we keep the image at normally */
max-width: 400px; /* and this is the value that we never want the image to exceed */
}
.nav-links{
flex: 1;
text-align: right;
}
.nav-links ul li{
list-style: none;
display: inline-block;
padding: 8px 12px; /* this means 8px of vertical padding and 12px horzontal padding */
position: relative;
}
.nav-links ul li a{
color: #fff;
text-decoration: none;
font-size: 18px;
}
.nav-links ul li::after{/*UPDATE: so this creates a line that appears under the links that is normally at 0% width*/
content: '';
width: 0%;
height: 2px;
background: #f44336;
display: block;/*if this was inline then none of the width height or anything else would matter*/
margin: auto;/*if you mess with this it loads left to right*/
transition: .35s;
}
.nav-links ul li:hover::after{/*but this will run after the link is hovered over and the line will get big according to the transition time above*/
width: 100%;
}
.text-box{
width: 90%;
color: #fff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);/*center of div*/
text-align: center;
}
.text-box h1{
font-size: 62px;
}
.text-box p{
margin: 10px 0 40px;
font-size: 14px;
color: #fff;
}
.hero-btn{
display: inline-block;
text-decoration: none;
color: #fff;
border: 1px solid #fff;
padding: 12px 34px;
font-size: 13px;
background: transparent;
position: relative;
cursor: pointer;
}
.hero-btn:hover{
border: 1px solid #f44336;
background: #f44336;
transition: 1s;
}
nav .fa{
display: none;
}
@media(max-width: 700px){ /*nav menu*/
.text-box h1{
font-size: 20px;
}
.nav-links ul li{
display: block;
}
.nav-links{
position: absolute;
background: #f44336;
height: 100vh;
width: 200px;
top: 0;
right: -200px;
text-align: left;
z-index: 2;
transition: 1s;
}
nav .fa{
display: block;
color: #fff;
margin: 10px;
font-size: 22px;
cursor: pointer;
}
.nav-links ul{
padding: 30px;
}
}
/* Skills section */
.skill{
width: 80%;
margin: auto;
text-align: center;
padding-top: 100px;
}
.skill h1{
font-size: 36px;
font-weight: 600;
}
.skill p{
color: #777;
font-size: 14px;
line-height: 22px;
padding: 10px;
}
.row{
margin-top: 5%;
display: flex;
justify-content: space-between;
}
.skill-col{
flex-basis: 31%;
background: #fff3f3;
border-radius: 10px;
margin-bottom: 5%;
padding: 20px 12px;
box-sizing: border-box;
transition: 0.5s;
}
.skill h3{
text-align: center;
font-weight: 600;
margin: 10px 0;
}
.skill-col:hover{
box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 850px){
.row{
flex-direction: column;
}
}
/* --------- Interesting facts --------- */
.int-fact{
width: 80%;
margin: auto;
text-align: center;
padding-top: 50px;
}
.int-col{
flex-basis: 32%;
border-radius: 10px;
margin-bottom: 30px;
position: relative;
overflow: hidden;
}
.int-col img{
width: 100%;
height: 100%;
max-height: fit-content;
display: block;
}
.layer{
background: transparent;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
transition: .5s;
}
.layer:hover{
background: rgba(226,0,0,0.4);
}
.layer h3{
width: 100%;
font-weight: 500;
color: #fff;
font-size: 26px;
bottom: 0;
left: 50%;
transform: translateX(-50%);
position: absolute;
opacity: 0;
transition: 0.5s;
}
.layer:hover h3{
bottom: 50%;
transform: translate(-50%, 50%); /*translate is based off the size of the child object instead of the container, so this code is to perfectly center the text taking into account it's size*/
opacity: 1;
}
.photogallery{
width: 80%;
margin: auto;
text-align: center;
padding-top: 100px;
}
.gallery-col{
flex-basis: 31%;
border-radius: 10px;
margin-bottom: 5%;
text-align: left;
}
.gallery-col img{
width: 100%;
border-radius: 10px;
}
/* #peacefulriver{
background-image: url(images/peacefulriver.jpg);
background-size: cover;
background-position: 50%;
} */
.gallery-col p{
padding: 0;
}
.gallery-col h3{
margin-top: 16px;
margin-bottom: 15px;
text-align: left;
}
/* ---------vouchers------------ */
.vouchers{
width: 80%;
margin: auto;
padding-top: 100px;
text-align: center;
}
.vouchers-col{
flex-basis: 44%;
border-radius: 10px;
margin-left: 2.5%;
margin-right: 2.5%;
margin-bottom: 5%;
text-align: left;
background: #fff3f3;
padding: 25px;
cursor: pointer;
display: flex;
}
.vouchers-col img{
height: 40px;
margin-left: 5px;
margin-right: 30px;
border-radius: 50%;
}
.vouchers-col p{
padding: 0;
}
.vouchers-col h3{
margin-top: 15px;
text-align: left;
}
.vouchers-col .fa{
color: #f44336;
}
@media(max-width: 700px){
.testimonial-col img{
margin-left: 0px;
margin-right: 15px;
}
}
/* -------contact me------- */
.contact{
margin: 100px auto;
width: 80%;
background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/hotellobby.jpg);
background-position: center;
background-size: cover;
border-radius: 10px;
text-align: center;
padding: 100px 0;
}
.contact h1{
color: #fff;
margin-bottom: 40px;
padding: 0;
}
@media(max-width: 700px){
.cta h1{
font-size: 24px;
}
}
/* --------- footer --------- */
.footer{
width: 100%;
text-align: center;
padding: 30px 0;
}
.footer h4{
margin-bottom: 25px;
margin-top: 20px;
font-weight: 600;
}
.socials .fa{
color: #f44336;
margin: 0 13px;
cursor: pointer;
padding: 18px 0;
}