.calendar-strip { --padding-vertical: calc(var(--space-m) / 2); position: relative; background-color: var(--color-yellow); width: 100%; display: flex; align-items: center; z-index: 4; } .calendar-strip__selector { flex-shrink: 0; display: flex; justify-content: space-between; width: 10rem; } .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; } .calendar-strip__day button { text-align: center; } .calendar-strip__day button.today { color: var(--color-salmon); opacity: 1 !important; } .calendar-strip__day button span { display: block; } .calendar-strip__day span:nth-child(1) { margin-bottom: 0.2rem; } .calendar-strip__day.active span:nth-child(3) { text-decoration: underline; } .calendar-strip__calendar-btn { border: var(--border); padding: 0.2rem 0.5rem; } .calendar-strip__date { position: absolute; box-sizing: border-box; overflow: hidden; left: 0; top: 100%; width: 100%; max-height: 0; background-color: #fff; z-index: 0; transition: max-height 0.5s ease-in-out; border-bottom: var(--border); } .calendar-strip__date.open { max-height: 50rem; } .calendar-strip .session { position: relative; display: grid; grid-template-columns: 1fr 1fr 0.5fr 1.5fr 1.5fr; padding: var(--padding-vertical) var(--space-m); } .calendar-strip .session__event-link { position: absolute; inset: 0; z-index: 1; } @media screen and (max-width: 800px) { .calendar-strip { margin-top: 2rem; border-top: var(--border); } .calendar-strip__selector { width: 7rem; } .calendar-strip__calendar-btn { display: none; } .calendar-strip .prev-month, .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%; } }