diff --git a/assets/css/elements.css b/assets/css/elements.css index 41966d2..98f416c 100644 --- a/assets/css/elements.css +++ b/assets/css/elements.css @@ -33,7 +33,9 @@ body { /* Spooky time! */ /* background-image: url('/images/halloween_background_1.gif'); */ /* Winter/snow */ - background-image: url('/images/jwsfp1.gif'); + /* background-image: url('/images/jwsfp1.gif'); */ + /* Christmas */ + background-image: url('/images/christmas.gif'); width: 95vmin; margin: 0 auto; font-family: 'w95fa', sans-serif; @@ -73,3 +75,5 @@ img { cursor: url('/cursors/arrow.cur'), auto; max-width: 100%; } + +summary { cursor: pointer; } diff --git a/assets/css/nested.css b/assets/css/nested.css index e527be7..7e69902 100644 --- a/assets/css/nested.css +++ b/assets/css/nested.css @@ -91,6 +91,8 @@ border: inset var(--dark-warm-gray) 0.18rem; } +details[open].post__body summary { display: none; } + .post__nav { display: flex; justify-content: flex-end; diff --git a/templates/thread/by_page.html.ep b/templates/thread/by_page.html.ep index 844fec5..cdff438 100644 --- a/templates/thread/by_page.html.ep +++ b/templates/thread/by_page.html.ep @@ -23,9 +23,18 @@

<%= $thread->{'date'} %>

<%= $thread->{'author'} %>
+ <% if (299 < length $thread->{'body'}) { %> +
+ + [Show All]<%== markdown truncate_text $thread->{'body'} =%> + + <%== markdown $thread->{'body'} =%> +
+ <% } else { =%>
- <%== markdown truncate_text $thread->{'body'} =%> + <%== markdown $thread->{'body'} =%>
+ <% } =%>