Skip to content
This repository was archived by the owner on Aug 4, 2019. It is now read-only.

Commit 5cc5096

Browse files
committed
Some fixes and making it look nice
1 parent 52639f7 commit 5cc5096

File tree

3 files changed

+87
-101
lines changed

3 files changed

+87
-101
lines changed

css/web.css

+70-77
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ html {
33
top: 0;
44
left: 0;
55
font-family: 'Oswald', sans-serif;
6+
scroll-behavior: smooth;
67

78
/*Fixed Background*/
89
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../res/bg.jpg);
@@ -18,11 +19,11 @@ html {
1819

1920
--header-transparency: rgba(0, 0, 0, 0.7);
2021

21-
--image-size: 20%;
22+
--image-size: 30%;
2223
--red: #d22;
2324
--dark-gray: #111;
2425
--gray: #151515;
25-
--light-gray: #222;
26+
--transparent-gray: #222E;
2627

2728
--quick-transition: cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
2829
--long-transition: cubic-bezier(0.215, 0.610, 0.355, 1) 1s;
@@ -46,35 +47,35 @@ html {
4647
font-size: calc(var(--desktop-height) / 2);
4748
margin: auto 0;
4849
}
49-
#logo-header {
50+
.logo-header {
5051
display: none;
5152
opacity: 0;
5253
margin: auto 0;
5354
}
54-
#logo-header a {
55+
.logo-header a {
5556
text-decoration: none;
5657
color: #fff;
5758
}
58-
#logo-header img {
59+
.logo-header img {
5960
display: flex;
6061
margin-left: 5px;
6162
}
62-
#links-header {
63+
.links-header {
6364
display: flex;
6465
flex: 1;
6566
margin: auto 0;
6667
justify-content: space-around;
6768
transition: var(--quick-transition);
6869
}
69-
#links-header a {
70+
.links-header a {
7071
color: #eee;
7172
text-align: center;
7273
margin: auto 1vw;
7374
text-decoration: none;
7475
font-family: 'Dosis', sans-serif;
7576
transition: var(--quick-transition);
7677
}
77-
.header, #links-header, #logo-header, #logo-header img{
78+
.header, .links-header, .logo-header, .logo-header img{
7879
height: var(--desktop-height);
7980
font-size: calc(var(--desktop-height) / 2);
8081
}
@@ -88,16 +89,16 @@ html {
8889
font-size: calc(var(--desktop-height) / 1.75);
8990
height: calc(var(--desktop-height) * 1.5);
9091
}
91-
#links-header a:hover {
92+
.links-header a:hover {
9293
color: var(--red);
9394
}
9495

9596
/*Sticky header*/
96-
.sticky > #logo-header {
97+
.sticky > .logo-header {
9798
opacity: 1;
9899
display: flex;
99100
}
100-
.sticky > #links-header {
101+
.sticky > .links-header {
101102
display: flex;
102103
flex: 1 1 0;
103104
justify-content: flex-end;
@@ -121,47 +122,47 @@ html {
121122
}
122123

123124
/* Banner settings */
124-
#banner {
125+
.banner {
125126
/*Sizing*/
126127
height: 100vh;
127128
width: 100%;
128129
color: #fff;
129130
overflow: hidden;
130-
font-size: 4vw;
131+
font-size: calc(32px + 2vw);
131132
transition: var(--long-transition);
132133

133134
/*Flexbox content*/
134135
justify-content: center;
135136
align-items: center;
136137
display: flex;
137138
}
138-
#banner h1 {
139+
.banner h1 {
139140
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
140141
}
141-
#banner img {
142-
width: 20vw;
142+
.banner img {
143+
width: calc(32px + 14vw);
143144
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
144145
transition: var(--long-transition);
145146
}
146147

147148
/* Text field settings */
148-
#text {
149+
.text {
149150
display: flex;
150151
flex-wrap: wrap;
151-
width: 95%;
152+
width: 100%;
152153
min-height: 100px;
153-
background-color: var(--light-gray);
154+
background-color: var(--dark-gray);
154155
color: #fff;
155156
align-self: center;
156157
transition: var(--quick-transition);
157158
}
158159

159-
#text h2 {
160+
.text h2 {
160161
text-align: center;
161162
width: 100%;
162163
margin: 3vw 0;
163-
font-size: 5vw;
164-
line-height: 8vw;
164+
font-size: calc(32px + 2vw);
165+
line-height: 1.4em;
165166
background-color: var(--gray);
166167
transition: var(--quick-transition);
167168
color: var(--red);
@@ -175,106 +176,97 @@ html {
175176
margin: 0 auto;
176177
flex-direction: row;
177178
flex: 1;
178-
font-size: 1.2vw;
179+
font-size: calc(16px + 0.5vw);
179180
flex-wrap: wrap;
180181
align-items: flex-start;
181182
text-align: center;
182183
font-family: 'Dosis', sans-serif;
183184
transition: var(--quick-transition);
184185
}
185186
.row {
186-
width: 45%;
187+
width: 50%;
187188
}
188189
.text-field h3 {
189-
font-size: 1.2vw;
190+
font-size: calc(16px + 1vw);
190191
margin: 0;
191192
}
192193

193194
/*Category of descriptions*/
194195
.category {
195-
margin: 1.5vw 0;
196196
display: flex;
197197
flex-wrap: nowrap;
198-
width: 100%;
198+
width: 90%;
199+
margin: 1.5vw auto;
199200
overflow: hidden;
200201
transition: var(--quick-transition);
201-
filter: saturate(0%);
202202
color: #fff;
203-
box-shadow: 0 4px 8px -2px #000;
204203
}
205204
.category img {
206-
width: 40%;
205+
width: 80%;
207206
max-width: 900px;
208207
padding: 5% 5% 5% 5%;
209208
transition: var(--quick-transition);
210209
}
211-
.category:hover {
212-
color: #c22;
213-
box-shadow: 0 10px 8px -2px #000;
214-
filter: saturate(100%);
215-
}
216210

217211
/*Left Side settings*/
218212
.left {
219-
background-color: var(--dark-gray);
220213
width: var(--image-size);
221214
display: flex;
222-
justify-content: center;
215+
justify-content: flex-end;
223216
align-items: center;
224217
min-width: 200px;
225218
transition: var(--quick-transition);
226219
}
227220

228221
.swap .left {
229222
order: 1;
223+
justify-content: flex-start;
230224
}
231225

232226
/*Right side settings*/
233227
.right {
234-
background-color: var(--gray);
235228
width: calc(100% - var(--image-size));
236229
display: flex;
237230
flex-direction: column;
238-
padding: 2%;
231+
padding: 5%;
239232
justify-content: center;
240-
text-align: right;
233+
text-align: left;
241234
transition: var(--quick-transition);
242235
}
243236
.right h3 {
244237
font-size: 3vw;
245238
margin: 0;
246239
}
247240
.right p {
248-
font-size: 1.5vw;
249-
font-style: italic;
241+
font-size: calc(16px + 0.75vw);
250242
font-family: 'Open Sans Condensed', sans-serif;
251243
}
252244
.swap .right {
253245
order: 0;
254-
text-align: left;
246+
text-align: right;
255247
}
256248

257249
/*Webpage footer*/
258-
#footer {
250+
.footer {
259251
color: #fff;
260252
display: flex;
261-
width: 100%;
253+
width: 95%;
262254
height: auto;
263-
font-size: 1vw;
255+
font-size: calc(16px + 0.75vw);
264256
text-align: center;
265257
align-items: center;
266258
overflow: hidden;
267259
align-content: space-around;
268-
padding: 2% 0;
260+
padding: 2% 2.5%;
269261
background-color: var(--dark-gray);
270262
}
271-
#footer a {
263+
.footer a {
272264
color: var(--red);
273265
text-decoration: none;
274266
padding: 0 0.5vw;
275267
}
276-
#footer-r, #footer-r a {
277-
font-size: 1.5vw;
268+
.footer-r, .footer-r a {
269+
font-size: calc(16px + 0.5vw);
278270
padding: 0;
279271
font-style: italic;
280272
}
@@ -292,35 +284,38 @@ html {
292284
opacity: 0;
293285
display: none;
294286
}
295-
#links-header a {
296-
font-size: 3vw;
287+
.links-header a {
288+
font-size: calc(16 + 1vw);
297289
}
298-
.header, #links-header, #links-header a, #logo-header img {
290+
.header, .links-header, .links-header a, .logo-header img {
299291
height: var(--mobile-height);
300292
line-height: var(--mobile-height);
301293
}
302294
.header:hover {
303-
background-color: var(--header-transparency);
295+
background-color: var(--dark-gray);
304296
height: var(--mobile-height);
305297
}
306-
.header:hover > #links-header a {
298+
.header:hover > .links-header a {
307299
line-height: var(--mobile-height);
308-
font-size: 3vw;
300+
font-size: inherit;
309301
}
310302

311303
/*Banner settings*/
312-
#banner {
304+
.banner {
313305
font-size: 4vw;
314306
height: 300px;
315307
}
316-
#banner img {
308+
.banner img {
317309
width: 20vw;
318310
}
319311

320312
/*Category settings*/
321313
.category {
322314
flex-wrap: wrap;
323-
margin: 2vw 0;
315+
margin: 3vh 0;
316+
width: 100%;
317+
background-color: var(--gray);
318+
box-shadow: 0px 10px 10px 5px rgba(0,0,0,1);
324319
}
325320
.category img {
326321
width: 30%;
@@ -336,6 +331,7 @@ html {
336331
}
337332
.left {
338333
min-width: 200px;
334+
background-color: #5551;
339335
}
340336
.swap .right {
341337
order: 1;
@@ -346,10 +342,10 @@ html {
346342
text-align: center;
347343
}
348344
.right h3 {
349-
font-size: 6vw;
345+
font-size: calc(16px + 3vw);
350346
}
351347
.right p {
352-
font-size: 3vw;
348+
font-size: calc(16px + 1vw);
353349
margin: 0;
354350
}
355351

@@ -358,43 +354,40 @@ html {
358354
width: 100%;
359355
margin: 10px 0;
360356
}
357+
.text h2 {
358+
font-size: calc(16px + 7vw);
359+
line-height: 1.4em;
360+
}
361361
.text-field {
362-
font-size: 3vw;
362+
font-size: calc(12px + 0.75vw);
363363
padding: 10px;
364364
justify-content: space-between;
365365
}
366366
.text-field h3 {
367-
font-size: 4vw;
367+
font-size: calc(16px + 1.2vw);
368368
}
369369

370370
/*Footer settings*/
371-
#footer {
371+
.footer {
372372
width: 90%;
373373
padding: 0 5%;
374-
font-size: 4vw;
374+
font-size: calc(16px + 1.2vw);
375375
height: auto;
376376
flex-flow: wrap;
377377
}
378-
#footer a {
379-
font-size: 4vw;
378+
.footer a {
379+
font-size: calc(16px + 1.2vw);
380380
padding: 0 7px 0 7px;
381381
}
382-
#footer-r, #footer-r a {
383-
font-size: 3vw;
382+
.footer-r, .footer-r a {
383+
font-size: calc(16px + 0.5vw);
384384
padding: 0;
385385
}
386-
#footer-r {
386+
.footer-r {
387387
padding: 0 0 10px 0;
388388
}
389389
}
390390

391-
/*Fit text to whole screen*/
392-
@media screen and (max-width: 1280px) {
393-
#text {
394-
width: 100%;
395-
}
396-
}
397-
398391
/*Scrollbar hide*/
399392
::-webkit-scrollbar {
400393
width: 0;

0 commit comments

Comments
 (0)