mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
слайдер для проекта
This commit is contained in:
1 parent
b4bebd0532
commit
9ccc71e046
7 files changed
+285
-68
No files matched your search
@@ -0,0 +1,105 @@
|
||||
.slider-container {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
padding: 64px 0 32px;
|
||||
overflow: visible;
|
||||
|
||||
.slider {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
padding-top: 32px;
|
||||
|
||||
.alice-carousel {
|
||||
&__wrapper {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__stage {
|
||||
display: flex;
|
||||
gap: 32px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&__stage-item {
|
||||
flex: 0 0 auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.slider-item {
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.slide-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.slider {
|
||||
.alice-carousel {
|
||||
&__stage {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
&__stage-item {
|
||||
padding: 0 5%;
|
||||
}
|
||||
}
|
||||
|
||||
.slider-item {
|
||||
height: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
.sliderNav {
|
||||
padding: 0 5%;
|
||||
gap: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.sliderNav {
|
||||
display: flex;
|
||||
gap: 32px;
|
||||
justify-content: flex-end;
|
||||
padding: 0 10%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.sliderButton {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-color: transparent;
|
||||
border: 2px solid black;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
&.prev {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
img {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user