mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 14:58:43 +08:00
53 lines
892 B
SCSS
53 lines
892 B
SCSS
.widget-dropdown {
|
|
display: inline-flex;
|
|
box-sizing: border-box;
|
|
|
|
&.closed {
|
|
.widget-dropdown-body {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.widget-dropdown-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--secondary);
|
|
z-index: z("dropdown");
|
|
border: 1px solid var(--primary-low);
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.widget-dropdown-item {
|
|
cursor: pointer;
|
|
padding: 0.5em 1em;
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
margin-right: 0.25em;
|
|
}
|
|
|
|
&.separator {
|
|
padding: 0;
|
|
background: var(--primary-low);
|
|
margin: 0.25em 0;
|
|
|
|
&:hover {
|
|
background: var(--primary-low);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--d-hover);
|
|
}
|
|
}
|
|
|
|
.widget-dropdown-header {
|
|
cursor: pointer;
|
|
}
|
|
}
|