From 2691699c930489b18ca14020ad793ddb36631ac4 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Wed, 25 Nov 2026 23:00:42 -0700 Subject: [PATCH] Style input[type=radio] to appear as buttons. --- src/styles/global.css | 48 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 9a056b1..ef9bcfe 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -66,10 +66,7 @@ html.df article.content.study-notes { text-underline-offset: 10px; } a.scripture.christ, a.scripture.christ:hover { - color: inherit; - text-decoration: underline; - text-decoration-color: var(--color-rose-700); - text-decoration-thickness: 0.05em; + color: var(--color-rose-800); } a.scripture.quote { background-color: transparent; @@ -313,6 +310,49 @@ dialog.config { &::backdrop { background-color: rgba(0, 0, 0, 0.6); } + + legend { + @apply text-sm; + } + + input.button[type=radio] { + opacity: 0; + cursor: pointer; + @apply m-0; + width: 0; + } + + label.button { + @apply border border-gray-900 pl-4 pr-4 pt-2 pb-2 m-0 rounded-sm text-sm lg:text-lg cursor-pointer hover:bg-gray-700 hover:text-gray-200; + } + + label.button:nth-of-type(2) { + @apply rounded-none; + } + + label.button:first-of-type { + @apply border-r-0; + border-top-right-radius: 0; + border-bottom-right-radius: 0; + } + + label.button:last-of-type { + @apply border-l-0; + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + + input.button[type=radio]:checked + label.button { + @apply text-blue-300 bg-blue-800; + } + + .content { + @apply p-4; + } + + h1 { + @apply font-bold text-xl mb-2 underline underline-offset-4; + } } dialog.scripture {