minor style & script fixes

merge-requests/208/head
fatchan 5 years ago
parent 5fb7178aa9
commit 858f6290fb
  1. 27
      gulp/res/css/themes/pink.css
  2. 3
      gulp/res/js/forms.js

@ -30,7 +30,7 @@
--greentext-color:#789922;
--pinktext-color:#FF00EF;
}
.post-container:not(.op) {
.post-container:not(.op), .stickynav, .pages, .toggle-summary, .catalog-tile, #livetext, #threadstats,#float, .table-container {
box-shadow: 3px 3px 3px var(--darken);
}
hr {
@ -39,17 +39,22 @@ hr {
border-style: dashed none none;
border-color: var(--post-outline-color);
}
.post-container.highlighted {
.anchor:target + .post-container,
.post-container.highlighted,
.anchor:target + table tbody tr th,
.anchor:target + table {
border: 1px dashed;
}
#float {
box-shadow: 3px 3px 3px var(--darken);
}
@media only screen and (max-width:600px) {
.post-info,
anchor:target+.post-container .post-info,
post-container.highlighted .post-info {
border-bottom:none;
@media only screen and (max-width: 600px) {
.post-info{
background: none;
border-bottom: none;
}
.anchor:target + .post-container .post-info, .post-container.highlighted .post-info {
border-bottom: none;
}
}
}

@ -44,6 +44,7 @@ class formHandler {
this.files = [];
if (this.fileInput) {
this.fileLabel = this.fileInput.previousSibling;
this.multipleFiles = this.fileLabel.parentNode.previousSibling.firstChild.textContent.endsWith('s');
this.fileLabelText = this.fileLabel.childNodes[0];
this.fileLabel.addEventListener('dragover', e => this.fileLabelDrag(e));
this.fileLabel.addEventListener('drop', e => this.fileLabelDrop(e));
@ -184,7 +185,7 @@ class formHandler {
return;
}
if (this.files && this.files.length === 0) {
this.fileLabelText.nodeValue = 'Upload/Drop/Paste file(s)';
this.fileLabelText.nodeValue = `Select/Drop/Paste file${this.multipleFiles ? 's' : ''}`;
} else {
this.fileLabelText.nodeValue = `${this.files.length} file${this.files.length > 1 ? 's' : ''} selected`;
}

Loading…
Cancel
Save