mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
95 lines
1.6 KiB
SCSS
95 lines
1.6 KiB
SCSS
|
|
/**
|
|
* Slide Box
|
|
* --------------------------------------------------
|
|
*/
|
|
|
|
.slider {
|
|
overflow: hidden;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.slider-slides {
|
|
height: 100%;
|
|
width: 100%;
|
|
position: relative;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.slider-slide {
|
|
display: block;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
|
|
&[slide-state="previous"] {
|
|
@include translate3d(-100%, 0, 0);
|
|
}
|
|
&[slide-state="selected"] {
|
|
@include translate3d(0, 0, 0);
|
|
}
|
|
&[slide-state="next"] {
|
|
@include translate3d(100%, 0, 0);
|
|
}
|
|
&[slide-state="detached"] {
|
|
display: none;
|
|
}
|
|
|
|
// Only transition elements going into or out of selection.
|
|
&[slide-previous-state="selected"],
|
|
&[slide-state="selected"] {
|
|
transition: transform ease-out;
|
|
-webkit-transition: -webkit-transform ease-out;
|
|
@include transition-duration(inherit);
|
|
z-index: 1;
|
|
}
|
|
&.no-animate {
|
|
@include transition-duration(0ms !important);
|
|
}
|
|
}
|
|
|
|
.slider-slide-image {
|
|
> img {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.slider-pager {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
z-index: $z-index-slider-pager;
|
|
width: 100%;
|
|
height: 15px;
|
|
text-align: center;
|
|
z-index: 2;
|
|
|
|
@include display-flex();
|
|
@include align-items(center);
|
|
@include justify-content(center);
|
|
|
|
.slider-pager-page {
|
|
margin: 0px 3px;
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 15px;
|
|
background-color: black;
|
|
text-decoration: none;
|
|
|
|
opacity: 0.3;
|
|
|
|
&.active {
|
|
@include transition(opacity 0.4s ease-in);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|