2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-carousel {
|
2016-04-27 20:44:36 +08:00
|
|
|
.slick-slider {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
-ms-touch-action: pan-y;
|
|
|
|
touch-action: pan-y;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
}
|
|
|
|
.slick-list {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2015-08-03 14:52:26 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dragging {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.slick-slider .slick-track,
|
|
|
|
.slick-slider .slick-list {
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-track {
|
|
|
|
position: relative;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
clear: both;
|
|
|
|
}
|
2015-08-03 17:45:58 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.slick-loading & {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.slick-slide {
|
|
|
|
float: left;
|
|
|
|
height: 100%;
|
|
|
|
min-height: 1px;
|
|
|
|
[dir="rtl"] & {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
&.slick-loading img {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&.dragging img {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-initialized .slick-slide {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-loading .slick-slide {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-vertical .slick-slide {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
.slick-arrow.slick-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Arrows
|
2015-08-03 17:45:58 +08:00
|
|
|
.slick-prev,
|
|
|
|
.slick-next {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2015-08-20 16:55:42 +08:00
|
|
|
line-height: 0;
|
|
|
|
font-size: 0;
|
2015-08-03 17:45:58 +08:00
|
|
|
cursor: pointer;
|
2015-08-03 14:52:26 +08:00
|
|
|
background: transparent;
|
|
|
|
color: transparent;
|
2015-08-03 17:45:58 +08:00
|
|
|
top: 50%;
|
|
|
|
margin-top: -10px;
|
|
|
|
padding: 0;
|
2015-11-26 19:32:55 +08:00
|
|
|
border: 0;
|
2015-08-03 17:45:58 +08:00
|
|
|
outline: none;
|
2015-11-26 19:32:55 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2015-08-03 17:45:58 +08:00
|
|
|
outline: none;
|
|
|
|
background: transparent;
|
|
|
|
color: transparent;
|
|
|
|
&:before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.slick-disabled:before {
|
|
|
|
opacity: 0.25;
|
2015-08-03 14:52:26 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-03 17:45:58 +08:00
|
|
|
.slick-prev {
|
|
|
|
left: -25px;
|
|
|
|
&:before {
|
|
|
|
content: "←";
|
|
|
|
}
|
2015-08-03 14:52:26 +08:00
|
|
|
}
|
|
|
|
|
2015-08-03 17:45:58 +08:00
|
|
|
.slick-next {
|
|
|
|
right: -25px;
|
|
|
|
&:before {
|
|
|
|
content: "→";
|
|
|
|
}
|
2015-08-03 14:52:26 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
// Dots
|
2015-08-03 17:45:58 +08:00
|
|
|
.slick-dots {
|
|
|
|
position: absolute;
|
2017-01-15 22:48:57 +08:00
|
|
|
bottom: 12px;
|
2015-08-03 17:45:58 +08:00
|
|
|
list-style: none;
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
2015-08-03 14:52:26 +08:00
|
|
|
padding: 0;
|
2015-08-03 17:45:58 +08:00
|
|
|
width: 100%;
|
2017-01-15 22:48:57 +08:00
|
|
|
height: @carousel-dot-height;
|
2015-08-03 17:45:58 +08:00
|
|
|
li {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2017-01-15 22:48:57 +08:00
|
|
|
vertical-align: top;
|
2016-11-09 16:56:49 +08:00
|
|
|
text-align: center;
|
|
|
|
margin: 0 2px;
|
2015-08-03 17:45:58 +08:00
|
|
|
padding: 0;
|
|
|
|
button {
|
|
|
|
border: 0;
|
2016-11-09 16:56:49 +08:00
|
|
|
cursor: pointer;
|
2017-01-15 22:48:57 +08:00
|
|
|
background: #fff;
|
2016-11-09 16:56:49 +08:00
|
|
|
opacity: 0.3;
|
2017-01-15 22:48:57 +08:00
|
|
|
display: block;;
|
|
|
|
width: @carousel-dot-width;
|
|
|
|
height: @carousel-dot-height;
|
|
|
|
border-radius: 1px;
|
2015-08-03 14:52:26 +08:00
|
|
|
outline: none;
|
2015-08-20 16:55:42 +08:00
|
|
|
font-size: 0;
|
2015-08-03 17:45:58 +08:00
|
|
|
color: transparent;
|
2017-01-15 22:48:57 +08:00
|
|
|
transition: all .5s;
|
2015-11-26 19:32:55 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2016-11-09 16:56:49 +08:00
|
|
|
opacity: 0.75;
|
2015-08-03 14:52:26 +08:00
|
|
|
}
|
|
|
|
}
|
2016-11-09 16:56:49 +08:00
|
|
|
&.slick-active button {
|
|
|
|
background: #fff;
|
|
|
|
opacity: 1;
|
2017-01-15 22:48:57 +08:00
|
|
|
width: @carousel-dot-active-width;
|
2016-11-09 16:56:49 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2015-08-03 14:52:26 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-carousel-vertical {
|
2015-08-03 14:52:26 +08:00
|
|
|
.slick-dots {
|
2017-01-15 22:48:57 +08:00
|
|
|
width: @carousel-dot-height;
|
2015-08-03 14:52:26 +08:00
|
|
|
bottom: auto;
|
2017-01-15 22:48:57 +08:00
|
|
|
right: 12px;
|
2016-11-09 16:56:49 +08:00
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
2017-01-15 22:48:57 +08:00
|
|
|
height: auto;
|
|
|
|
li {
|
|
|
|
margin: 0 2px;
|
|
|
|
vertical-align: baseline;
|
|
|
|
button {
|
|
|
|
width: @carousel-dot-height;
|
|
|
|
height: @carousel-dot-width;
|
|
|
|
}
|
|
|
|
&.slick-active button {
|
|
|
|
width: @carousel-dot-height;
|
|
|
|
height: @carousel-dot-active-width;
|
|
|
|
}
|
|
|
|
}
|
2015-08-03 14:52:26 +08:00
|
|
|
}
|
|
|
|
}
|