-
Notifications
You must be signed in to change notification settings - Fork 0
/
detalji.txt
586 lines (414 loc) · 21.8 KB
/
detalji.txt
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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
Projekat je radjen sa naprednim CSS tehnikama: CSS Grid i Flexbox preko CSS predprocesora SASS. Sajt NE POSEDUJE js!!! Korisceni razni tagovi u naslovu i imenima fotografija radi boljeg SEO. Koriscene svg ikonice i sprite.svg umesto .jpg i .png radi brzeg ucitavanja sajta.
-------------------------------------------------
Podesena osnovna postavka grida u body-u ovako: display: grid, grid-template-rows: 5rem calc(100vh - 5rem) 40vw repeat(6, min-content), grid-template-columns: repeat(4, 1fr);, kreirane promenljive za COLORS, FONT FAMILY, FONT SIZE, BOX-SHADOWS, TRANSITIONS i BREAKPOINTSi izgled selektovanog teksta na sajtu uz pomoc pseudo elementa ::selection {
background-color: $color-green-medium;
color: $color-white;
}
-------------------------------------------------
Navigacija - stavljen <h1> kao prvi tekst na .html strani i fiksirana navigacija uz html <h2> unutar <li> element radi boljeg SEO efekta. Celo <li> polje aktivno na klik preko hover-a tehnikom grida.
-------------------------------------------------
Header - Kodirane 3 animacije - 2 naslova i 1 dugmeta (@keyframes moveInLeft, @keyframes moveInRight i @keyframes moveInBottom
), extends - @extend %heading za sve heading-e i logo ima efekat preko hover-a.Korisceni pseudo elementi ::after, pseudo klase :hover, :focus, :active, pa kombinacija &:hover::after{...} i onda nestandardni propertiestransition: $transition-1, clip-path: polygon(), background-image: linear-gradient(to right bottom, rgba($color-green-light, 0.8), rgba($color-green-dark, 0.8)),url(../img/...), background-size: cover, background-position: left; transform: translateY(-.15rem), box-shadow: 0 .5rem 1rem rgba($color-black, .2), transform: scaleX(1.4) scaleY(1.6), opacity: 0; letter-spacing: 4rem, animation: moveInLeft 1.5s, animation-fill-mode: backwards;
-------------------------------------------------
Story pictures - sa srcsetza manje i vece ekrane iskacu sa ramom na hover (treba dodati media za breakpoint/e). Korisceni overflow: hidden, outline: 1.2rem solid $color-green-medium i njegov razmak outline-offset: 1.2rem; box-shadow: $bx-sw-2, transform: scale(1.2), padding: 6rem 6vw
-------------------------------------------------
Story content - kreirane 3 utility klase ( u posebnom .scss fajlu i taj fajl ukljucen u main.scss) koje su ubacene u index.html, kao i h4 i h5 sa svojim modifikatorima i modifikator dugmeta u zelenu boju sa zelenim pratecim efektima
-------------------------------------------------
Feature - clip-path: polygon(), sa 4 kartice preko grida, koje imaju po 1 html <svg> element koji u sebi ima html <use> element i gadja .svg fajl preko xlink:href="sprite.svg" fajl, u kome se nalaze sve .svg ikonice neophodne za sajt, 1 h4 sa modifikatorom i 1 paragraf, uz hover i transform: translateY() i scale() i 2 box-shadow stanja (kada je karta dole i kada je gore), grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr)); Ikonicama data visina, sirina i boja preko fill:...; property-a
-------------------------------------------------
Gallery - grid preko jedinica vw - grid-template-rows: repeat(5, 5vw) i img dovedene u red preko object-fit: cover; width: 100%; height: 100%; Na klik preko pseudo klase :acitve stanja iskacu slike putem transform: translateX(-100%) translateY(50%) scale(2.5) sa ramom outline: .7rem solid $color-orange-light;
-------------------------------------------------
Cards - formirana sekcija koja sadrzi naslov, 3 karte sa po dve strane i dugme. Formirane su velicine dve strane koje su apsoultno postavljene rotiraju za 180* / korisnjeni su transform: rotateY(-180deg), backface-visibility: hidden, box-shadow: $bx-sw-1, border-radius i perspective: 150rem; Uradjena je kompletna zadnja strana preko grida sa 3 elementa i svakoj dodat background-image.Na prednjoj strani je uradjena slika preko css-a background-image uz background-size: cover, background-blend-mode: screen i clip-path: polygon() i naslov koji se lomi uz pomoc box-decoration-break: clone i width: 55%, a pozicionira sa text-align: right;Elementima<div class="card__picture card__picture--1, --2 i --3"> dat je karakter entiteta reference (character entity reference) koji ne pokazuje nista
-------------------------------------------------
Booking - uradjena pozadina, sa naslovom, kutijom za formu i dugmetom. Kutiji stavljena pozadinska fotografija uz kosinu i transparentnu polovinu preko background-image: linear-gradient(105deg, rgba($color-white, .9) 0%, rgba($color-white, .9) 50%, transparent 50%), url(../img/rafting-1-15.jpg);Kreirana forma sa html <label> elementom u kome se nalazi <span> element.
Slozena 2 input text polja, 2 label input polja, 2 input radio polja, 2 label radio input polja i 2 label span polja preko grid i flex tehnologije. Korisceni pseudo elementi ::after, ::placeholder i pseudo klase :focus, :focus:invalid, i funkcije &__input:placeholder-shown + &__label-input {...}, &__radio:checked + &__label-radio &__label-radio-button::after {opacity: 1;} i nestandardni properties border-bottom: 3px solid transparent; font-family: inherit, color: inherit; transform: translateY(-4rem); opacity: 0; visibility: hidden;
Kreirane @mixin funkcije (u posebnom .scss fajlu i taj fajl ukljucen u main.scss) i implementirane u sve prethone fajlove na odgovarajuca mesta.
-------------------------------------------------
Reviews - kreiran pozadinski video (backgroud-video) kroz html, ovako<div class="bg-video">
<video class="bg-video__content" autoplay muted loop>
<source src="img/video.mp4" type="video/mp4">
<source src="img/video.webm" type="video/webm">
Your video is not supported!
</video>
</div>
U ovoj sekciji kreirani su naslov, 2 review elementa i <button> element u sebi ima 2 <span> elementa, koji su pozicionirani preko grida.
Svaki review element je oblikovan preko clip-path: polygon() u css-u, u kome se nalaze html <figure> element koji u sebi sadrzi <img srcset="img/rafting-1-17-small.jpg 300w, img/rafting-1-17-large.jpg 1000w"> za slike za vece i manje rezolucije i <figcaption> za ime i <div> koji u sebi sadrzi POSTOJECI<h4> i <p>. <figure> elementuje u css-u dat kruzni oblik kroz clip-path: circle(50% at 50% 50%) i zadat shape-outside: circle(50% at 50% 50%) kako bi sadrzaj<div>elementa pratio oblik slike.
<button class="btn--orange"> elementu data POSTOJECAanimacija animation: pulsate 2.5s infinite; i background-image: linear-gradient(); On u sebi sadrzi modifikatore <span class="btn--orange-invisible"> i <span class="btn--orange-visible">
<span class="btn--orange-invisible"> element je pozicioniran position: absolute; i oduzet mu je padding sa obe strane - padding: 2rem 0; - kako bi tekst mogao da stane u <button> element. Da podsetim <button> element je imao padding: 2rem 7rem;
Na :hover
<figcaption> se pojavljuje preko opacity: 1; i transform: translate(-50%, -50%); na sredinu <img>, a
<img> se zamucuje, pomera i umanjuje preko filter: blur() brightness() i transform: translateX() scale()
<button class="btn--orange"> menja background-image: linear-gradient();
<span class="btn--orange-invisible"> se uz pomoc top: 0; pozicionira na sredinu <button class="btn--orange"> elementa
<span class="btn--orange-visible"> se uz pomoc transform: translateY(250%); spusta ispod <button class="btn--orange"> elementa
Elementima <span>-a dati transition: $transition-2; a <button>-u dat overflow: hidden; kako bi uklonio <span>-ove koji su u datim momentima (pre i posle :hover-a)van<button> elementa
Kreirane dve animacije 'sa zadrskom' animation: invisible 20s infinite 3s; i animation: visible 20s infinite 3s; koje ce biti aktivirane u @media za mobilne uredjaje
-------------------------------------------------
Konstatovano je da box-shadow NE RADI kada je clip-path aktivan.Konstatovano je dashape-outside: circle() NE RADI kada je display: grid ili display: flex aktivan vec element MORAimati float: left;Konstatovano je datransform: ; radi SAMO ako je objekat definisan kao display:block. Takodje kada stavimo da je roditelj elementa display:grid, on tretira 'decu' kao blokove i u tom slucaju takodje radi
Dodat backface-visibility: hidden; u <img>i <figcaption> kako bi uklanio trzaj teksta na kraju kretanja
-------------------------------------------------
Popup - <div class="popup" id="popup"> elementu dati position: fixed; height: calc(100vh + 5rem); @include grid-center-2; z-index: 1999; visibility: hidden; opacity: 0; transition: $transition-2; -webkit-backdrop-filter: blur(10px); i backdrop-filter: blur(10px); gde element postaje vidljiv (kad se klikne na id="#popup") preko
&:target {
visibility: visible;
opacity: 1;
}
backdrop-filter RADI- Chrome i Edge, ali NE RADI - Firefox
U njemu se nalazi element <div class="popup__content"> kome je dat display: grid; i grid-template-columns: 25vw 50vw; kako bi 'decu' podelio na 2 definisana dela.
Fotofrafije u prvom 'delu' pozivane su preko srcset-a za manje i vece ekrane
<img srcset="img/rafting-1-17-small.jpg 300w, img/rafting-1-17-large.jpg 1000w" alt="Rafting-1 image 17" class="popup__photos popup__photos--1" src="img/rafting-1-17-large.jpg">
Elementu <a class="popup__close"> dat je karakter entiteta reference (character entity reference) × koji pokazuje X za gasenje prozora, koji je pozicioniran position: absolute;
Elementu <p class="popup__text"> zadati column-count: 2; column-gap: 4rem; column-rule: 1px solid $color-grey-dark-1; hyphens: auto; i text-align: justify;
-------------------------------------------------
Dodati id="..." - jevi na odredjene sekcije
Svim <a> (u navigaviji i dugmicima) dodate putanje <a href="#..."> ka tim sekcijama
Svim <button>-ovima unutar elementa dodati<a> ... i u <button class="btn--orange"><span>-ove takodje
<button> i <a> elementima dodat display:grid; kako bi celo dugme bilo aktivno, a ne samo slova od<a>
<section class="booking"> oduzet globalni grid-gap i padding, a naslovu i dugmetu unutar sekcije dodate margine gore i dole
<section class="gallery"> stavljen je unutar novokreiranog 'roditelja' <section class="gallery-box"> zajedno sa novokreiranim naslovom <h6> i pozicioniran. Element preimenovan u html-u u <div class="gallery"> kome je skinut padding-top
-------------------------------------------------
Footer - postavljen logo preko html <picture> elementa u kome se nalaze hmtl <source> i <img> elementi, za manje i vece ekrane, 5 svg ikonca za drustvene mreze preko sprite.svg fajla, koje imaju :hover efekat i 1 paragraf
<picture class="logo--footer">
<source media="(max-width: 51.5em)" srcset="img/logo-1-rafting.svg 1x, img/logo-1-rafting.png 2x" class="logo--footer-1">
<img alt="rafting-2-logo-green" srcset="img/logo-2-rafting.svg 1x, img/logo-2-2-rafting.svg 2x" src="img/logo-2-2-rafting.svg" class="logo--footer-2">
</picture>
-------------------------------------------------
.heading-1 { z-index: 2001; } .navigation &__list { z-index: 2000; }.popup { z-index: 1999; }.story &-pictures &__img:hover { z-index: 5; } .heading-5 &__card { z-index: 2; } .card &__picture { z-index: 1;
.story &-pictures &__img &--1, &--2 i &--3 { z-index: 1; } .btn::after { z-index: -1; }.bg-video { z-index: -1; }
-------------------------------------------------
MEDIA QUERY
variables.scss
$bp-1: 82.5em; // 1320px
$bp-2: 75em; // 1200px
$bp-3: 58.75em; // 940px
$bp-3-3: 51.75em; // 828px
$bp-3-5: 51.5em; // 824px
$bp-4: 40em; // 640px
$bp-5: 30.25em; // 484px
------------------------------
form.scss
.form
@media only screen and (max-width: $bp-3)
grid-gap: 1rem;
@media only screen and (max-width: $bp-5)
grid-template-rows: repeat(6, min-content);
padding: 2rem;
.form &__label &-radio
@media only screen and (max-width:$bp-1)
font-size: 1.2rem;
.form &__label &-radio--1
@media only screen and (max-width: $bp-3)
width: 100%;
grid-column: 1 / 3;
@media only screen and (max-width: $bp-5)
grid-column: 1 / -1;
.form &__label &-radio--2
@media only screen and (max-width: $bp-3)
width: 100%;
grid-column: 3 / 5;
@media only screen and (max-width: $bp-5)
grid-column: 1 / -1;
grid-row: 6 / -1;
.form &__input &--1, &--2
@media only screen and (max-width: $bp-3)
width: 100%;
grid-column: 1 / 4;
@media only screen and (max-width: $bp-3-5)
grid-column: 1 / -1;
.form &__label &-input
@media only screen and (max-width: $bp-3)
transform: translateY(-1rem);
.form &__input:placeholder-shown + &__label-input
@media only screen and (max-width: $bp-3)
transform: translateY(-4rem);
------------------------------
home.scss
.cards
@media only screen and (max-width:$bp-1)
grid-template-columns: repeat(3, minmax(25rem, 1fr));
grid-gap: 5rem;
@media only screen and (max-width: $bp-3)
grid-template-columns: repeat(auto-fit, minmax(55rem, 1fr));
padding: 5rem;
@media only screen and (max-width: $bp-5)
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
padding: 5rem 5vw;
.features
@media only screen and (max-width:$bp-1)
grid-template-columns: repeat(4, minmax(15rem, 1fr));
grid-gap: 5rem;
@media only screen and (max-width: $bp-3)
grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
padding: 15rem 5rem;
-webkit-clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
@media only screen and (max-width: $bp-3-3)
grid-gap: 9rem;
@media only screen and (max-width: $bp-3-5)
-webkit-clip-path: polygon(0 2.5%, 100% 0, 100% 97.5%, 0 100%);
clip-path: polygon(0 2.5%, 100% 0, 100% 97.5%, 0 100%);
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
padding: 15rem 5vw;
@media only screen and (max-width:$bp-4)
grid-gap: 5rem;
padding: 10rem 5vw;
.booking &__box
@media only screen and (max-width: $bp-3) {
background-image: linear-gradient(to right, rgba($color-grey-light-2, .9), rgba($color-grey-light-2, .9)), url(../img/rafting-1-15.jpg);
@include grid-center-7;
height: 40rem;
width: 65vw;
@media only screen and (max-width: $bp-4)
height: 30rem;
.story &-pictures
@media only screen and (max-width: $bp-3)
grid-column: 1 / -1;
grid-template-rows: repeat(4, 1fr);
padding: 4rem 5vw;
.story &-content
@media only screen and (max-width: $bp-3)
grid-column: 1 / -1;
padding: 4rem 5vw;
.story &-content &__text
@media only screen and (max-width: $bp-4)
text-align: justify;
.story &-pictures &__img
@media only screen and (max-width: $bp-3)
outline-offset: .5rem;
.story &-pictures &__img &:hover, &:active
@media only screen and (max-width: $bp-3)
transform: scale(1.08);
outline: .8rem solid $color-green-medium;
.story &-pictures &__img &--1
@media only screen and (max-width: $bp-3)
grid-row: 2 / -1;
grid-column: 1 / 4;
.story &-pictures &__img &--2
@media only screen and (max-width: $bp-3)
grid-row: 1 / 4;
grid-column: 3 / 7;
.story &-pictures &__img &--3
@media only screen and (max-width: $bp-3)
grid-row: 2 / 5;
grid-column: 6 / -1;
.gallery &__img &--1, &--2, &--3, &--4, &--5 &:hover, &:active
@media only screen and (max-width: $bp-3)
outline: .4rem solid $color-orange-light;
------------------------------
base.scss
html
@media only screen and (max-width: $bp-2)
font-size: 50%;
body
@media only screen and (max-width: $bp-3)
grid-template-rows: 5rem calc(100vh - 5rem);
@media only screen and (max-width: $bp-3-5)
grid-template-rows: 3.5rem calc(100vh - 3.5rem);
@media only screen and (max-width: $bp-5)
grid-template-rows: 1.5rem calc(100vh - 1.5rem);
------------------------------
typography.scss
.heading-1
@media only screen and (max-width: $bp-3-5)
display: none;
.heading-3 &--main
@media only screen and (max-width: $bp-4)
font-size: 3rem;
@media only screen and (max-width: $bp-5)
font-size: 2rem;
letter-spacing: 2rem;
.heading-3 &--sub
@media only screen and (max-width: $bp-4)
font-size: 1.5rem;
@media only screen and (max-width: $bp-5)
font-size: 1rem;
margin-top: 1rem;
.heading-4
@media only screen and (max-width: $bp-4)
font-size: 1.35rem;
.heading-5
@media only screen and (max-width: $bp-4)
font-size: 1.9rem;
.heading-5 &--story
@media only screen and (max-width: $bp-5)
text-align: center;
.heading-5 &__card-span
@media only screen and (max-width: $bp-4)
padding: .7rem 1rem;
.heading-6
@media only screen and (max-width: $bp-3)
font-size: 3.25rem;
@media only screen and (max-width: $bp-4)
font-size: 2.5rem;
@media only screen and (max-width: $bp-5)
font-size: 2rem;
------------------------------
btn.scss
.btn a:link, a:visited
@media only screen and (max-width: $bp-3)
padding: 1.75rem 5rem;
.btn a:link, a:visited
@media only screen and (max-width: $bp-4)
padding: 1.55rem 3.5rem;
@media only screen and (max-width: $bp-5)
padding: 1.25rem 2rem;
font-size: 1.25rem;
.btn &--orange &-invisible
@media only screen and (max-width: $bp-3)
animation: invisible 10s infinite 1.5s;
.btn &--orange &-invisible a:link, a:visited
@media only screen and (max-width: $bp-3)
padding: 1.75rem 0;
@media only screen and (max-width: $bp-4)
padding: 1.55rem 0;
font-size: 1.25rem;
@media only screen and (max-width: $bp-5)
padding: 1.35rem 0;
font-size: .9rem;
.btn &--orange &-visible
@media only screen and (max-width: $bp-3)
animation: visible 10s infinite 1.5s;
.btn &--orange &-visible a:link, a:visited
@media only screen and (max-width: $bp-3)
padding: 1.75rem 5rem;
@media only screen and (max-width: $bp-4)
padding: 1.55rem 3.5rem;
@media only screen and (max-width: $bp-5)
padding: 1.25rem 2rem;
font-size: 1.25rem;
.btn &--popup
@media only screen and (max-width: $bp-3) {
justify-self: center;
------------------------------
reviews.scss
.review
@media only screen and (max-width: $bp-3)
padding: 3rem 12rem;
@media only screen and (max-width: $bp-3-5)
-webkit-clip-path: none;
clip-path: none;
padding: 3rem 5rem;
box-shadow: $bx-sw-4
@media only screen and (max-width: $bp-4)
hyphens: none;
.review &__story
@media only screen and (max-width: $bp-4)
@include grid-center-6;
grid-gap: 3rem;
.review &__shape
@media only screen and (max-width: $bp-4)
transform: translateX(0);
.review &__text
@media only screen and (max-width: $bp-3)
hyphens: auto;
@media only screen and (max-width: $bp-4)
text-align: justify;
------------------------------
footer.scss
.footer
@media only screen and (max-width: $bp-3-5)
grid-template-rows: repeat(3, min-content);
.footer &__social
@media only screen and (max-width: $bp-3-5)
grid-row: 3 / 4;
grid-column: 1 / -1;
.footer &__icon
@media only screen and (max-width: $bp-5)
margin-top: 2rem;
width: 2.5rem;
height: 2.5rem;
.footer &__text
@media only screen and (max-width: $bp-3-5)
grid-row: 2 / 3;
grid-column: 1 / -1;
------------------------------
popup.scss
.popup &__content
@media only screen and (max-width: $bp-3)
grid-template-rows: repeat(2, min-content);
.popup &__photos
@media only screen and (max-width: $bp-3)
grid-row: 2 / 3;
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, min-content);
.popup &__photos &--1
@media only screen and (max-width: $bp-3)
grid-column: 1 / 2;
.popup &__photos &--2
@media only screen and (max-width: $bp-3)
grid-column: 2 / -1;
.popup &__story
@media only screen and (max-width: $bp-3)
grid-row: 1/2;
grid-column: 1/-1;
padding: 5rem;
justify-items: center;
grid-gap: 3rem;
padding: 3rem;
@media only screen and (max-width: $bp-3-5)
grid-gap: 2.5rem;
padding: 2.5rem;
@media only screen and (max-width: $bp-4)
grid-gap: 2rem;
padding: 2rem;
------------------------------
feature-box.scss
.feature-box &:hover, &:active
@media only screen and (max-width: $bp-3)
transform: translateY(-.2rem) scale(1.05);
@media only screen and (max-width: $bp-3-5)
transform: translateY(-.15rem) scale(1.03);
------------------------------
logo.scss
.logo &--header
@media only screen and (max-width: $bp-3-5)
margin: 2rem;
width: 5rem;
height: 5rem;
@media only screen and (max-width: $bp-5)
margin: 1rem;
margin-top: 2rem;
width: 3.5rem;
height: 3.5rem;
.logo &--footer
@media only screen and (max-width: $bp-3-5)
margin-bottom: 0;
------------------------------
card.scss
.card &__side &--front
@media only screen and (max-width: $bp-3)
animation: card-front 10s infinite 1.5s;
.card &__side &--back
@media only screen and (max-width: $bp-3)
animation: card-back 10s infinite 1.5s;
------------------------------
header.scss
.header
@media only screen and (max-width: $bp-3)
-webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
@media only screen and (max-width: $bp-3-5)
-webkit-clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
------------------------------
navigation.scss
.navigation &__list
@media only screen and (max-width: $bp-3-5)
@include grid-center-2;
grid-template-columns: repeat(5, 10rem);
@media only screen and (max-width: $bp-5)
grid-template-columns: repeat(5, 7.5rem);
justify-content: space-between;
.navigation &__link:link, &__link:visited
@media only screen and (max-width: $bp-3-5)
padding: 1rem 2.5rem;
font-size: 1.2rem;
@media only screen and (max-width: $bp-5)
padding: .7rem;
font-size: 1rem;
------------------------------
Srdačan pozdrav,
Miloš Ćemalović
miloscemalovicnew@gmail.com / +381 62 327 929