diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2013-08-03 14:59:03 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2013-08-03 14:59:03 +0200 |
commit | de90f1583f2ca98c9f83f5a1eaf6072dcf5cd09d (patch) | |
tree | 4f682a135f78d24de70c8d233783802d64dab774 | |
parent | 3a52886c147323d227fee78874e6d85eedf43bd4 (diff) |
Added some minor adjustments to look better on mobile browsers.
-rw-r--r-- | db.py | 3 | ||||
-rw-r--r-- | static/style.css | 1 | ||||
-rw-r--r-- | templates/base.tmpl | 1 |
3 files changed, 4 insertions, 1 deletions
@@ -56,7 +56,8 @@ class File(Base): def html(self): return u'<a href="{root}f/{hash}/{filename}">{filename}</a> ' \ - '<sup><a href="{root}f/{hash}">1</a> <a href="{root}f/{hash}{ext}">2</a> <a href="{root}d/{hash}">del</a></sup> ({size}) on {date}'.format( + '<sup><a href="{root}f/{hash}">1</a> <a href="{root}f/{hash}{ext}">2</a> <a href="{root}d/{hash}">del</a></sup> ' \ + '<span class="file-info">({size}) on {date}'.format( root = settings.virtual_root, hash = self.hash, filename = self.filename, ext = os.path.splitext(self.filename)[1], size = self.pretty_size(self.get_size()), date = self.date.strftime('%Y-%m-%d %H:%M:%S UTC')) diff --git a/static/style.css b/static/style.css index 0e2002e..e2ff80f 100644 --- a/static/style.css +++ b/static/style.css @@ -12,6 +12,7 @@ div#page-menu a { color: #ccc; text-decoration: none; margin: 0 .5em 0 .5em; } ul { list-style-type: none; } li { margin-left: 1em; } +.file-info { display: inline-block; } .image-list .image { display: inline-block; vertical-align: top; width: 128px; margin: .5em; } .image-list .image img { opacity: 1; } diff --git a/templates/base.tmpl b/templates/base.tmpl index d9d9ab1..fe9120b 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -5,6 +5,7 @@ <head> <title>$title</title> <link rel="StyleSheet" href="${root}s/style.css" type="text/css" /> + <meta name="viewport" content="initial-scale=1.0, width=device-width" /> #block head #end block </head> |