deprecated
3 weeks ago
_swiper._scss
2 months ago
block.json
3 weeks ago
edit-multiItem.js
3 weeks ago
edit-slider.js
3 weeks ago
edit.js
1 week ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
loop-min-slides.js
2 months ago
pause-button.js
1 week ago
save.js
1 week ago
style.scss
2 months ago
view.js
1 week ago
_swiper._scss
99 lines
| 1 | @mixin swiper-button-font-awesome { |
| 2 | position: relative; |
| 3 | font-family: "Font Awesome 5 Free"; |
| 4 | font-weight: bold; |
| 5 | background: rgba(255, 255, 255, 0.5); |
| 6 | padding: 5px 10px; |
| 7 | font-size: 20px; |
| 8 | border-radius: 0.25rem; |
| 9 | color: rgba(0, 0, 0, 0.5); |
| 10 | } |
| 11 | //button design |
| 12 | .swiper-button-prev::after { |
| 13 | @include swiper-button-font-awesome; |
| 14 | content: "\f104"; |
| 15 | @media (min-width: 992px) { |
| 16 | padding: 15px 20px; |
| 17 | } |
| 18 | } |
| 19 | .swiper-button-next::after { |
| 20 | @include swiper-button-font-awesome; |
| 21 | content: "\f105"; |
| 22 | @media (min-width: 992px) { |
| 23 | padding: 15px 20px; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | //button position |
| 28 | .swiper-container { |
| 29 | .swiper-button-next, |
| 30 | .swiper-button-prev { |
| 31 | position: absolute; |
| 32 | top: 50%; |
| 33 | z-index: 10; |
| 34 | } |
| 35 | .swiper-button-prev, |
| 36 | .swiper-container-rtl .swiper-button-next { |
| 37 | left: 10px; |
| 38 | right: auto; |
| 39 | @media (min-width: 992px) { |
| 40 | left: 20px; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | .swiper-button-next, |
| 45 | .swiper-container-rtl .swiper-button-prev { |
| 46 | right: 10px; |
| 47 | left: auto; |
| 48 | @media (min-width: 992px) { |
| 49 | right: 20px; |
| 50 | } |
| 51 | } |
| 52 | &.vk_width-full { |
| 53 | .swiper-button-prev, |
| 54 | .swiper-container-rtl .swiper-button-next { |
| 55 | @media (min-width: 992px) { |
| 56 | left: 30px; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | .swiper-button-next, |
| 61 | .swiper-container-rtl .swiper-button-prev { |
| 62 | @media (min-width: 992px) { |
| 63 | right: 30px; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | //button animation |
| 70 | .swiper-button-prev:hover:after { |
| 71 | animation: arrow_prev 0.5s ease-out forwards; |
| 72 | } |
| 73 | @keyframes arrow_prev { |
| 74 | 0% { |
| 75 | right: 0px; |
| 76 | } |
| 77 | 50% { |
| 78 | right: 3px; |
| 79 | } |
| 80 | 100% { |
| 81 | right: 0; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | .swiper-button-next:hover:after { |
| 86 | animation: arrow_next 0.5s ease-out forwards; |
| 87 | } |
| 88 | @keyframes arrow_next { |
| 89 | 0% { |
| 90 | left: 0px; |
| 91 | } |
| 92 | 50% { |
| 93 | left: 3px; |
| 94 | } |
| 95 | 100% { |
| 96 | left: 0; |
| 97 | } |
| 98 | } |
| 99 |