diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2015-11-18 01:05:13 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2015-11-18 01:29:34 +0100 |
commit | c648cfb593f345f0a1d07f43c34905643fc073e1 (patch) | |
tree | 74cebcfcc060015343c997b888b1b23c10cb2476 /static | |
parent | cacf2ee2cc9f291e5759b854126d25216ee01cd4 (diff) | |
download | git-arr-fork-c648cfb593f345f0a1d07f43c34905643fc073e1.zip |
views: Improve display on mobile browsers
This patch moves the pages to HTML5, and adds some simple meta tags and CSS media
constraints so things render better on mobile browsers, while leaving the
desktop unaffected.
It's still not ideal, though.
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'static')
-rw-r--r-- | static/git-arr.css | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/static/git-arr.css b/static/git-arr.css index 4e0c7ad..2a0f7c1 100644 --- a/static/git-arr.css +++ b/static/git-arr.css @@ -69,8 +69,11 @@ table.commits td.date { font-style: italic; color: gray; } -table.commits td.subject { - min-width: 32em; + +@media (min-width: 600px) { + table.commits td.subject { + min-width: 32em; + } } table.commits td.author { color: gray; @@ -146,8 +149,10 @@ div.paginate span.inactive { } /* Directory listing. */ -table.ls td.name { - min-width: 20em; +@media (min-width: 600px) { + table.ls td.name { + min-width: 20em; + } } table.ls tr.blob td.size { color: gray; |