Files
talk/client/coral-ui/components/Dropdown.css
T
2017-10-13 23:47:53 +07:00

63 lines
1.1 KiB
CSS

.dropdown {
position: relative;
width: 150px;
height: 36px;
background: #2c2c2c;
box-sizing: border-box;
color: white;
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
line-height: 1.4;
font-size: 13px;
}
.toggle {
padding: 10px 15px;
cursor: pointer;
outline: none;
&:focus {
background: #888;
}
}
.toggleOpen {
background: #888;
}
.label {
text-transform: capitalize;
}
.list {
position: absolute;
top: 30px;
left: 10px;
color: #2c2c2c;
border-radius: 2px;
background: white;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
width: 100%;
list-style: none;
padding: 0;
margin: 0;
transform: scale(0);
transition: transform .1s cubic-bezier(.4,0,.2,1),opacity .1s cubic-bezier(.4,0,.2,1),-webkit-transform .1s cubic-bezier(.4,0,.2,1);
transform-origin: 0 0;
}
.listActive {
opacity: 1;
transform: scale(1);
z-index: 999;
}
.arrow {
position: absolute;
right: 15px;
font-size: 1.2rem;
vertical-align: middle;
top: 13px;
}