diff --git a/public/assets/css/general.css b/public/assets/css/general.css index 2f846ad6..13d576ad 100644 --- a/public/assets/css/general.css +++ b/public/assets/css/general.css @@ -174,6 +174,10 @@ input:-webkit-autofill { background-color: white; } +option { + font-family: monospace; +} + .select--no-arrow { -moz-appearance:none; -webkit-appearance: none; @@ -183,9 +187,8 @@ input:-webkit-autofill { .select--arrow { -moz-appearance:none; -webkit-appearance: none; - align-items: left; background: url('../img/down_triangle.png') no-repeat right; - + padding-right: 1em; } .input-text--primary, .select--primary, .textarea--primary { @@ -324,32 +327,41 @@ table { border-bottom: 2px solid #1e90ff; } -/* Publish Form */ +/* PUBLISH FORM */ + +.dropzone { + border: 2px dashed lightgrey; + text-align: center; +} + +.dropzone:hover { + border: 2px dashed #1e90ff; +} #publish-dropzone-wrapper, #publish-form-wrapper { height: 100%; } #publish-dropzone { - border: 2px dashed lightgrey; - height: calc(100% - 2px); + height: calc(100% - 4px); position: relative; } -#publish-dropzone:hover { - border: 2px dashed dodgerblue; +#asset-preview-holder { + position: relative; } -#publish-dropzone-instructions { +#publish-dropzone-instructions, #preview-dropzone-instructions { position: absolute; top: 40%; left: 50%; transform: translateX(-50%) translateY(-40%); } -.asset-preview { +#asset-preview { display: block; - width: 100%; + padding: 0.5rem; + width: calc(100% - 1rem); } /* Show page */ @@ -359,10 +371,6 @@ table { width: 100%; } -.copy-input { - -} - /* item lists */ .content-list-item { diff --git a/public/assets/js/publishFileFunctions.js b/public/assets/js/publishFileFunctions.js index d9462290..f4eba9dd 100644 --- a/public/assets/js/publishFileFunctions.js +++ b/public/assets/js/publishFileFunctions.js @@ -8,7 +8,7 @@ function cancelPublish () { // stage it so it will be ready when the publish button is clicked. function previewAndStageFile(selectedFile){ const publishForm = document.getElementById('publish-form-wrapper'); - const previewHolder = document.getElementById('asset-preview-holder'); + const assetPreview = document.getElementById('asset-preview-target'); const dropzoneWrapper = document.getElementById('publish-dropzone-wrapper'); const previewReader = new FileReader(); const nameInput = document.getElementById('claim-name-input'); @@ -26,14 +26,14 @@ function previewAndStageFile(selectedFile){ console.log('file type:', selectedFile.type) if (selectedFile.type !== 'video/mp4') { if (selectedFile.type === 'image/gif') { - previewHolder.innerHTML = `
Drag & drop image or video here
@@ -25,10 +25,24 @@Drag & drop image or video here
+OR
+ +