From 1948a260cd65dfe0f240ddd2069af4a0829689cf Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Fri, 4 Oct 2019 16:41:51 +0200 Subject: [PATCH] Compatibility with future crispy-forms release --- .../css/basetheme_bootstrap4_pasteur.css | 43 ++----------------- setup.py | 2 +- 2 files changed, 5 insertions(+), 40 deletions(-) diff --git a/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css b/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css index 9a5ef1f..99c66a5 100644 --- a/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css +++ b/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css @@ -522,45 +522,10 @@ main a { /*background: #e3e9eb;/**/ border-bottom: 1px solid #2d96fa; } - -:not(label)>input[type="radio"] { - display:none; -} -input[type="radio"] + label:before, -input[type="radio"] + label span:before -{ -font-family: "FontAwesome"; -content: "\f1db"; -color: #989287; -margin-left: -1.25rem; -} -input[type="radio"]:checked + label:before, -input[type="radio"]:checked + label span:before -{ -content: "\f05d"; -color: #0275e3; -} - -:not(label)>input[type="checkbox"] { - display:none; -} -input[type="checkbox"] + label:before, -input[type="checkbox"] + label span:before -{ -font-family: "FontAwesome"; -content: "\f096"; -color: #989287; -margin-left: -1.25rem; -position: absolute; -} -input[type="checkbox"]:checked + label:before, -input[type="checkbox"]:checked + label span:before -{ -content: "\f046"; -color: #0275e3; -} -.form-check>.form-check-label+.form-text{ - margin-left: -1.25rem; +.custom-control-input:checked~.custom-control-label::before { + color: #fff; + border-color: #2d96fa; + background-color: #2d96fa; } .card { diff --git a/setup.py b/setup.py index a332f71..a5a27fd 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ readme = open('README.rst').read() setup( name='django-basetheme-bootstrap', - version='0.2.22', + version='0.2.23', description='Django Basetheme Bootstrap', long_description=readme, author='Bryan Brancotte', -- GitLab