diff --git a/assets/css/article.css b/assets/css/article.css index 2b36036..b9b9272 100644 --- a/assets/css/article.css +++ b/assets/css/article.css @@ -6,11 +6,32 @@ @apply hover:bg-gray-300; } +.article a.hide-link { + display: none; +} + +.article.show-boundary a.hide-link { + display: inline; +} + +.article.show-boundary a.show-link { + display: none; +} + +.article.show-boundary span + span.tunit::before { + content: "🭱"; + color: brown; + font-weight: bold; + font-size: 130%; + vertical-align: -2px; +} + + .article h4 { @apply font-semibold text-lg leading-8 text-zinc-800; } -.article p { +.article p, .article div { @apply text-justify; } diff --git a/lib/outlook_web/live/article_live/show.html.heex b/lib/outlook_web/live/article_live/show.html.heex index dc5a745..bf111a3 100644 --- a/lib/outlook_web/live/article_live/show.html.heex +++ b/lib/outlook_web/live/article_live/show.html.heex @@ -13,8 +13,9 @@ -
+show boundaries +hide boundaries <%= InternalTree.render_html(@article.content) |> raw %>