summaryrefslogtreecommitdiff
path: root/_sass/common/components/_swiper.scss
blob: 3493a621a79fcf45e5831272b2f1898aa1c4955f (plain)
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
.swiper {
  position: relative;
  @include overflow(hidden);
}

.swiper__wrapper, .swiper__slide {
  width: 100%;
  height: 100%;
}

.swiper__wrapper {
  @include flexbox();
}

.swiper__wrapper--animation {
  @include transition(transform map-get($animation, duration) map-get($animation, timing-function));
}

.swiper__slide {
  @include flex-shrink(0);
  & > img {
    max-width: 100%;
  }
}

.swiper__button {
  position: absolute;
  top: 50%;
  @extend .button, .button--circle;
  @include transform(translate(0, -50%));
  @include clickable($text-color-d, rgba($main-color-3, .4));
}

.swiper--light .swiper__button {
  @include clickable($text-color-theme-light, rgba($main-color-theme-dark, .4));
}

.swiper--dark .swiper__button {
  @include clickable($text-color-theme-dark, rgba($main-color-theme-light, .4));
}

.swiper__button--prev {
  left: 10px;
}

.swiper__button--next {
  right: 10px;
}