mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 15:53:45 +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.
114 lines
2.0 KiB
SCSS
114 lines
2.0 KiB
SCSS
// Styles for /admin/backups
|
|
|
|
$rollback: #3d9970;
|
|
$rollback-dark: darken($rollback, 10%) !default;
|
|
$rollback-darker: darken($rollback, 20%) !default;
|
|
.btn-rollback {
|
|
color: var(--secondary);
|
|
background: $rollback;
|
|
.d-icon {
|
|
color: var(--secondary);
|
|
}
|
|
&:hover {
|
|
background: $rollback-dark;
|
|
.d-icon {
|
|
color: currentColor;
|
|
}
|
|
}
|
|
&:active {
|
|
@include linear-gradient($rollback-darker, $rollback-dark);
|
|
}
|
|
&[disabled] {
|
|
background: $rollback;
|
|
}
|
|
}
|
|
|
|
.admin-backups {
|
|
table {
|
|
@media screen and (min-width: 550px) {
|
|
td.backup-filename {
|
|
grid-column-start: 1;
|
|
grid-column-end: 6;
|
|
}
|
|
td.backup-size {
|
|
grid-column-end: -1;
|
|
text-align: right;
|
|
}
|
|
td.backup-controls {
|
|
margin-top: 0.25em;
|
|
grid-row: 2;
|
|
grid-column-start: 1;
|
|
grid-column-end: 5;
|
|
text-align: right;
|
|
.btn {
|
|
margin-top: 0.25em;
|
|
}
|
|
}
|
|
}
|
|
@include breakpoint(mobile-extra-large) {
|
|
td.backup-filename {
|
|
grid-column-start: 1;
|
|
grid-column-end: 3;
|
|
}
|
|
td.backup-size {
|
|
text-align: right;
|
|
}
|
|
td.backup-controls {
|
|
grid-column-start: 1;
|
|
grid-column-end: 4;
|
|
}
|
|
}
|
|
@include breakpoint(tablet) {
|
|
td.backup-controls {
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-backups-logs {
|
|
max-height: 65vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
button.ru {
|
|
position: relative;
|
|
min-width: 110px;
|
|
}
|
|
|
|
.ru-progress {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
background: rgba(0, 175, 0, 0.3);
|
|
}
|
|
|
|
.is-uploading:hover .ru-progress {
|
|
background: rgba(200, 0, 0, 0.3);
|
|
}
|
|
|
|
.start-backup-modal {
|
|
.btn {
|
|
margin: 10px 0 10px 5px;
|
|
}
|
|
.btn:first-of-type {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
.backup-options {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
.btn {
|
|
margin-right: 0.5em;
|
|
}
|
|
.backup-message {
|
|
margin-left: auto;
|
|
@include breakpoint(mobile-extra-large) {
|
|
margin: 1.25em 0 0;
|
|
}
|
|
}
|
|
}
|