misc: move timetable table style to css file (#50035)

This commit is contained in:
Frédéric Péters 2021-01-13 09:39:42 +01:00
parent b8f9e437a7
commit 00f3ed46c4
2 changed files with 31 additions and 36 deletions

View File

@ -2047,3 +2047,34 @@ div.form-validation form {
div.buttons > div.widget {
margin-right: 1rem;
}
div.timetable-widget {
margin-top: 1ex;
display: flex;
width: 100%;
> div {
flex: 0 1 auto;
width: 20%;
text-align: center;
display: none;
}
div span {
display: block;
cursor: pointer;
padding: 0.3ex 0;
&.disabled {
opacity: 0.3;
cursor: not-allowed;
}
&.selectable.on {
background: #215D9C;
color: white;
}
}
div.head {
padding-bottom: 1ex;
}
}

View File

@ -162,42 +162,6 @@ $(function() {
$select.trigger('wcs:options-change');
});
</script>
{% if request.quixote_request.is_in_backoffice %}
<style>
div.meetings_table {
margin-top: 1ex;
display: flex;
width: 100%;
}
div.meetings_table > div {
flex: 0 1 auto;
width: 20%;
text-align: center;
display: none;
}
div.meetings_table div span {
display: block;
cursor: pointer;
padding: 0.3ex 0;
}
div.meetings_table div span.disabled {
opacity: 0.3;
cursor: not-allowed;
}
div.meetings_table div span.selectable.on {
background: #215D9C;
color: white;
}
div.meetings_table div.head {
padding-bottom: 1ex;
}
</style>
{% endif %}
{% endblock %}
{% block widget-hint %}