This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/assets/less/yuuno/bem/dropdown.less
2016-11-14 00:29:31 +01:00

75 lines
1.5 KiB
Text

.dropdown {
display: inline-block;
background: fade(#0c0c0c, 70%);
color: #fff;
min-width: 200px;
border: 2px solid #9475B2;
font-family: @cute-font;
text-align: left;
z-index: 999;
margin: 0 2px;
transition: background .5s;
&__option {
padding: 0 1px 0 4px;
display: none;
color: #FFF;
text-decoration: none !important;
clear: both;
transition: background .2s;
&:hover {
background: fade(#151515, 50%);
}
&:active {
background: fade(#151515, 70%);
color: inherit;
}
&--selected {
display: inline-block;
}
}
&__title {
display: inline-block;
padding-left: 4px;
}
&:hover {
background: fade(#151515, 80%);
.dropdown__option {
display: block;
float: none;
}
.dropdown__title {
display: none;
}
}
@media (max-width: 1064px) {
float: none !important;
margin-bottom: 5px;
text-align: center;
&__title,
&__option {
display: block !important;
padding: 3px 6px;
float: none !important;
}
&__title {
border-bottom: 2px solid #9475B2;
}
&__option {
&:not(:last-child) {
border-bottom: 2px solid #9475B2;
}
}
}
}