mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 03:05:25 +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.
41 lines
722 B
SCSS
41 lines
722 B
SCSS
.tap-tile-grid {
|
|
justify-content: space-between;
|
|
margin: 0.5em 0 1em 0;
|
|
|
|
.tap-tile {
|
|
color: var(--primary-high);
|
|
padding: 0.75em 0.25em;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
cursor: pointer;
|
|
|
|
&:first-child {
|
|
border-top: 1px solid var(--primary-low);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--tertiary-low);
|
|
}
|
|
|
|
&.active {
|
|
background-color: var(--highlight-medium);
|
|
}
|
|
|
|
.d-icon {
|
|
color: var(--primary-high);
|
|
margin: 0 0.5em 0 0;
|
|
}
|
|
|
|
.tap-tile-title {
|
|
color: var(--primary);
|
|
margin-right: auto;
|
|
}
|
|
|
|
.tap-tile-date {
|
|
margin-left: 1em;
|
|
}
|
|
}
|
|
}
|