Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

style improvements

  • Loading branch information...
commit 027dc4d367ca7a588147a16b813916cb283bba6c 1 parent 1f96192
@astro astro authored
View
BIN  public/application.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/audio.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/document.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
33 public/style.css
@@ -31,6 +31,9 @@ h1 {
margin: 0.5em;
margin-bottom: 2em;
}
+#up form {
+ text-align: center;
+}
p.hint {
font-size: 70%;
font-style: oblique;
@@ -41,10 +44,39 @@ p.hint {
margin: 1em;
padding: 0;
}
+#down li a:before {
+ content: url(/document.png);
+ margin: 0;
+ padding: 0 2px;
+}
+#down li a.audio:before {
+ content: url(/audio.png);
+}
+#down li a.image:before {
+ content: url(/image.png);
+}
+#down li a.text:before {
+ content: url(/text.png);
+}
+#down li a.video:before {
+ content: url(/video.png);
+}
+#down li a.application:before {
+ content: url(/application.png);
+}
a {
color: blue;
+ text-decoration: none;
+}
+a:hover {
text-decoration: underline;
}
+a:active {
+ color: black;
+}
+a:visited {
+ color: #555;
+}
.size {
margin-left: 1em;
color: #888;
@@ -63,3 +95,4 @@ a {
color: #aaa;
font-size: 75%;
}
+
View
BIN  public/text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/video.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3  template.js
@@ -68,7 +68,8 @@ module.exports = {
downloadList: function(files) {
return "<ul id='down'>" +
files.map(function(file) {
- return "<li><a href='/file/" + file.id + "/" + escape(encodeURIComponent(file.name)) + "'>" + escape(file.name) + "</a> <span class='size'>" + humanSize(file.size) + "B</span><span class='stats'><b>" + file.downloads + "×</b> seit " + formatDate(file.date) + "</span></li>";
+ var cssClass = file.type.split('/')[0];
+ return "<li><a href='/file/" + file.id + "/" + escape(encodeURIComponent(file.name)) + "' type='" + escape(file.type) + "' class='" + escape(cssClass) + "'>" + escape(file.name) + "</a> <span class='size'>" + humanSize(file.size) + "B</span><span class='stats'><b>" + file.downloads + "×</b> seit " + formatDate(file.date) + "</span></li>";
}).join('') +
"</ul>";
},
Please sign in to comment.
Something went wrong with that request. Please try again.