Last active
April 26, 2022 06:35
-
-
Save semiarthanoian/0324240760d0bab49907f37566ef4ad5 to your computer and use it in GitHub Desktop.
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
.dropdown { | |
font-family: Arial, sans-serif; | |
font-size: 16px; | |
display: inline-block; | |
position: relative; | |
} | |
.dropdown-btn { | |
font-size: 14px; | |
font-weight: bold; | |
letter-spacing: 1px; | |
padding: 15px 31px; | |
color: White; | |
border: none; | |
cursor: pointer; | |
} | |
.dropdown-btn.primary { | |
background: RoyalBlue; | |
} | |
.dropdown-btn.primary:hover { | |
background: DodgerBlue; | |
} | |
.dropdown-btn.secondary { | |
background: DarkGray; | |
} | |
.dropdown-btn.secondary:hover { | |
background: LightGray; | |
} | |
.dropdown-list { | |
position: absolute; | |
top: calc(100% + 4px); | |
overflow: hidden; | |
transition: max-height 0.5s; | |
} | |
.dropdown-list.shown { | |
max-height: 390px; | |
} | |
.dropdown-list.hidden { | |
max-height: 0; | |
} | |
.dropdown-list > a { | |
display: block; | |
width: 259px; | |
padding: 15px 25px; | |
color: White; | |
background: RoyalBlue; | |
border-bottom: 1px solid DodgerBlue; | |
text-decoration: none; | |
} | |
.dropdown-list > a:hover { | |
background: DodgerBlue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment