From 37eabe155626b00afc71da6df8418fa087595551 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 19 Jul 2015 19:06:35 +0200 Subject: [PATCH] Improved post view on small layout - post notes no longer disappear - post image is larger - sidebar stacks into columns - things from sidebar are centered --- public_html/css/post.css | 18 +- public_html/templates/post.tpl | 352 +++++++++++++++++---------------- 2 files changed, 188 insertions(+), 182 deletions(-) diff --git a/public_html/css/post.css b/public_html/css/post.css index b44c3aa8..a7743940 100644 --- a/public_html/css/post.css +++ b/public_html/css/post.css @@ -22,12 +22,9 @@ line-height: 1.33em; } -#post-view-wrapper #sidebar h1 { - margin-top: 1.5em; -} - -#post-view-wrapper #sidebar h1:first-of-type { - margin-top: 0; +#post-view-wrapper #sidebar .box { + margin-bottom: 1.5em; + text-align: left; } @media all and (min-width: 62.5em) { @@ -59,10 +56,16 @@ #post-view-wrapper #sidebar { order: 2; margin-bottom: 1em; + text-align: center; + } + #post-view-wrapper #sidebar .box { + display: inline-block; + width: 15em; + vertical-align: top; } #post-view-wrapper #post-view { margin: 0 auto; - max-width: 100%; + width: 100%; order: 1; } } @@ -131,7 +134,6 @@ display: flex; justify-content: space-around; margin-bottom: 2em; - max-width: 30em; } #sidebar .essential li { display: block; diff --git a/public_html/templates/post.tpl b/public_html/templates/post.tpl index 5e233c17..004202bc 100644 --- a/public_html/templates/post.tpl +++ b/public_html/templates/post.tpl @@ -81,203 +81,207 @@ if (forceHttpInPermalinks > 0) { <% } %> -

Tags (<%= _.size(post.tags) %>)

- - -

Details

- -
- <% if (post.user.name) { %> - - <% } %> - - <%= post.user.name || 'Anonymous user' %> - - - <%= post.user.name || 'Anonymous user' %> - - - <% if (post.user.name) { %> - - <% } %> - -
- - - <%= util.formatRelativeTime(post.uploadTime) %> - + --><%= tag.name %><%= (tag.usages) %> + + + <% }) %> +
-