umami/components/Dropdown.module.css

47 lines
688 B
CSS
Raw Normal View History

2020-07-31 05:11:43 +02:00
.dropdown {
position: relative;
2020-08-01 05:37:29 +02:00
font-size: 14px;
2020-07-31 05:11:43 +02:00
min-width: 140px;
}
.value {
padding: 4px 24px 4px 8px;
border: 1px solid #b3b3b3;
border-radius: 4px;
cursor: pointer;
}
.menu {
position: absolute;
min-width: 100px;
top: 100%;
margin-top: 4px;
border: 1px solid #b3b3b3;
border-radius: 4px;
2020-07-31 07:40:16 +02:00
overflow: hidden;
2020-08-01 05:37:29 +02:00
z-index: 2;
2020-07-31 05:11:43 +02:00
}
.option {
background: #fff;
padding: 4px 8px;
cursor: pointer;
}
.option:hover {
background: #eaeaea;
}
.caret {
position: absolute;
height: 8px;
width: 8px;
border-right: 2px solid #8e8e8e;
border-bottom: 2px solid #8e8e8e;
transform: rotate(45deg);
top: -4px;
bottom: 0;
right: 8px;
margin: auto;
}