Add prefixes to dots
This commit is contained in:
@@ -19,9 +19,9 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="carousel-dots__container">
|
||||||
{#each Array(pagesCount) as _, pageIndex (pageIndex)}
|
{#each Array(pagesCount) as _, pageIndex (pageIndex)}
|
||||||
<div class="dot-container">
|
<div class="carousel-dots__dot-container">
|
||||||
<Dot
|
<Dot
|
||||||
active={currentPageIndex === pageIndex}
|
active={currentPageIndex === pageIndex}
|
||||||
on:click={() => handleDotClick(pageIndex)}
|
on:click={() => handleDotClick(pageIndex)}
|
||||||
@@ -34,11 +34,11 @@
|
|||||||
:root {
|
:root {
|
||||||
--dot-size: 10px;
|
--dot-size: 10px;
|
||||||
}
|
}
|
||||||
.main-container {
|
.carousel-dots__container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.dot-container {
|
.carousel-dots__dot-container {
|
||||||
height: calc(var(--dot-size) + 10px);
|
height: calc(var(--dot-size) + 10px);
|
||||||
width: calc(var(--dot-size) + 10x);
|
width: calc(var(--dot-size) + 10x);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user