hugo-theme-zzo/assets/sass/components/_swiper.scss

49 lines
797 B
SCSS
Raw Normal View History

.swipe {
overflow: hidden;
visibility: hidden;
2020-02-12 08:47:55 +00:00
position: relative;
}
2020-02-12 08:47:55 +00:00
.swipe-wrap {
overflow: hidden;
position: relative;
}
2020-02-12 08:47:55 +00:00
.swipe-wrap > div {
float: left;
position: relative;
overflow: hidden;
object-fit: contain;
@include flexbox();
@include justify-content(center);
@include align-items(center);
2020-02-12 08:47:55 +00:00
}
.swipe-home > div {
float: left;
width: 100%;
position: relative;
overflow: hidden;
@include flexbox();
@include justify-content(center);
@include flex-direction(column);
}
2020-03-17 05:11:46 +00:00
.swiper-slide {
@include flexbox();
@include flex-direction(column);
&[data-align='center'] {
@include align-items(center);
}
&[data-align='left'] {
@include align-items(flex-start);
}
&[data-align='right'] {
@include align-items(flex-end);
}
}