From 0a80d364f16e462289ac510227d86f7478a81ac5 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 23 Aug 2025 18:09:58 -0600 Subject: [PATCH] Holiday styling more conservative. --- src/assets/colors.css | 11 ++++------- src/components/CalendarDay.vue | 30 +++++++++++++++++++----------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/assets/colors.css b/src/assets/colors.css index f24deb9..24e299a 100644 --- a/src/assets/colors.css +++ b/src/assets/colors.css @@ -23,9 +23,9 @@ /* Holiday colors */ --holiday-bg: rgba(255, 215, 0, 0.1); --holiday-border: rgba(255, 215, 0, 0.3); - --holiday-text: #8b4513; + --holiday: #8b4513; --holiday-label-bg: rgba(255, 215, 0, 0.8); - --holiday-label-text: #5d4037; + --holiday-label: #5d4037; /* Input / recurrence tokens */ --input-border: var(--muted-alt); @@ -139,11 +139,8 @@ --border-color: #333; /* Holiday colors (dark mode) */ - --holiday-bg: rgba(255, 193, 7, 0.15); - --holiday-border: rgba(255, 193, 7, 0.4); - --holiday-text: #ffc107; - --holiday-label-bg: rgba(255, 193, 7, 0.2); - --holiday-label-text: #fff8e1; + --holiday: #ffc107; + --holiday-label: #fff8e1; } .dec { diff --git a/src/components/CalendarDay.vue b/src/components/CalendarDay.vue index 08ade34..58afa56 100644 --- a/src/components/CalendarDay.vue +++ b/src/components/CalendarDay.vue @@ -90,13 +90,25 @@ const props = defineProps({ } .cell.holiday { - background-color: var(--holiday-bg, rgba(255, 215, 0, 0.1)); - border-color: var(--holiday-border, rgba(255, 215, 0, 0.3)); + /* Remove solid background & border color overrides; use gradient overlay instead */ + position: relative; +} +.cell.holiday::before { + content: ''; + position: absolute; + inset: 0; + background: linear-gradient( + 135deg, + var(--holiday-grad-start, rgba(255, 255, 255, 0.1)) 0%, + var(--holiday-grad-end, rgba(255, 255, 255, 0)) 70% + ); + pointer-events: none; + mix-blend-mode: normal; /* can switch to 'overlay' or 'screen' if thematic */ } - .cell.holiday h1 { - color: var(--holiday-text, #8b4513); - font-weight: bold; + /* Slight emphasis without forcing a specific hue */ + color: var(--holiday); + text-shadow: 0 0 0.3em rgba(255, 255, 255, 0.4); } .holiday-info { @@ -112,14 +124,10 @@ const props = defineProps({ .holiday-name { display: block; - background: var(--holiday-label-bg, rgba(255, 215, 0, 0.8)); - color: var(--holiday-label-text, #5d4037); - padding: 0.1em 0.2em; - border-radius: 0.2em; - font-weight: 600; + color: var(--holiday-label); + padding: 0.15em 0.35em 0.15em 0.25em; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }