mirror of https://github.com/snachodog/mybuddy.git
Lessen hover effect on checkbox buttons.
This commit is contained in:
parent
5dc372281b
commit
7d3d13338e
|
@ -20,3 +20,10 @@
|
|||
.invalid-feedback {
|
||||
display: block;
|
||||
}
|
||||
|
||||
// Disable hover effect on buttons (used for checkbox buttons).
|
||||
.btn-no-hover:hover {
|
||||
color: inherit;
|
||||
background-color: inherit;
|
||||
border-color: inherit;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="col-sm-10">
|
||||
{% if field|field_type == "booleanfield" %}
|
||||
<div class="btn-group-toggle" data-toggle="buttons">
|
||||
<label for="id_{{ field.name }}" class="btn btn-outline-light{% if field.value %} active{% endif %}">
|
||||
<label for="id_{{ field.name }}" class="btn btn-outline-light btn-no-hover{% if field.value %} active{% endif %}">
|
||||
{% if field.errors %}
|
||||
{{ field|add_class:"is-invalid" }}
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in New Issue