hugo-page/themes/tsc_vfl/assets/css/_schedule.scss

113 lines
2.3 KiB
SCSS
Raw Normal View History

2025-01-19 10:33:57 +01:00
@use './responsive.scss' as r;
@use './colors.scss' as *;
2025-01-19 10:33:57 +01:00
.calendar-schedule {
$calendar-height-row: 60px;
$border-style: solid lightgray 1px;
2025-01-19 10:33:57 +01:00
display: grid;
font-size: xx-small;
@include r.media-large {
& {
font-size: small;
}
}
2025-01-19 10:33:57 +01:00
.header {
display: contents;
font-weight: bold;
div {
width: 100%;
text-align: center;
box-sizing: border-box;
2025-01-19 10:33:57 +01:00
}
.rooms {
display: flex;
width: 100%;
div {
flex: 1 0 0;
text-align: center;
}
}
.main-column {
border-right: $border-style;
2025-01-19 10:33:57 +01:00
}
}
.table-row {
height: $calendar-height-row;
box-sizing: border-box;
border-top: $border-style;
}
.times-left {
border-right: $border-style;
}
.times-left, .times-right{
width: 100%;
padding: 0 5px;
}
.main-entry {
position: relative;
border-right: $border-style;
.event {
position: absolute;
z-index: 1;
top: calc($calendar-height-row * var(--minutes) / 60.0);
height: calc($calendar-height-row * var(--duration) / 60.0);
width: 30%;
padding: 1px 0;
2025-01-19 10:33:57 +01:00
box-sizing: border-box;
overflow: hidden;
--fg-color: black;
&.room-vorne {
--bg-color: var(--color-vhvorne);
left: 2.5%;
}
&.room-mitte {
--bg-color: var(--color-vhmitte);
left: 35%
}
&.room-hinten {
--bg-color: var(--color-vhhinten);
--fg-color: white;
left: 67.5%;
}
div {
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 3px;
border-radius: 4px;
color: var(--fg-color);
background-color: var(--bg-color);
}
2025-01-19 10:33:57 +01:00
}
}
}
.calendar-grid-2-days {
grid-template-columns: auto repeat(2, 1fr) auto;
}
.calendar-grid-3-days {
grid-template-columns: auto repeat(3, 1fr) auto;
}