From 6a904efafbe30c3a58cd59a6978b34aea66f99ea Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Fri, 4 Sep 2020 14:25:25 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20visibilit=C3=A0=20checkbox=20indipendenti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/src/css/style.css | 16 ++++++++-------- src/HTMLBuilder/Handler/ChoicesHandler.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/src/css/style.css b/assets/src/css/style.css index cefe5cfdf..0921cbc13 100755 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -949,37 +949,37 @@ div.tip { /* Fancy checkbox: https://bootsnipp.com/snippets/M2bda */ -.form-group input[type="checkbox"] { +.checkbox-group input[type="checkbox"] { display: none; } -.form-group input[type="checkbox"] + .btn-group > label span { +.checkbox-group input[type="checkbox"] + .btn-group > label span { width: 20px; } -.form-group input[type="checkbox"] + .btn-group { +.checkbox-group input[type="checkbox"] + .btn-group { width: 100%; display: flex; overflow: auto; } -.form-group input[type="checkbox"] + .btn-group label:last-child { +.checkbox-group input[type="checkbox"] + .btn-group label:last-child { flex-grow: 100; } -.form-group input[type="checkbox"] + .btn-group > label span:first-child { +.checkbox-group input[type="checkbox"] + .btn-group > label span:first-child { display: none; } -.form-group input[type="checkbox"] + .btn-group > label span:last-child { +.checkbox-group input[type="checkbox"] + .btn-group > label span:last-child { display: inline-block; } -.form-group input[type="checkbox"]:checked + .btn-group > label span:first-child { +.checkbox-group input[type="checkbox"]:checked + .btn-group > label span:first-child { display: inline-block; } -.form-group input[type="checkbox"]:checked + .btn-group > label span:last-child { +.checkbox-group input[type="checkbox"]:checked + .btn-group > label span:last-child { display: none; } diff --git a/src/HTMLBuilder/Handler/ChoicesHandler.php b/src/HTMLBuilder/Handler/ChoicesHandler.php index 4784c9c3b..78108d3fc 100755 --- a/src/HTMLBuilder/Handler/ChoicesHandler.php +++ b/src/HTMLBuilder/Handler/ChoicesHandler.php @@ -54,7 +54,7 @@ class ChoicesHandler implements HandlerInterface // Generazione del codice HTML // "+ this.checked" rende il valore booleano un numero $result = ' -
+