Skip to content

Commit

Permalink
Better dark mode support for upload dropzone
Browse files Browse the repository at this point in the history
Also minor layout/CSS tweaks. Thanks, Pat64 and phiw13.
  • Loading branch information
Bloke committed May 13, 2020
1 parent 2f4cfec commit 2eb03ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions com_article_image.php
Expand Up @@ -169,7 +169,7 @@ public function head()
#article-file-reset {visibility:hidden}
#article-file-container p, #article-file-select p {display:inline-block}
#article-file-input {height: 100%; width: 100%; z-index: 50; position: absolute; opacity: 0}
#article-file-drop>div.txp-form-field-value {position: relative; background: white; outline: 1px solid #e3e3e3; min-height: 5ex}
#article-file-drop>div.txp-form-field-value {position: relative; outline: 1px solid #e3e3e3; min-height: 5ex; overflow:hidden; text-align:center}
#main_content {position:sticky;top:0}
.hidden {display:none}
</style>
Expand Down Expand Up @@ -491,11 +491,11 @@ public function upload($evt, $stp, $data, $rs)
'article-file-input',
'<button id="article-file-reset" class="destroy"><span class="ui-icon ui-icon-close">'.gTxt('delete').'</span></button>'.n.
'<input id="article-file-input" type="file" name="article_file[]" multiple="multiple" accept="image/*" onchange="comArticleImagePreview(this)" />'
.'<p>'.gTxt('com_article_image_dropzone').'</p>'.n
.'<p class="secondary-text">'.gTxt('com_article_image_dropzone').'</p>'.n
.'<div id="article-file-preview"></div>'.n, gTxt('upload'),
array('', 'instructions_article_image'),
array('id' => 'article-file-drop', 'class' => 'txp-form-field article-image')
).n.'<hr />'.n.$select_images;
).n.$select_images;
}

/**
Expand Down

0 comments on commit 2eb03ca

Please sign in to comment.