mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 05:33:38 +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.
59 lines
1006 B
SCSS
59 lines
1006 B
SCSS
.latest-topic-list,
|
|
.top-topic-list {
|
|
@extend .topic-list-icons;
|
|
|
|
.table-heading {
|
|
padding: 12px 5px;
|
|
color: var(--primary-med-or-secondary-high);
|
|
}
|
|
|
|
.no-topics,
|
|
.more-topics {
|
|
margin-top: 1em;
|
|
}
|
|
}
|
|
|
|
.latest-topic-list-item {
|
|
padding: 1em;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.topic-poster {
|
|
position: relative;
|
|
width: 60px;
|
|
.avatar-flair {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 10px;
|
|
}
|
|
}
|
|
.main-link {
|
|
@extend .topic-list-main-link;
|
|
flex: 0 1 auto;
|
|
max-width: 65%;
|
|
font-size: $font-0;
|
|
.badge-wrapper {
|
|
max-width: 100%;
|
|
.badge-category-bg {
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.top-row {
|
|
margin-bottom: 0.1em;
|
|
font-size: $font-up-1;
|
|
}
|
|
}
|
|
.topic-stats {
|
|
flex: 1 0 0px;
|
|
text-align: right;
|
|
color: var(--primary-med-or-secondary-high);
|
|
}
|
|
|
|
.topic-last-activity a {
|
|
color: var(--primary-med-or-secondary-high);
|
|
}
|
|
}
|