umami/components/Dropdown.module.css

49 lines
736 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 {
2020-08-02 06:20:52 +02:00
white-space: nowrap;
position: relative;
2020-08-01 06:56:25 +02:00
padding: 4px 32px 4px 16px;
2020-07-31 05:11:43 +02:00
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;
2020-08-01 06:56:25 +02:00
padding: 4px 16px;
2020-07-31 05:11:43 +02:00
cursor: pointer;
}
.option:hover {
2020-08-01 06:56:25 +02:00
background: #f5f5f5;
2020-07-31 05:11:43 +02:00
}
.caret {
position: absolute;
height: 8px;
width: 8px;
border-right: 2px solid #8e8e8e;
border-bottom: 2px solid #8e8e8e;
transform: rotate(45deg);
top: -4px;
bottom: 0;
2020-08-01 06:56:25 +02:00
right: 12px;
2020-07-31 05:11:43 +02:00
margin: auto;
}