From 8196274c0e49c294f5910c0d5a46dea420c7fdc2 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 7 Nov 2015 10:37:18 -0500 Subject: [PATCH] for science :-DDD --- contrib/static/site.css | 58 +++++++++++++++++--- contrib/templates/default/board.mustache | 1 + contrib/templates/default/post.mustache | 66 ++++++++--------------- contrib/templates/default/thread.mustache | 1 + 4 files changed, 75 insertions(+), 51 deletions(-) diff --git a/contrib/static/site.css b/contrib/static/site.css index 6836034..b2a7998 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -1,9 +1,3 @@ -.thread { - margin-bottom: 1em; - display: inline-block; - word-wrap: break-word; - width: 100%; -} .frontend , .subject { color: #928BFF; @@ -252,6 +246,54 @@ html { background: grey; } -.history_num { - text-align: right; +figure { + float: left; + margin: 1ex; +} +figure img { + max-width:256px; + max-height:128px; + max-width:100%; +} +fieldset { + overflow: auto; + max-width: 120ex; +} +legend { + background-color: lightgray; +} + +.thread { + float: left; + width: 66%; +} +.replybar { + float: left; + position: fixed; + top: 2ex; + right: 0; + width: 34% + } +@media (max-width: 100ex) { + .replybar, .thread { + width: 100%; + position: static; + } +} + +.hide-reply:checked ~ div { + width: 100%; + position: static; +} + +textarea#reply-text { + width: 100%; + resize: vertical; +} + +.hide-reply { + float: right; + position: fixed; + top: 0; + right: 0; } \ No newline at end of file diff --git a/contrib/templates/default/board.mustache b/contrib/templates/default/board.mustache index e41c478..b97767d 100644 --- a/contrib/templates/default/board.mustache +++ b/contrib/templates/default/board.mustache @@ -14,6 +14,7 @@ + diff --git a/contrib/templates/default/post.mustache b/contrib/templates/default/post.mustache index 91850bf..6701463 100644 --- a/contrib/templates/default/post.mustache +++ b/contrib/templates/default/post.mustache @@ -1,49 +1,29 @@ -
-

-

+ + {{#IsI2P}} - + {{/IsI2P}} {{#IsTor}} - + {{/IsTor}} {{#IsClearnet}} - + {{/IsClearnet}} - - - {{Subject}} - - - {{#Sage}} - - {{Name}} - - {{/Sage}} - {{^Sage}} - {{Name}} - {{/Sage}} - - - - No. {{ShortHash}} - [reply] - {{{Pubkey}}} -

-
- {{#Attachments}} -
-

- File: {{Filename}} -

- - {{Filename}} - -
- {{/Attachments}} -
-
{{{RenderBody}}}
-
\ No newline at end of file + + {{Subject}} {{Name}} {{Date}} + No. {{ShortHash}} + [reply] {{{Pubkey}}}
+ + + {{#Attachments}} +
+
+ {{Filename}} +
+ {{Filename}} +
+ {{/Attachments}} + diff --git a/contrib/templates/default/thread.mustache b/contrib/templates/default/thread.mustache index 03baa94..d09522d 100644 --- a/contrib/templates/default/thread.mustache +++ b/contrib/templates/default/thread.mustache @@ -14,6 +14,7 @@ +