odin-simple-dropdown/style.css

66 lines
1.2 KiB
CSS

.menu {
position: relative;
width: max-content;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.btn-dropdown {
background-color: #6b6;
color: #fff;
font-size: 1.4rem;
padding: 12px;
border-radius: 10px;
cursor: pointer;
border: 1px solid #595;
outline: none;
transition: 0.08s background-color ease-in-out;
}
.btn-dropdown:hover {
background-color: #7c7;
}
.btn-dropdown:active {
background-color: #7b7;
}
.menu-dropdown {
position: absolute;
border: 1px solid #ccc;
color: #666;
left: 0;
font-size: 1.2rem;
min-width: 90%;
text-align: left;
top: 100%;
box-sizing: border-box;
padding: 4px;
border-radius: 10px;
transition: opacity 0.2s ease-in-out;
z-index: 10;
background-color: #fff;
}
.menu-dropdown ul {
display: flex;
flex-direction: column;
gap: 2px;
list-style: none;
margin: 0;
padding: 0;
}
.menu-dropdown li {
cursor: pointer;
transition: 0.1s color ease-in-out;
}
.menu-dropdown li:hover {
color: #444;
}
.hidden {
transition: all 0.2s ease-in-out;
opacity: 0;
z-index: -10;
}