ant-design/style/components/carousel/slick.less

94 lines
1.4 KiB
Plaintext
Raw Normal View History

.ant-carousel {
2015-08-03 14:52:26 +08:00
.slick-slider {
position: relative;
display: block;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-touch-callout: none;
user-select: none;
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
2015-08-03 14:52:26 +08:00
}
.slick-list {
position: relative;
overflow: hidden;
display: block;
margin: 0;
padding: 0;
2015-08-03 14:52:26 +08:00
&:focus {
outline: none;
}
2015-08-03 14:52:26 +08:00
&.dragging {
cursor: pointer;
cursor: hand;
}
2015-08-03 14:52:26 +08:00
}
.slick-slider .slick-track,
.slick-slider .slick-list {
transform: translate3d(0, 0, 0);
2015-08-03 14:52:26 +08:00
}
.slick-track {
position: relative;
left: 0;
top: 0;
2015-08-03 14:52:26 +08:00
display: block;
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
.slick-loading & {
visibility: hidden;
}
2015-08-03 14:52:26 +08:00
}
.slick-slide {
float: left;
height: 100%;
min-height: 1px;
[dir="rtl"] & {
float: right;
}
img {
display: block;
}
&.slick-loading img {
display: none;
}
2015-08-03 14:52:26 +08:00
display: none;
2015-08-03 14:52:26 +08:00
&.dragging img {
pointer-events: none;
}
2015-08-03 14:52:26 +08:00
}
.slick-initialized .slick-slide {
2015-08-03 14:52:26 +08:00
display: block;
}
.slick-loading .slick-slide {
2015-08-03 14:52:26 +08:00
visibility: hidden;
}
.slick-vertical .slick-slide {
2015-08-03 14:52:26 +08:00
display: block;
height: auto;
border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
display: none;
}
2015-08-03 14:52:26 +08:00
}