From decf62c58cd98fe64d53dfd6cc78b53acda25ec1 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sat, 8 Mar 2025 03:33:02 +0200 Subject: [PATCH] style: add a gap between consecutive radios / check boxes --- .../type_widgets/options/text_notes/highlights_list.ts | 10 +++++----- src/public/stylesheets/style.css | 6 ++++++ src/public/stylesheets/theme-next/forms.css | 6 ------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/public/app/widgets/type_widgets/options/text_notes/highlights_list.ts b/src/public/app/widgets/type_widgets/options/text_notes/highlights_list.ts index 3be3d3724..66beaf7d3 100644 --- a/src/public/app/widgets/type_widgets/options/text_notes/highlights_list.ts +++ b/src/public/app/widgets/type_widgets/options/text_notes/highlights_list.ts @@ -9,11 +9,11 @@ const TPL = `

${t("highlights_list.description")}

- - - - - + + + + +

diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 0a7659c7f..6e6a70a3c 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -125,6 +125,12 @@ input[type="checkbox"] { appearance: auto !important; } +/* Add a gap between consecutive radios / check boxes */ +label.tn-radio + label.tn-radio, +label.tn-checkbox + label.tn-checkbox { + margin-left: 12px; +} + #left-pane input, #left-pane select, #left-pane textarea { diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css index d67995237..801556141 100644 --- a/src/public/stylesheets/theme-next/forms.css +++ b/src/public/stylesheets/theme-next/forms.css @@ -428,12 +428,6 @@ optgroup { user-select: none; } - /* Add a gap between consecutive radios / check boxes */ - label.tn-radio + label.tn-radio, - label.tn-checkbox + label.tn-checkbox { - margin-left: 12px; - } - /* The original input */ label.tn-radio > input[type="radio"], label.tn-checkbox > input[type="checkbox"] {