publik-famille: use slot colors if defined (#63330)
gitea-wip/publik-base-theme/pipeline/head Build started... Details

This commit is contained in:
Lauréline Guérin 2022-03-29 19:01:00 +02:00
parent bb889e97c9
commit 321fa4ab77
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 28 additions and 0 deletions

View File

@ -21,6 +21,12 @@
<li {% if option.disabled %}class="disabled"{% endif %}
data-date="{{ option.options.date }}"
{% if option.options.status %}data-status="{{ option.options.status }}"{% endif %}
{% if widget.readonly and not option.disabled %}
{% if option.selected and not option.options.booked_for_external_user %}data-has-change
{% elif not option.selected and option.options.booked_for_external_user %}data-has-change
{% endif %}
{% endif %}
><label><input
{% if not widget.value and option.options.booked_for_external_user %}checked="checked"
{% elif widget.value and option.options.booked_for_external_user and option.disabled %}checked="checked"
@ -131,10 +137,32 @@
background: #3c3;
}
.template-famille-reservations-par-semaine .content [data-status=booked] input[disabled] + span::after {
background: #3c3;
}
.template-famille-reservations-par-semaine .content [data-status=absence] input[disabled] + span::after {
background: red;
}
.template-famille-reservations-par-semaine .content [data-status=cancelled] input[disabled] + span::after {
background: yellow;
}
div.CheckboxesWidget.template-famille-reservations-par-semaine div.content ul li.disabled {
color: #888;
}
.template-famille-reservations-par-semaine.widget-readonly .content [data-has-change] input[disabled]:checked + span::after {
background: #3f3;
}
.template-famille-reservations-par-semaine.widget-readonly .content [data-status=booked][data-has-change] input[disabled]:not(:checked) + span::after {
background: yellow;
}
.template-famille-reservations-par-semaine .content [data-has-change] label {
font-weight: bold;
}
br.weekbreak { display: none; }
@media screen and (max-width: 500px) {