From 508fb8e3f7a4224e56e8d4babe86269e28b36fe1 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 20 Feb 2025 14:43:49 -0600 Subject: [PATCH] These can be combined --- app/assets/stylesheets/buttons.css | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/buttons.css b/app/assets/stylesheets/buttons.css index 87554cddf..8440ed63b 100644 --- a/app/assets/stylesheets/buttons.css +++ b/app/assets/stylesheets/buttons.css @@ -100,26 +100,11 @@ } /* With radios and checkboxes */ - &:has(input[type=radio]) { - :is(input[type=radio]) { - appearance: none; - block-size: calc(var(--btn-size) - var(--outline-size)); - border-radius: var(--btn-border-radius); - cursor: pointer; - display: flex; - inline-size: calc(var(--btn-size) - var(--outline-size)); - margin: 0; - padding: 0; - } - - img.checked { - display: none; - } - } - + &:has(input[type=radio]), &:has(input[type=checkbox]) { position: relative; + :is(input[type=radio]), :is(input[type=checkbox]) { appearance: none; border-radius: var(--btn-border-radius);