Last active
November 21, 2021 11:08
-
-
Save MuratOrs/ef6bf400ff12f8f0270180a92c70089e to your computer and use it in GitHub Desktop.
Button_sass #sass
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
.button | |
display: inline-block | |
border: none | |
color: #fff | |
text-decoration: none | |
background-color: $accent | |
padding: 15px 45px | |
font-size: 13px | |
text-transform: uppercase | |
font-weight: 600 | |
letter-spacing: 3px | |
border-radius: 2px | |
text-align: center | |
position: relative | |
outline: none | |
transition: background-color .1s ease | |
cursor: pointer | |
&::after | |
transition: background-color .2s ease | |
position: absolute | |
content: '' | |
height: 4px | |
bottom: 0 | |
width: 100% | |
background-color: darken($accent, 50%) | |
opacity: .18 | |
border-bottom-left-radius: 2px | |
border-bottom-right-radius: 2px | |
left: 0 | |
&:focus, &:hover | |
text-decoration: none | |
color: #fff | |
&:hover | |
background-color: lighten($accent, 5%) | |
&::after | |
opacity: .22 | |
&:active | |
background-color: darken($accent, 5%) | |
&::after | |
opacity: .32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment