From 3b0b6ed653847e8b35aaaaff1002162684822730 Mon Sep 17 00:00:00 2001 From: swag Date: Wed, 24 May 2023 21:57:54 -0400 Subject: [PATCH] Text color and stuff --- assets/css/post_text.css | 7 ++++++- templates/thread/by_id.html.ep | 5 +++-- templates/thread/by_page.html.ep | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/assets/css/post_text.css b/assets/css/post_text.css index e8ac2ab..c9c0041 100644 --- a/assets/css/post_text.css +++ b/assets/css/post_text.css @@ -226,9 +226,14 @@ pre > code { white-space: nowrap; } +.post__id:link { color: black; } + .post__id:link::first-letter { text-decoration: underline; } -.post__id:active { border: inset; } +.post__id:active { + color: black; + border: inset; +} .post__date, .post__author, .post__body { margin: 1em 0.5em; diff --git a/templates/thread/by_id.html.ep b/templates/thread/by_id.html.ep index 026681e..74eaad7 100644 --- a/templates/thread/by_id.html.ep +++ b/templates/thread/by_id.html.ep @@ -42,8 +42,9 @@ <% for my $remark (@{$remarks}) { =%>

- <%= link_to $remark->{'date'}, single_remark => - {remark_id => $remark->{'id'}} %> + + <%= $remark->{'date'} %> + <%= link_to "#$remark->{'id'}", single_remark => {remark_id => $remark->{'id'}}, (class => 'post__id') %>

diff --git a/templates/thread/by_page.html.ep b/templates/thread/by_page.html.ep index 2c74f67..3256d6e 100644 --- a/templates/thread/by_page.html.ep +++ b/templates/thread/by_page.html.ep @@ -5,9 +5,9 @@ <% for my $thread (@{$threads}) { =%>

- <%= link_to single_thread => {thread_id => $thread->{'id'}}, begin %> + <%= $thread->{'title'} %> - <% end %> + <%= link_to "#$thread->{'id'}", single_thread => {thread_id => $thread->{'id'}}, (class => 'post__id') %>