mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
410 lines
9.5 KiB
CSS
410 lines
9.5 KiB
CSS
:root{
|
|
--calendar-pane-height: calc(100vh - 220px);
|
|
|
|
--calendar-primary: var(--fhc-primary);
|
|
--calendar-border: var(--fhc-border);
|
|
--calendar-border-highlight: var(--fhc-border-highlight);
|
|
--calendar-text: var(--fhc-text);
|
|
--calendar-text-light: var(--fhc-text);
|
|
--calendar-bg: var(--fhc-background);
|
|
--calendar-hour-indicator-bg: var(--fhc-background);
|
|
--calendar-week-page-header-background: var(--fhc-background);
|
|
--calendar-week-page-header-color: var(--fhc-text);
|
|
--calendar-week-page-header-border: var(--fhc-border);
|
|
--calendar-week-page-header-hover-background: var(--fhc-background-highlight);
|
|
--calendar-all-day-event-background: var(--fhc-background);
|
|
--calendar-past: var(--fhc-beige-10);
|
|
}
|
|
|
|
:root.dark{
|
|
--calendar-past: var(--fhc-beige-20);
|
|
}
|
|
|
|
.fhc-calendar-hour-indicator{
|
|
border-top: 1px solid var(--calendar-border);
|
|
}
|
|
|
|
.fhc-calendar-hour-indicator span{
|
|
background-color: var(--calendar-hour-indicator-bg) !important;
|
|
}
|
|
|
|
.fhc-calendar-week-page-header{
|
|
color: var(--calendar-text);
|
|
background-color: var(--calendar-week-page-header-background);
|
|
}
|
|
|
|
.fhc-calendar-week-page-header > div {
|
|
border-right: 1px solid var(--calendar-border);
|
|
}
|
|
|
|
.fhc-calendar-week-page-header > div:hover{
|
|
background-color: var(--calendar-week-page-header-hover-background);
|
|
}
|
|
|
|
.fhc-calendar-months .col-4,
|
|
.fhc-calendar-years .col-4 {
|
|
padding: 0.1875em 0;
|
|
}
|
|
.show-weeks .fhc-calendar-months .col-4,
|
|
.show-weeks .fhc-calendar-years .col-4 {
|
|
padding: 0.1875em 0.25em;
|
|
}
|
|
.fhc-calendar-months .col-4 button,
|
|
.fhc-calendar-years .col-4 button {
|
|
aspect-ratio: 28/18;
|
|
}
|
|
|
|
.fhc-calendar-month-page {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
grid-template-rows: 1.5em repeat(6, 1fr);
|
|
}
|
|
.fhc-calendar-month-page.show-weeks {
|
|
grid-template-columns: 1.5em repeat(7, 1fr);
|
|
grid-template-rows: 1.5em repeat(6, 1fr);
|
|
}
|
|
|
|
.fhc-calendar-month-page-weekday,
|
|
.fhc-calendar-month-page-day {
|
|
color: inherit;
|
|
}
|
|
|
|
.fhc-calendar-week .carousel-item {
|
|
/*padding: 0.75em;*/
|
|
}
|
|
|
|
.fhc-calendar-week-page {
|
|
/*aspect-ratio: 7/6;*/
|
|
min-height: 0;
|
|
}
|
|
.fhc-calendar-week-page > div {
|
|
/*transform: translate(-0.75em, -0.75em);*/
|
|
/*width: calc(100% + 1.5em);*/
|
|
/*height: calc(100% + 1.5em);*/
|
|
max-height: 100%;
|
|
}
|
|
.fhc-calendar-week-page > div > div {
|
|
padding-left: 3em;
|
|
}
|
|
.fhc-calendar-week-page .events {
|
|
display: grid;
|
|
grid-template-columns: 3em repeat(7, 1fr);
|
|
margin-left: -3em;
|
|
/*min-height: 266.6666666667%;*/
|
|
}
|
|
.fhc-calendar-week-page .events .day {
|
|
gap: 1px;
|
|
}
|
|
.fhc-calendar-week-page .events .hours, .fhc-calendar-week-page .events .day {
|
|
display: grid;
|
|
}
|
|
|
|
.fhc-calendar-week-page .all-day-event-border{
|
|
box-shadow: 1px 1px 0 var(--fhc-box-shadow);
|
|
}
|
|
|
|
.fhc-calendar-week-page .all-day-event {
|
|
max-height: 75px;
|
|
overflow: auto;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
.fhc-calendar-week-page .all-day-event-container{
|
|
position: sticky;
|
|
top: 44px;
|
|
display:grid;
|
|
grid-template-columns:repeat(7,1fr);
|
|
width:100%;
|
|
z-index:3;
|
|
background-color:var(--calendar-all-day-event-background);
|
|
}
|
|
|
|
.fhc-calendar-week-page .all-day-event-container::before {
|
|
position: absolute;
|
|
content:'';
|
|
top: 0;
|
|
bottom: 0;
|
|
left: -3em;
|
|
right: 100%;
|
|
background-color: var(--calendar-all-day-event-background);
|
|
box-shadow: 1px 1px 0 var(--fhc-box-shadow);
|
|
}
|
|
|
|
.fhc-calendar-day-page .all-day-event-border {
|
|
box-shadow: 0 0 0 1px var(--fhc-box-shadow);
|
|
}
|
|
|
|
.fhc-calendar-day-page .all-day-event {
|
|
grid-column:2;
|
|
max-height: 75px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.fhc-calendar-day-page .all-day-event-container {
|
|
position: sticky;
|
|
top:0;
|
|
display: grid;
|
|
grid-template-columns: 3em 1fr;
|
|
width: 100%;
|
|
z-index: 3;
|
|
background-color:var(--calendar-all-day-event-background);
|
|
box-shadow: 1px 1px 0 var(--fhc-box-shadow);
|
|
}
|
|
|
|
/* grid hour lines of the Stundenplan use box-shadow instead of border because box-shadow renders consistently on different viewports*/
|
|
.box-shadow-border{
|
|
box-shadow: 0 0 0 1px var(--calendar-border) !important;
|
|
}
|
|
|
|
.fhc-calendar-no-events-overlay{
|
|
position: relative;
|
|
}
|
|
|
|
.fhc-calendar-no-events-overlay::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
margin:auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: linear-gradient(120deg, var(--fhc-background), var(--fhc-dark) );
|
|
opacity: .7;
|
|
}
|
|
.fhc-calendar-day-page {
|
|
/*aspect-ratio: 7/6;*/
|
|
min-height: 0;
|
|
}
|
|
.fhc-calendar-day-page > div {
|
|
height: calc(100% + 1.5em);
|
|
}
|
|
.fhc-calendar-day-page .flex-column > .flex-grow-1 {
|
|
padding-left: 3em;
|
|
}
|
|
|
|
.fhc-calendar-day-page .events {
|
|
display: grid;
|
|
grid-template-columns: 3em 1fr;
|
|
}
|
|
.fhc-calendar-day-page .events .day {
|
|
gap: 1px;
|
|
}
|
|
.fhc-calendar-day-page .events .hours, .fhc-calendar-day-page .events .day {
|
|
display: grid;
|
|
}
|
|
|
|
.fhc-calendar-month-page-day{
|
|
color: var(--calendar-text) !important;
|
|
}
|
|
|
|
.fhc-calendar-month-page-day.fhc-calendar-past:not(.fhc-calendar-month-page-day-focusday) {
|
|
color: var(--fhc-text) !important;
|
|
}
|
|
|
|
.fhc-calendar-lg .fhc-calendar-month-page-day,
|
|
.fhc-calendar-lg .fhc-calendar-month-page-weekday,
|
|
.fhc-calendar-md .fhc-calendar-month-page-day,
|
|
.fhc-calendar-md .fhc-calendar-month-page-weekday {
|
|
border: solid 1px var(--calendar-border);
|
|
}
|
|
.fhc-calendar-lg .fhc-calendar-month-page-day,
|
|
.fhc-calendar-md .fhc-calendar-month-page-day {
|
|
aspect-ratio: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.fhc-calendar-lg .fhc-calendar-month-page-day.active,
|
|
.fhc-calendar-md .fhc-calendar-month-page-day.active {
|
|
border-color: var(--calendar-border-highlight);
|
|
}
|
|
/*.fhc-calendar-lg .fhc-calendar-month-page-day .events,*/
|
|
/*.fhc-calendar-md .fhc-calendar-month-page-day .events {*/
|
|
/* display: block;*/
|
|
/* overflow: auto;*/
|
|
/* font-size: 0.7em;*/
|
|
/*}*/
|
|
/*.fhc-calendar-lg .fhc-calendar-month-page-day .events span,*/
|
|
/*.fhc-calendar-md .fhc-calendar-month-page-day .events span {*/
|
|
/* display: block;*/
|
|
/* margin: 0.2em;*/
|
|
/* padding: 0.1em 0.4em;*/
|
|
/* border-radius: 0.1em;*/
|
|
/*}*/
|
|
.fhc-calendar-lg .fhc-calendar-years .col-4,
|
|
.fhc-calendar-md .fhc-calendar-years .col-4 {
|
|
padding: 0.09375em 0;
|
|
}
|
|
.show-weeks .fhc-calendar-lg .fhc-calendar-years .col-4,
|
|
.show-weeks .fhc-calendar-md .fhc-calendar-years .col-4 {
|
|
padding: 0.09375em 0.25em;
|
|
}
|
|
.fhc-calendar-lg .fhc-calendar-years .col-4 button,
|
|
.fhc-calendar-md .fhc-calendar-years .col-4 button {
|
|
aspect-ratio: 28/9;
|
|
}
|
|
|
|
.fhc-calendar-xs {
|
|
font-size: 0.6em;
|
|
}
|
|
|
|
.fhc-calendar-sm .fhc-calendar-month-page {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.fhc-calendar-sm .fhc-calendar-month-page-weekday,
|
|
.fhc-calendar-xs .fhc-calendar-month-page-weekday {
|
|
font-style: italic;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: end;
|
|
}
|
|
|
|
.fhc-calendar-month-page-weekday:hover {
|
|
background-color:var(--calendar-primary);
|
|
color:var(--calendar-text-light);
|
|
|
|
}
|
|
|
|
.fhc-calendar-sm .fhc-calendar-month-page-day,
|
|
.fhc-calendar-xs .fhc-calendar-month-page-day {
|
|
position: relative;
|
|
aspect-ratio: 1;
|
|
}
|
|
|
|
|
|
|
|
.fhc-calendar-past {
|
|
background-color: var(--calendar-past);
|
|
border-color: var(--calendar-border);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.fhc-calendar-month-page-day-focusday {
|
|
border-color: var(--calendar-border-highlight) !important;
|
|
background-color: var(--calendar-bg);
|
|
position: relative;
|
|
animation: dash-animation 2.5s linear infinite;
|
|
}
|
|
|
|
@keyframes dash-animation {
|
|
0% {
|
|
border-style: dashed;
|
|
}
|
|
50% {
|
|
border-style: solid;
|
|
}
|
|
100% {
|
|
border-style: dashed;
|
|
}
|
|
}
|
|
|
|
.fhc-highlight-week {
|
|
/*border-color: black !important;*/
|
|
}
|
|
|
|
.fhc-highlight-day {
|
|
position:relative;
|
|
}
|
|
|
|
.fhc-highlight-day::before {
|
|
content:'';
|
|
position:absolute;
|
|
top:0;
|
|
bottom:0;
|
|
left:0;
|
|
right:0;
|
|
box-shadow: inset 0 0 0 2px var(--calendar-border) !important;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
}
|
|
|
|
.fhc-calendar-sm .fhc-calendar-month-page-day.active .no,
|
|
.fhc-calendar-xs .fhc-calendar-month-page-day.active .no {
|
|
background-color: var(--calendar-primary);
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
}
|
|
.fhc-calendar-sm .fhc-calendar-month-page-day:not(.active):hover .no,
|
|
.fhc-calendar-xs .fhc-calendar-month-page-day:not(.active):hover .no {
|
|
background-color: var(--calendar-primary);
|
|
border-radius: 50%;
|
|
}
|
|
/*.fhc-calendar-sm .fhc-calendar-month-page-day .no,*/
|
|
/*.fhc-calendar-xs .fhc-calendar-month-page-day .no {*/
|
|
/* display: flex;*/
|
|
/* align-items: center;*/
|
|
/* justify-content: center;*/
|
|
/* width: 80%;*/
|
|
/* height: 80%;*/
|
|
/* margin: 10%;*/
|
|
/*}*/
|
|
/*.fhc-calendar-sm .fhc-calendar-month-page-day .events,*/
|
|
/*.fhc-calendar-xs .fhc-calendar-month-page-day .events {*/
|
|
/* position: absolute;*/
|
|
/* bottom: 0;*/
|
|
/* left: 10%;*/
|
|
/* width: 80%;*/
|
|
/* height: 10%;*/
|
|
/* overflow: hidden;*/
|
|
/* display: flex;*/
|
|
/*}*/
|
|
.fhc-calendar-sm .fhc-calendar-month-page-day .events span,
|
|
.fhc-calendar-xs .fhc-calendar-month-page-day .events span {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.selectedEvent {
|
|
background-color: var(--calendar-primary) !important;
|
|
color: var(--calendar-text-light);
|
|
}
|
|
|
|
.fhc-calendar-day-page .curTimeIndicator{
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
pointer-events: none;
|
|
padding-left: 7rem;
|
|
margin-top: -1px;
|
|
z-index: 2;
|
|
border-color: var(--calendar-border)!important;
|
|
}
|
|
|
|
.fhc-calendar-week-page .curTimeIndicator {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
pointer-events: none;
|
|
padding-left: 1rem;
|
|
margin-top: -1px;
|
|
z-index: 2;
|
|
border-color: var(--calendar-border) !important;
|
|
}
|
|
|
|
.fhc-calendar-week-page .past::before{
|
|
content:"";
|
|
background-color: var(--calendar-past);
|
|
position: absolute;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
opacity: 0.5;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.fhc-calendar-week-page .overlay {
|
|
background-color: var(--calendar-past);
|
|
position: absolute;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.fhc-calendar-day-page .overlay {
|
|
background-color: var(--calendar-past);
|
|
position: absolute;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
opacity: 0.5;
|
|
} |