client/posts: improve file dropper appearance
This commit is contained in:
parent
1e58899b03
commit
d00d282bff
|
@ -245,11 +245,8 @@ input::-moz-focus-inner
|
||||||
* File dropper
|
* File dropper
|
||||||
*/
|
*/
|
||||||
.file-dropper-holder
|
.file-dropper-holder
|
||||||
display: flex
|
|
||||||
flex-wrap: wrap
|
|
||||||
.file-dropper
|
.file-dropper
|
||||||
display: block
|
display: block
|
||||||
width: 100%
|
|
||||||
background: $window-color
|
background: $window-color
|
||||||
border: 3px dashed #eee
|
border: 3px dashed #eee
|
||||||
padding: 0.3em 0.5em
|
padding: 0.3em 0.5em
|
||||||
|
@ -258,14 +255,16 @@ input::-moz-focus-inner
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
word-wrap: break-word
|
word-wrap: break-word
|
||||||
input
|
.url-holder
|
||||||
|
display: flex
|
||||||
margin-top: 0.5em
|
margin-top: 0.5em
|
||||||
margin-right: 0.5em
|
input, button
|
||||||
width: auto
|
min-width: 0 /* firefox being sassy */
|
||||||
|
width: auto !important /* don't inherit anything weird */
|
||||||
|
input
|
||||||
flex: 1
|
flex: 1
|
||||||
button
|
button
|
||||||
margin-top: 0.5em
|
margin-left: 0.5em
|
||||||
width: 8em
|
|
||||||
|
|
||||||
input[type=file]:disabled+.file-dropper
|
input[type=file]:disabled+.file-dropper
|
||||||
cursor: default
|
cursor: default
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
label
|
label:not(.file-dropper)
|
||||||
margin-bottom: 0.3em
|
margin-bottom: 0.3em
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,13 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
</label>
|
</label>
|
||||||
<% if (ctx.allowUrls) { %>
|
<% if (ctx.allowUrls) { %>
|
||||||
|
<div class='url-holder'>
|
||||||
<input type='text' name='url' placeholder='Alternatively, paste an URL here.'/>
|
<input type='text' name='url' placeholder='Alternatively, paste an URL here.'/>
|
||||||
<% if (ctx.lock) { %>
|
<% if (ctx.lock) { %>
|
||||||
<button>Confirm</button>
|
<button>Confirm</button>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<button>Add URL</button>
|
<button>Add URL</button>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue