mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 13:53:48 +08:00
c937afc75e
A first step to adding automatic dark mode color scheme switching. Adds a new SCSS file at `color_definitions.scss` that serves to output all SCSS color variables as CSS custom properties. And replaces all SCSS color variables with the new CSS custom properties throughout the stylesheets. This is an alpha feature at this point, can only be enabled via console using the `default_dark_mode_color_scheme_id` site setting.
54 lines
915 B
SCSS
54 lines
915 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;
|
|
padding: 0.25em;
|
|
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.25em;
|
|
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(--tertiary-low);
|
|
}
|
|
}
|
|
|
|
.widget-dropdown-header {
|
|
cursor: pointer;
|
|
}
|
|
}
|