feat: use swiper for post cover

This commit is contained in:
DIYgod
2023-07-19 17:24:48 +01:00
parent f7fdc1e3fc
commit 88c8c8d586
11 changed files with 132 additions and 41 deletions
+27
View File
@@ -529,3 +529,30 @@ textarea.input {
.right {
@apply flex justify-end;
}
.swiper-button {
@apply absolute top-1/2 -translate-y-1/2 bg-white rounded-full z-[1] w-6 h-6 flex items-center justify-center opacity-80;
}
.swiper .swiper-pagination-bullet {
@apply bg-zinc-100 opacity-50 w-[7px] h-[7px];
}
.swiper .swiper-pagination-bullet-active {
@apply opacity-100;
}
.swiper .swiper-pagination-bullets {
@apply leading-3;
}
.swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
@apply bg-accent;
transition-duration: 5000ms !important;
transition-timing-function: linear;
transform: translate3d(0px, 0px, 0px) scaleX(0) scaleY(1);
}
.swiper .swiper-pagination-progressbar.swiper-pagination-horizontal {
@apply h-[2px] bg-transparent;
}