From 1116990abb4e3a1b590a6222711a65dfd08f9f6d Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 2 Dec 2023 16:44:54 +1100 Subject: [PATCH] Styling updates --- app/templates/posts/show.html.slim | 2 +- app/templates/shared/_tags.html.slim | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/templates/posts/show.html.slim b/app/templates/posts/show.html.slim index 06dede2..b16d31b 100644 --- a/app/templates/posts/show.html.slim +++ b/app/templates/posts/show.html.slim @@ -23,7 +23,7 @@ article class="h-entry" - if post.photos? || post.videos? a class="dark:text-gray-400" href="/photos" photos article class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline prose-img:rounded prose-video:rounded" - div class="e-content" + div class="e-content prose-code:bg-pink-100 prose-code:text-pink-900" == post.content - if post.photos? diff --git a/app/templates/shared/_tags.html.slim b/app/templates/shared/_tags.html.slim index 4a41793..dce13dd 100644 --- a/app/templates/shared/_tags.html.slim +++ b/app/templates/shared/_tags.html.slim @@ -1,8 +1,8 @@ - if tags.count > 0 - div class="mb-2" - span class="text-sm text-gray-600 dark:text-gray-200 leading-10" - = "Tagged: " + p class="mb-2" + = "Tagged" + div class="mb-2 grid grid-flow-col grid-rows-2 justify-end gap-x-1.5" - tags.each do |post_tag| span - a class="p-category rounded p-1 mr-1 text-xsm u-url bg-yellow-100/60 hover:bg-yellow-200 dark:bg-amber-400/60 dark:hover:bg-amber-400/80 dark:text-amber-100 dark:hover:text-yellow-100 text-gray-600" href="/tagged/#{post_tag.slug}" - = post_tag.label + a class="p-category rounded mr-1 u-url text-pink-400 hover:text-pink-600 dark:text-pink-400 dark:hover:text-pink-100 text-gray-600" href="/tagged/#{post_tag.slug}" + = "##{post_tag.label}"