Use CSS for fav group candidate coloring
This commit is contained in:
parent
d02fa88d3a
commit
065dffa8a4
|
@ -1040,7 +1040,7 @@ function getGroupCharacterBlock(character) {
|
||||||
const isFav = character.fav || character.fav == 'true';
|
const isFav = character.fav || character.fav == 'true';
|
||||||
template.data("id", character.avatar);
|
template.data("id", character.avatar);
|
||||||
template.find(".avatar img").attr({ "src": avatar, "title": character.avatar });
|
template.find(".avatar img").attr({ "src": avatar, "title": character.avatar });
|
||||||
template.find(".ch_name").text(character.name).css('color', character.fav ? 'gold' : 'white');
|
template.find(".ch_name").text(character.name);
|
||||||
template.attr("chid", characters.indexOf(character));
|
template.attr("chid", characters.indexOf(character));
|
||||||
template.find('.ch_fav').val(isFav);
|
template.find('.ch_fav').val(isFav);
|
||||||
template.toggleClass('is_fav', isFav);
|
template.toggleClass('is_fav', isFav);
|
||||||
|
|
|
@ -1573,7 +1573,8 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
||||||
}
|
}
|
||||||
|
|
||||||
.character_select.is_fav .ch_name,
|
.character_select.is_fav .ch_name,
|
||||||
.group_select.is_fav .ch_name {
|
.group_select.is_fav .ch_name,
|
||||||
|
.group_member.is_fav .ch_name {
|
||||||
color: var(--golden);
|
color: var(--golden);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue