2020-03-31 15:13:16 +08:00
|
|
|
.widget-dropdown {
|
|
|
|
display: inline-flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
&.closed {
|
|
|
|
.widget-dropdown-body {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dropdown-body {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--secondary);
|
2020-03-31 15:13:16 +08:00
|
|
|
z-index: z("dropdown");
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2020-03-31 15:13:16 +08:00
|
|
|
max-height: 250px;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dropdown-item {
|
|
|
|
cursor: pointer;
|
2023-07-06 00:20:18 +08:00
|
|
|
padding: 0.5em 1em;
|
2020-03-31 15:13:16 +08:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2020-03-31 15:13:16 +08:00
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.separator {
|
|
|
|
padding: 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
2020-03-31 15:13:16 +08:00
|
|
|
margin: 0.25em 0;
|
2020-04-30 01:42:50 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
2020-04-30 01:42:50 +08:00
|
|
|
}
|
2020-03-31 15:13:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2023-07-06 00:20:18 +08:00
|
|
|
background: var(--d-hover);
|
2020-03-31 15:13:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dropdown-header {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|