calendar-strip mobile organisé en semaine presque terminé. Attente reponse à question
This commit is contained in:
parent
f2f28d9012
commit
47b8fe07e1
3 changed files with 85 additions and 26 deletions
|
|
@ -15,12 +15,18 @@
|
|||
width: 10rem;
|
||||
}
|
||||
|
||||
.calendar-strip__days {
|
||||
.calendar-strip__days,
|
||||
.calendar-strip__days .week > ul {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.calendar-strip__days .week,
|
||||
.calendar-strip__days .week > ul {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.calendar-strip__day {
|
||||
font-size: var(--font-size-s);
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
|
|
@ -97,4 +103,17 @@
|
|||
.calendar-strip .next-month {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calendar-strip__days .week,
|
||||
.calendar-strip__days .week > ul {
|
||||
display: inherit;
|
||||
}
|
||||
.calendar-strip__days .week:not(.current) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calendar-strip__days .week,
|
||||
.calendar-strip__days .week > ul {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,6 +169,8 @@ function createEmptyCalendar() {
|
|||
sessions: [],
|
||||
full: currentDay.format("DD-MM-YYYY"),
|
||||
initial: dayInitial,
|
||||
index: parseInt(currentDay.format("DD")),
|
||||
indexInWeek: currentDay.day() === 0 ? 7 : currentDay.day(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue