From c3b42e09f2f5139d64e2d0fa5253b5d2698165b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 23 May 2023 01:10:37 +0200 Subject: [PATCH] =?UTF-8?q?Multiple=20select=20odte=C4=8F=20maj=C3=AD=20or?= =?UTF-8?q?an=C5=BEovou=20barvu=20a=20obsahuj=C3=AD=20checkboxy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/mamweb.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 63c5f527..693e6206 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -1255,3 +1255,19 @@ div.gdpr { label[for=id_skola] { font-weight: bold; } + + +/* Select2 používaný hlavně multiple selectem. Přidání checkboxů a změna barvy. */ +.select2-results__option[aria-selected=true]:before { + content: '☑ '; + padding: 0 0 0 8px; +} + +.select2-results__option[aria-selected=false]:before { + content: '◻ '; + padding: 0 0 0 8px; +} + +.select2-results__option--highlighted { + background-color: #e84e10 !important; +}