Add prefixes to dot

This commit is contained in:
Vadim
2021-01-27 19:40:10 +03:00
parent fca1335a99
commit a210cab1f1

View File

@@ -20,10 +20,10 @@
}
</script>
<div class="main-container">
<div class="carousel-dot__container">
<div
class="dot"
class:current="{active}"
class="carousel-dot__dot"
class:carousel-dot__dot_current={active}
style="
height: {$size}px;
width: {$size}px;
@@ -33,14 +33,14 @@
</div>
<style>
.main-container {
.carousel-dot__container {
display: flex;
align-items: center;
justify-content: center;
height: 16px;
width: 16px;
}
.dot {
.carousel-dot__dot {
background-color: #5d5d5d;
border-radius: 50%;
display: inline-block;
@@ -48,10 +48,10 @@
cursor: pointer;
transition: opacity 100ms ease;
}
.dot:hover {
.carousel-dot__dot:hover {
opacity: 0.9;
}
.current {
.carousel-dot__dot_current {
opacity: 0.7;
}
</style>