Created
April 27, 2022 04:14
-
-
Save semiarthanoian/4d15c915e5adfd22ae3a32840f5fdad6 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 30px; | |
color: White; | |
border: none; | |
cursor: pointer; | |
} | |
.dropdown-btn.primary { | |
background: RoyalBlue; | |
} | |
.dropdown-btn.primary:hover { | |
background: DodgerBlue; | |
} | |
.dropdown-list { | |
position: absolute; | |
top: calc(100% + 3px); | |
display: none; | |
} | |
.dropdown-item { | |
display: block; | |
min-width: 245px; | |
max-width: 335px; | |
padding: 15px 25px; | |
color: White; | |
background: RoyalBlue; | |
border-bottom: 1px solid DodgerBlue; | |
text-decoration: none; | |
} | |
.dropdown-item:hover { | |
background: DodgerBlue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment