Last active
May 19, 2020 15:50
-
-
Save sergeykonovalenko/a9792303675856a573eced3a41437afa to your computer and use it in GitHub Desktop.
Styling slick slider dots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.my-slider .slick-dots { | |
position: absolute; | |
bottom: -15px; | |
left: 50%; | |
z-index: 1; | |
display: flex; | |
flex-wrap: wrap; | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
transform: translate(-50%, 0); | |
} | |
.my-slider .slick-dots li { | |
padding: 5px; | |
} | |
.my-slider .slick-dots button { | |
display: block; | |
width: 13px; | |
height: 13px; | |
padding: 0; | |
font-size: 0; | |
line-height: 0; | |
border: none; | |
background-color: #fff; | |
border-radius: 50%; | |
outline: none; | |
cursor: pointer; | |
box-shadow: 1px 1px 3px rgba(0, 0, 0, .25); | |
transition: all .3s ease; | |
} | |
.my-slider .slick-dots .slick-active button { | |
background-color: $color-secondary; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment