Skip to content

Build your personal knowledge base with Trilium Notes

style/calendar collection: tweak the appearance of events without a color

Adorian Doran11618260cf6a
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index 28f42c2186..1565fe1e86 100644
--- a/apps/client/src/stylesheets/theme-next-dark.css
+++ b/apps/client/src/stylesheets/theme-next-dark.css
@@ -273,6 +273,7 @@
--calendar-coll-event-background-saturation: 12%;
--calendar-coll-event-background-lightness: 21%;
+ --calendar-coll-event-background-color: #3c3c3c;
--calendar-coll-event-text-color: white;
--calendar-cell-event-hover-filter: brightness(1.25);
}
diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css
index 9fe9b53fe3..423ef8d523 100644
--- a/apps/client/src/stylesheets/theme-next-light.css
+++ b/apps/client/src/stylesheets/theme-next-light.css
@@ -271,6 +271,7 @@
--calendar-coll-event-background-lightness: 95%;
--calendar-coll-event-background-saturation: 80%;
+ --calendar-coll-event-background-color: #eaeaea;
--calendar-coll-event-text-color: black;
--calendar-cell-event-hover-filter: brightness(.95) saturate(1.25);
}
diff --git a/apps/client/src/widgets/collections/calendar/index.css b/apps/client/src/widgets/collections/calendar/index.css
index b950cd8d45..60886f716a 100644
--- a/apps/client/src/widgets/collections/calendar/index.css
+++ b/apps/client/src/widgets/collections/calendar/index.css
@@ -79,25 +79,27 @@ body.desktop:not(.zen) .calendar-view .calendar-header {
.calendar-view {
--fc-event-text-color: var(--calendar-coll-event-text-color);
+ --fc-event-bg-color: var(--calendar-coll-event-background-color);
}
.calendar-view a.fc-timegrid-event,
.calendar-view a.fc-daygrid-event {
+ border: unset;
+ border-left: 4px solid;
+ padding-left: 8px;
font-weight: 500;
}
.calendar-view a.fc-timegrid-event:hover,
.calendar-view a.fc-daygrid-event:hover {
- text-decoration: none;
+ text-decoration: none;
+ border-color: var(--fc-event-text-color);
filter: var(--calendar-cell-event-hover-filter);
}
.fc-timegrid-event.with-hue, .fc-daygrid-event:not(.fc-daygrid-dot-event).with-hue {
--fc-event-text-color: var(--custom-color);
- border: unset;
- border-left: 4px solid;
- padding-left: 8px;
background: hsl(var(--custom-color-hue),
var(--calendar-coll-event-background-saturation),
var(--calendar-coll-event-background-lightness)) !important;