Bug 25727: (follow-up) Use CSS specificity rather than !important

This patch adds specificty to the CSS which controls the "invalid"
appearance of a Select2 dropdown so that the use of "!important" can be
avoided. The patch also puts this style into our custom select2 CSS file
so that it is located with other Select2 style changes.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2020-06-17 16:34:50 +00:00 committed by Jonathan Druart
parent 424187b18a
commit 18139a8d4a
2 changed files with 6 additions and 9 deletions

View file

@ -2,11 +2,8 @@
background-color: initial;
}
.select2-container.subfield_not_filled .select2-choice {
background: initial;
background-color : #FFFF99;
.select2-container.missing .select2-choice,
.select2-container .select2-selection--single.subfield_not_filled,
.select2-container .select2-selection--single.important_subfield_not_filled {
background-color: #FFFF99;
}
.select2-container.missing .select2-choice {
background: #ffc none;
}

View file

@ -1552,11 +1552,11 @@ input[type='text']:read-only:focus {
}
.subfield_not_filled {
background-color: #FFFF99 !important;
background-color: #FFFF99;
}
.important_subfield_not_filled {
background-color : #FFFFCC !important;
background-color : #FFFFCC;
}
.content_hidden {