Created
March 5, 2023 23:12
-
-
Save wendeehsu/214ed6f669238ee82df974f8e47503b5 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 .dropbtn { | |
cursor: pointer; | |
color: inherit; | |
font-size: 1.125rem; | |
border: none; | |
outline: none; | |
padding: 14px 16px; | |
background-color: inherit; | |
font-family: inherit; | |
} | |
.navbar a:hover, | |
.dropdown:hover .dropbtn { | |
background-color: inherit; | |
} | |
.dropdown-content { | |
display: none; | |
position: absolute; | |
background-color: #333; | |
line-height: 1.4; | |
min-width: 160px; | |
border-radius: 4px; | |
transition: background-color .1s linear; | |
z-index: 1; | |
} | |
.dropdown-content a { | |
float: none; | |
color: white; | |
padding: 12px 16px; | |
text-decoration: none; | |
display: block; | |
text-align: left; | |
} | |
.show { | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment