Skip to content

[3.0] Theme split (wave 10) — remove the calendar right-to-left rules nothing matches - #9667

Open
albertlast wants to merge 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/theme-rtl-calendar-dead-rules
Open

albertlast wants to merge 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/theme-rtl-calendar-dead-rules

Conversation

@albertlast

Copy link
Copy Markdown
Collaborator

Description

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
  • #main_grid img.calendar_icon

Nothing in Sources/ or Themes/ emits a weeklist, weekdays or calendar_icon class — not under those names, and not built up from parts either, which is worth checking separately because a class name can arrive constructed rather than written out. calendar.css has no counterpart for any of the three, so the base stylesheet has already moved on and only the right-to-left file still describes the old table.

The week view is drawn from days, act_day, event_col, holiday_col and birthday_col, built in Calendar.template.php — a different structure entirely.

The three rules were also the only readers of --calendar-weeklist-border-color, so its definitions in variables.css and dark.css go with them.

What stays, and why

The two remaining rules in the file are deliberately left alone. Neither is an exact mirror of a base rule, so neither can be written as a logical property without changing the left-to-right result as well:

  • #main_grid .cat_bar { margin: 0 0 0 2px; } has no counterpart in calendar.css at all — it adds a margin only in right-to-left.
  • #month_grid { margin: 0 0 0 1%; } faces a base margin-right: 10px. That is a different value, not the same value on the mirrored side.

This follows the same rule the earlier waves used: a declaration only becomes logical when the override is precisely the base value with the sides swapped.

This is the last right-to-left override file, and with these rules gone it holds only the two that have to stay.

Issues References (Fixes|Related|Closes)

Related to #7933.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
@github-actions github-actions Bot added the Theme label Sep 9, 2026
@albertlast albertlast mentioned this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant