fix colors

This commit is contained in:
2020-03-10 18:04:30 +01:00
parent d8df6b5863
commit 2c81b6dda9
6 changed files with 12 additions and 14 deletions

View File

@@ -28,14 +28,14 @@ UploadProgressBar.prototype.onProgress = function(progress){
this.uploadDiv.innerText = "Uploading... " + Math.round(progress*1000)/10 + "%\n" + this.name
this.uploadDiv.style.background = 'linear-gradient('
+'to right, '
+'var(--input_color_dark) 0%, '
+'var(--layer_3_color) 0%, '
+'var(--highlight_color) '+ ((progress*100)) +'%, '
+'var(--input_color_dark) '+ ((progress*100)+1) +'%)'
+'var(--layer_3_color) '+ ((progress*100)+1) +'%)'
}
UploadProgressBar.prototype.onFinished = function(id){
console.log("Upload finished: "+this.file.name+" "+id)
this.uploadDiv.style.background = 'var(--input_color_dark)'
this.uploadDiv.style.background = 'var(--layer_3_color)'
this.uploadDiv.href = '/u/'+id
this.uploadDiv.target= "_blank"
@@ -44,7 +44,7 @@ UploadProgressBar.prototype.onFinished = function(id){
fileImg.alt = this.file.name
let linkSpan = document.createElement("span")
linkSpan.style.color = "var(--highlight_color)"
linkSpan.classList = "file_button_title"
linkSpan.innerText = domainURL()+"/u/"+id
this.uploadDiv.innerHTML = "" // Remove uploading progress

View File

@@ -338,7 +338,7 @@ pre{
overflow: hidden;
border-radius: 2px;
box-shadow: 2px 2px 8px -3px var(--shadow_color);
background-color: var(--input_color_dark);
background-color: var(--layer_3_color);
color: #bfbfbf; /* Fallback */
color: var(--text_color);
word-break: break-all;
@@ -355,8 +355,6 @@ pre{
.file_button_selected {
box-shadow: 0px 0px 3px 3px var(--highlight_color);
text-decoration: none;
color: #bfbfbf; /* Fallback */
color: var(--text_color);
}
.file_button > img{
max-height: 100%;