forked from ScoDoc/ScoDoc
42 lines
908 B
Django/Jinja
42 lines
908 B
Django/Jinja
<div class="calendrier">
|
|
{% for mois,jours in calendrier.items() %}
|
|
<div class="mois">
|
|
<h3>{{mois}}</h3>
|
|
<div class="jours">
|
|
{% for jour in jours %}
|
|
<div class="jour">
|
|
{{jour.get_html() | safe}}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<style>
|
|
.calendrier {
|
|
display: flex;
|
|
justify-content: center;
|
|
overflow-x: scroll;
|
|
border: 1px solid #444;
|
|
border-radius: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.mois h3 {
|
|
text-align: center;
|
|
}
|
|
|
|
.jour {
|
|
text-align: left;
|
|
margin: 2px;
|
|
cursor: default;
|
|
font-size: 13px;
|
|
position: relative;
|
|
font-weight: normal;
|
|
min-width: 6em;
|
|
display: flex;
|
|
justify-content: start;
|
|
background-color: whitesmoke;
|
|
}
|
|
</style> |