mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 03:40:14 +00:00
show error color when link extraction failes
This commit is contained in:
parent
3b07355f0b
commit
4580ea6f87
@ -1,6 +1,7 @@
|
||||
:root {
|
||||
--main-bg: #00202f;
|
||||
--highlight-bg: #00293b;
|
||||
--highlight-error: #990202;
|
||||
--highlight-bg-transparent: #00293baf;
|
||||
--main-font: #eeeeee;
|
||||
--accent-font-dark: #259485;
|
||||
|
@ -1,19 +1,10 @@
|
||||
:root {
|
||||
--main-bg: #eeeeee;
|
||||
--highlight-bg: #d9e0d9;
|
||||
--highlight-error: #f79c9c;
|
||||
--highlight-bg-transparent: #00293baf;
|
||||
--main-font: #00202f;
|
||||
--accent-font-dark: #259485;
|
||||
--accent-font-light: #35b399;
|
||||
--img-filter: invert(50%) sepia(9%) saturate(2940%) hue-rotate(122deg) brightness(94%) contrast(90%);
|
||||
}
|
||||
|
||||
/* :root {
|
||||
--main-bg: #00202f;
|
||||
--highlight-bg: #00293b;
|
||||
--highlight-bg-transparent: #00293baf;
|
||||
--main-font: #eeeeee;
|
||||
--accent-font-dark: #259485;
|
||||
--accent-font-light: #97d4c8;
|
||||
--img-filter: invert(50%) sepia(9%) saturate(2940%) hue-rotate(122deg) brightness(94%) contrast(90%);
|
||||
} */
|
||||
|
@ -478,6 +478,13 @@ button:hover {
|
||||
padding: 30px 0 15px 0;
|
||||
}
|
||||
|
||||
.download-progress.info {
|
||||
background-color: var(--highlight-bg);
|
||||
}
|
||||
|
||||
.download-progress.error {
|
||||
background-color: var(--highlight-error);
|
||||
}
|
||||
|
||||
/* settings */
|
||||
.settings-group {
|
||||
|
@ -54,6 +54,7 @@ function buildDownloadMessage(dlProgress) {
|
||||
var dlStatus = dlProgress['status'];
|
||||
var dlTitle = dlProgress['title'];
|
||||
var dlMessage = dlProgress['message'];
|
||||
var dlLevel = dlProgress['level'];
|
||||
// animate
|
||||
if (dlStatus === 'rescan') {
|
||||
animate('rescan-icon', 'rotate-img');
|
||||
@ -64,6 +65,7 @@ function buildDownloadMessage(dlProgress) {
|
||||
var box = document.getElementById('downloadMessage');
|
||||
var message = document.createElement('div');
|
||||
message.classList.add('download-progress');
|
||||
message.classList.add(dlLevel);
|
||||
message.id = 'progress';
|
||||
message.setAttribute('data', dlStatus);
|
||||
var title = document.createElement('h3');
|
||||
|
Loading…
Reference in New Issue
Block a user