2020-03-07 11:45:13 +00:00
|
|
|
@import '../../style/themes/index';
|
2019-01-02 13:01:56 +00:00
|
|
|
@import '../../style/mixins/index';
|
2018-07-20 08:13:21 +00:00
|
|
|
|
|
|
|
.@{ant-prefix}-carousel {
|
2020-12-27 06:50:32 +00:00
|
|
|
.reset-component();
|
2018-07-20 08:13:21 +00: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;
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2019-03-05 05:16:32 +00:00
|
|
|
overflow: hidden;
|
2018-07-20 08:13:21 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dragging {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-12-09 11:30:35 +00:00
|
|
|
|
|
|
|
.slick-slide {
|
|
|
|
pointer-events: none;
|
|
|
|
|
2020-05-15 06:09:19 +00:00
|
|
|
// https://github.com/ant-design/ant-design/issues/23294
|
|
|
|
input.@{ant-prefix}-radio-input,
|
|
|
|
input.@{ant-prefix}-checkbox-input {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2018-12-09 11:30:35 +00:00
|
|
|
&.slick-active {
|
|
|
|
pointer-events: auto;
|
2020-05-15 06:09:19 +00:00
|
|
|
|
|
|
|
input.@{ant-prefix}-radio-input,
|
|
|
|
input.@{ant-prefix}-checkbox-input {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2018-12-09 11:30:35 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-20 08:13:21 +00:00
|
|
|
}
|
|
|
|
.slick-slider .slick-track,
|
|
|
|
.slick-slider .slick-list {
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-track {
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
2019-03-05 05:16:32 +00:00
|
|
|
left: 0;
|
2018-07-20 08:13:21 +00:00
|
|
|
display: block;
|
|
|
|
|
2019-03-05 05:16:32 +00:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2018-07-20 08:13:21 +00:00
|
|
|
display: table;
|
2019-03-05 05:16:32 +00:00
|
|
|
content: '';
|
2018-07-20 08:13:21 +00:00
|
|
|
}
|
|
|
|
|
2019-03-05 05:16:32 +00:00
|
|
|
&::after {
|
2018-07-20 08:13:21 +00:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-loading & {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.slick-slide {
|
2019-03-05 05:16:32 +00:00
|
|
|
display: none;
|
2018-07-20 08:13:21 +00:00
|
|
|
float: left;
|
|
|
|
height: 100%;
|
|
|
|
min-height: 1px;
|
2019-01-02 13:01:56 +00:00
|
|
|
[dir='rtl'] & {
|
2018-07-20 08:13:21 +00:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
&.slick-loading img {
|
|
|
|
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: @border-width-base @border-style-base transparent;
|
|
|
|
}
|
|
|
|
.slick-arrow.slick-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Arrows
|
|
|
|
.slick-prev,
|
|
|
|
.slick-next {
|
|
|
|
position: absolute;
|
2019-03-05 05:16:32 +00:00
|
|
|
top: 50%;
|
2018-07-20 08:13:21 +00:00
|
|
|
display: block;
|
|
|
|
width: 20px;
|
2019-03-05 05:16:32 +00:00
|
|
|
height: 20px;
|
2018-07-20 08:13:21 +00:00
|
|
|
margin-top: -10px;
|
|
|
|
padding: 0;
|
2019-03-05 05:16:32 +00:00
|
|
|
color: transparent;
|
|
|
|
font-size: 0;
|
|
|
|
line-height: 0;
|
|
|
|
background: transparent;
|
2018-07-20 08:13:21 +00:00
|
|
|
border: 0;
|
|
|
|
outline: none;
|
2019-03-05 05:16:32 +00:00
|
|
|
cursor: pointer;
|
2018-07-20 08:13:21 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: transparent;
|
2019-03-05 05:16:32 +00:00
|
|
|
background: transparent;
|
|
|
|
outline: none;
|
|
|
|
&::before {
|
2018-07-20 08:13:21 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2019-03-05 05:16:32 +00:00
|
|
|
&.slick-disabled::before {
|
2018-07-20 08:13:21 +00:00
|
|
|
opacity: 0.25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-prev {
|
|
|
|
left: -25px;
|
2019-03-05 05:16:32 +00:00
|
|
|
&::before {
|
2019-01-02 13:01:56 +00:00
|
|
|
content: '←';
|
2018-07-20 08:13:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.slick-next {
|
|
|
|
right: -25px;
|
2019-03-05 05:16:32 +00:00
|
|
|
&::before {
|
2019-01-02 13:01:56 +00:00
|
|
|
content: '→';
|
2018-07-20 08:13:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dots
|
|
|
|
.slick-dots {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: @carousel-dot-height;
|
2019-03-05 05:16:32 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
list-style: none;
|
2020-03-07 11:45:13 +00:00
|
|
|
&-bottom {
|
|
|
|
bottom: 12px;
|
|
|
|
}
|
|
|
|
&-top {
|
|
|
|
top: 12px;
|
|
|
|
}
|
2018-07-20 08:13:21 +00:00
|
|
|
li {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 2px;
|
|
|
|
padding: 0;
|
2019-03-05 05:16:32 +00:00
|
|
|
text-align: center;
|
|
|
|
vertical-align: top;
|
2018-07-20 08:13:21 +00:00
|
|
|
button {
|
|
|
|
display: block;
|
|
|
|
width: @carousel-dot-width;
|
|
|
|
height: @carousel-dot-height;
|
2019-03-05 05:16:32 +00:00
|
|
|
padding: 0;
|
|
|
|
color: transparent;
|
|
|
|
font-size: 0;
|
|
|
|
background: @component-background;
|
|
|
|
border: 0;
|
2018-07-20 08:13:21 +00:00
|
|
|
border-radius: 1px;
|
|
|
|
outline: none;
|
2019-03-05 05:16:32 +00:00
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.3;
|
2019-01-02 13:01:56 +00:00
|
|
|
transition: all 0.5s;
|
2018-07-20 08:13:21 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.slick-active button {
|
|
|
|
width: @carousel-dot-active-width;
|
2019-03-05 05:16:32 +00:00
|
|
|
background: @component-background;
|
|
|
|
opacity: 1;
|
2018-07-20 08:13:21 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{ant-prefix}-carousel-vertical {
|
|
|
|
.slick-dots {
|
|
|
|
top: 50%;
|
2019-03-05 05:16:32 +00:00
|
|
|
bottom: auto;
|
|
|
|
width: @carousel-dot-height;
|
2018-07-20 08:13:21 +00:00
|
|
|
height: auto;
|
2019-03-05 05:16:32 +00:00
|
|
|
transform: translateY(-50%);
|
2020-03-07 11:45:13 +00:00
|
|
|
&-left {
|
|
|
|
left: 12px;
|
|
|
|
}
|
|
|
|
&-right {
|
|
|
|
right: 12px;
|
|
|
|
}
|
2018-07-20 08:13:21 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|