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

76 lines
1.5 KiB
Text
Raw Normal View History

2016-11-08 19:56:37 +00:00
.dropdown {
display: inline-block;
background: fade(#0c0c0c, 70%);
color: #fff;
min-width: 200px;
border: 2px solid #9475B2;
font-family: "Open Sans", sans-serif;
text-align: left;
z-index: 999;
margin: 0 2px;
transition: background .5s;
&__option {
padding: 0 1px 0 4px;
display: none;
color: #FFF;
2016-11-09 18:32:23 +00:00
text-decoration: none !important;
2016-11-08 19:56:37 +00:00
clear: both;
transition: background .2s;
&:hover {
background: fade(#151515, 50%);
}
&:active {
background: fade(#151515, 70%);
2016-11-09 18:32:23 +00:00
color: inherit;
2016-11-08 19:56:37 +00:00
}
&--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;
}
}
2016-11-09 18:32:23 +00:00
@media (max-width: 1064px) {
2016-11-08 19:56:37 +00:00
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;
}
}
}
}