From 79c38de82b0e8250df7b469a74f8ea87aaee31f6 Mon Sep 17 00:00:00 2001 From: albertlast Date: Wed, 9 Sep 2026 05:46:45 +0200 Subject: [PATCH] Removes the calendar right-to-left rules that match nothing calendar.rtl.css mirrors three selectors that no longer exist anywhere in SMF: #main_grid table.weeklist td.windowbg, #main_grid table.weeklist td.weekdays and #main_grid img.calendar_icon. Nothing in Sources or Themes emits a weeklist, weekdays or calendar_icon class, under those names or built up from parts, and calendar.css carries no counterpart for any of the three either. The week view is drawn from days, act_day, event_col, holiday_col and birthday_col instead, so the base stylesheet has already moved on and only the right-to-left file still describes the old table. The three rules were the only readers of --calendar-weeklist-border-color, so its definitions in variables.css and dark.css go with them. Co-Authored-By: Claude Opus 5 Signed-off-by: albertlast --- Themes/default/css/calendar.rtl.css | 14 -------------- Themes/default/css/dark.css | 1 - Themes/default/css/variables.css | 1 - 3 files changed, 16 deletions(-) diff --git a/Themes/default/css/calendar.rtl.css b/Themes/default/css/calendar.rtl.css index 692550c25a..5e8a207155 100644 --- a/Themes/default/css/calendar.rtl.css +++ b/Themes/default/css/calendar.rtl.css @@ -6,17 +6,3 @@ #month_grid { margin: 0 0 0 1%; } -#main_grid table.weeklist td.windowbg { - border-left: 2px solid var(--calendar-weeklist-border-color); - border-bottom: 2px solid var(--calendar-weeklist-border-color); -} -#main_grid img.calendar_icon { - float: right; - margin: 0 0 0 4px; -} -#main_grid table.weeklist td.weekdays { - text-align: left; - vertical-align: middle; - border-right: 2px solid var(--calendar-weeklist-border-color); - border-bottom: 2px solid var(--calendar-weeklist-border-color); -} \ No newline at end of file diff --git a/Themes/default/css/dark.css b/Themes/default/css/dark.css index 9d1f4de88c..548f9dd884 100644 --- a/Themes/default/css/dark.css +++ b/Themes/default/css/dark.css @@ -567,7 +567,6 @@ --attachment-dropzone-border-color_hover: hsl(var(--primary-color-hue), 45%, 55%); --attachment-item-border-color: var(--dark-line); --buttonrow-border-color: var(--dark-line); - --calendar-weeklist-border-color: var(--dark-bg-1); --detailedinfo-border-color: var(--dark-line); --draftoptions-border-color_left: var(--dark-line-strong); --draftoptions-item-border-color: var(--dark-line); diff --git a/Themes/default/css/variables.css b/Themes/default/css/variables.css index 54178d739f..2880d7979b 100644 --- a/Themes/default/css/variables.css +++ b/Themes/default/css/variables.css @@ -799,7 +799,6 @@ --attachment-dropzone-border-color_hover: #557ea0; --attachment-item-border-color: #ddd; --buttonrow-border-color: #ccc; - --calendar-weeklist-border-color: #fff; --detailedinfo-border-color: #ccc; --draftoptions-border-color_left: #bbb; --draftoptions-item-border-color: #e4e4e4;