From 7f12b81abfc8d15ad2039e5e1a4e3e27142eaadd Mon Sep 17 00:00:00 2001 From: Inhji Date: Mon, 11 Sep 2023 07:13:37 +0200 Subject: [PATCH] add tag-bar styles --- assets/css/app.css | 18 ++++++++++++++++++ .../controllers/page_html/tag_bar.html.heex | 13 +++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 776cc57..f37636c 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -126,6 +126,24 @@ @apply before:content-['ยท'] } + .tag-bar { + & .letter { + @apply capitalize border rounded font-sm px-2 py-1 inline-block mb-2; + } + + & li { + @apply mb-2; + } + + & a { + @apply border rounded font-sm px-2 py-1 inline-block mb-2 transition; + } + + & .count { + @apply text-xs font-mono rounded-full py-0.5 px-1 align-middle; + } + } + .pagination { @apply flex justify-between mt-6; diff --git a/lib/chiya_web/controllers/page_html/tag_bar.html.heex b/lib/chiya_web/controllers/page_html/tag_bar.html.heex index 21bd231..19a4141 100644 --- a/lib/chiya_web/controllers/page_html/tag_bar.html.heex +++ b/lib/chiya_web/controllers/page_html/tag_bar.html.heex @@ -1,17 +1,14 @@ -