Skip to content

Instantly share code, notes, and snippets.

@Robin-bob
Last active August 30, 2016 22:04
Show Gist options
  • Save Robin-bob/6593c57fb8f1ccd6e5fbd81618b2b048 to your computer and use it in GitHub Desktop.
Save Robin-bob/6593c57fb8f1ccd6e5fbd81618b2b048 to your computer and use it in GitHub Desktop.
slick arrow default styles
.slick-arrow {
outline: none;
background: none;
border: none;
position: absolute;
top: 50%;
transform: translate(0, -50%);
cursor: pointer;
z-index: 2;
&:hover, &:focus {
outline: none;
}
&.slick-prev {
left: 0;
}
&.slick-next {
right: 0;
}
}
.slick-dots {
display: block;
position: relative;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
margin: 0 10px;
width: 12px;
height: 12px;
cursor: pointer;
color: transparent;
border-radius: 50%;
box-shadow: 0 0 0 2px rgba(21,170,219,0);
transition: box-shadow .3s ease;
}
.slick-dots li button {
top: 0;
left: 0;
width: 100%;
height: 100%;
outline: none;
border: none;
border-radius: 50%;
background-color: #15aadb;
background-color: rgba(21,170,219,1);
text-indent: -999em;
cursor: pointer;
position: absolute;
transition: background-color .3s ease,-webkit-transform .3s ease;
transition: background-color .3s ease,transform .3s ease;
transition: background-color .3s ease,transform .3s ease,-webkit-transform .3s ease;
padding: 1px;
}
.slick-dots li.slick-active {
cursor: default;
box-shadow: 0 0 0 2px #15aadb;
}
.slick-dots li.slick-active button {
-webkit-transform: scale(.4);
transform: scale(.4);
background-color: #15aadb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment