This commit is contained in:
Henrique Dias 2017-01-02 19:55:21 +00:00
parent 6b9d5bca43
commit 8c76980725
2 changed files with 16 additions and 4 deletions

View File

@ -23,6 +23,11 @@ img {
max-width: 100%; max-width: 100%;
} }
audio,
video {
width: 100%;
}
pre { pre {
padding: 1em; padding: 1em;
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
@ -721,12 +726,19 @@ header .actions {
vertical-align: bottom; vertical-align: bottom;
} }
#listing .message { .message {
text-align: center; text-align: center;
font-size: 3em; font-size: 3em;
margin: 1em 0; margin: 1em auto;
display: block !important; display: block !important;
width: 95%; width: 95%;
color: rgba(0, 0, 0, 0.2);
font-weight: 500;
}
.message i {
font-size: inherit;
vertical-align: middle;
} }

View File

@ -2,7 +2,7 @@
{{ with .Data}} {{ with .Data}}
<main class="container"> <main class="container">
{{ if eq .Type "image" }} {{ if eq .Type "image" }}
<img src="{{ .URL }}?raw=true"> <center><img src="{{ .URL }}?raw=true"></center>
{{ else if eq .Type "audio" }} {{ else if eq .Type "audio" }}
<audio src="{{ .URL }}?raw=true" controls></audio> <audio src="{{ .URL }}?raw=true" controls></audio>
{{ else if eq .Type "video" }} {{ else if eq .Type "video" }}
@ -12,7 +12,7 @@
and watch it with your favorite video player! and watch it with your favorite video player!
</video> </video>
{{ else if eq .Type "blob" }} {{ else if eq .Type "blob" }}
<a href="?download=true">Download</a> <a href="?download=true"><h2 class="message">Download <i class="material-icons">file_download</i></h2></a>
{{ else}} {{ else}}
<pre>{{ .StringifyContent }}</pre> <pre>{{ .StringifyContent }}</pre>
{{ end }} {{ end }}