Style input[type=radio] to appear as buttons.

This commit is contained in:
Benjamin A. Shelton 2026-11-25 23:00:42 -07:00
commit 2691699c93
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -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 {