Skip to content

Instantly share code, notes, and snippets.

@sergeykonovalenko
Last active May 19, 2020 15:50
Show Gist options
  • Save sergeykonovalenko/a9792303675856a573eced3a41437afa to your computer and use it in GitHub Desktop.
Save sergeykonovalenko/a9792303675856a573eced3a41437afa to your computer and use it in GitHub Desktop.
Styling slick slider dots
.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