discourse/app/assets/stylesheets/common/admin/backups.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

114 lines
2.0 KiB
SCSS
Raw Normal View History

2018-07-03 11:14:53 +08:00
// Styles for /admin/backups
$rollback: #3d9970;
$rollback-dark: darken($rollback, 10%) !default;
$rollback-darker: darken($rollback, 20%) !default;
.btn-rollback {
color: var(--secondary);
2018-07-03 11:14:53 +08:00
background: $rollback;
2019-02-05 01:46:12 +08:00
.d-icon {
color: var(--secondary);
2019-02-05 01:46:12 +08:00
}
2018-07-03 11:14:53 +08:00
&:hover {
background: $rollback-dark;
2019-02-05 01:46:12 +08:00
.d-icon {
color: currentColor;
}
2018-07-03 11:14:53 +08:00
}
&: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;
}
}
}
2019-07-11 21:57:53 +08:00
@include breakpoint(mobile-extra-large) {
2018-07-03 11:14:53 +08:00
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;
}
}
2018-07-13 04:38:51 +08:00
@include breakpoint(tablet) {
2018-07-03 11:14:53 +08:00
td.backup-controls {
text-align: left;
}
}
}
}
.admin-backups-logs {
max-height: 65vh;
2018-07-03 11:14:53 +08:00
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;
2019-11-27 05:04:40 +08:00
.btn {
margin-right: 0.5em;
}
.backup-message {
margin-left: auto;
@include breakpoint(mobile-extra-large) {
margin: 1.25em 0 0;
}
}
}