From baa3670635776e7cb989a4b77ea1b9c1a6d8a5d4 Mon Sep 17 00:00:00 2001 From: Benoit Alessandroni <benoit@happy-dev.fr> Date: Wed, 3 Mar 2021 12:18:14 +0100 Subject: [PATCH] update: fixing some css --- css/index.css | 6 ++++++ js/connector-script.js | 2 +- scss/src/main.scss | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/css/index.css b/css/index.css index 4a7bbff..0e074a3 100644 --- a/css/index.css +++ b/css/index.css @@ -56,6 +56,12 @@ width: auto; cursor: pointer; font-weight: normal; } + .coopedia-kldb-search-box input[type="checkbox"], .coopedia-kldb-search-box input[type="radio"] { + box-sizing: border-box; + padding: 0; + appearance: auto; + -moz-appearance: auto; + -webkit-appearance: auto; } .coopedia-kldb-search-box .flex-espace { justify-content: space-between; } .coopedia-kldb-search-box .title_lead { diff --git a/js/connector-script.js b/js/connector-script.js index 4ff1bdb..67b1b17 100644 --- a/js/connector-script.js +++ b/js/connector-script.js @@ -92,7 +92,7 @@ function selectHiddenManagementForType(tab, form) { //Fullfill hidden field let hidden_type_select = form.querySelector('select[name="type"]'); - hidden_options = hidden_type_select.getElementsByTagName("option"); + let hidden_options = hidden_type_select.getElementsByTagName("option"); for (let hidden_option of hidden_options) { hidden_option.removeAttribute("selected"); if (hidden_option.value == '{"@id": "' + type_field_search + '"}') { diff --git a/scss/src/main.scss b/scss/src/main.scss index 3d7c19a..f2c897f 100644 --- a/scss/src/main.scss +++ b/scss/src/main.scss @@ -67,6 +67,14 @@ font-weight: normal; } + input[type="checkbox"], input[type="radio"] { + box-sizing: border-box; + padding: 0; + appearance: auto; + -moz-appearance: auto; + -webkit-appearance: auto; + } + .flex-espace{ justify-content: space-between; } -- GitLab