Template_test / styles /dropdown.css
itramb's picture
Upload 57 files
50e8e86 verified
.dropdown-section__container {
border: 1px solid rgb(245, 245, 245);
border-radius: 15px;
padding: 50px;
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.dropdown__row {
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 10px;
}
.dropdown {
width: 100%;
position: relative;
flex: 1 1 30%;
min-width: 200px;
transition: flex 5.3s ease;
}
.dropdown__button {
width: 100%;
padding: 10px 15px;
background-color: #0b6efd;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
text-align: left;
transition: background-color 0.2s ease;
}
.dropdown__button:hover {
background-color: #0353c4;
}
.dropdown__content {
display: none;
top: 100%;
left: 0;
right: 0;
background-color: white;
z-index: 1000;
border-radius: 4px;
overflow: hidden;
margin-top: 4px;
animation: fadeIn 0.5s ease forwards;
}
.dropdown.open .dropdown__content {
display: block;
}
.dropdown__item {
white-space: normal;
word-wrap: break-word;
text-align: left;
padding: 10px 16px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 600px) {
.dropdown-section__container {
padding: 20px;
}
}