Skip to content

Commit 1848640

Browse files
committed
polish
1 parent 5ce8a9a commit 1848640

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Lib/calendar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,7 @@ def formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None):
583583
a('<style>\n')
584584
a('@media (prefers-color-scheme: dark) {\n')
585585
a(' body { background-color: #121212; color: #e0e0e0; }\n')
586-
a(' table.year, table.month { border-color: #444; }\n')
587-
a(' td, th { border-color: #444; }\n')
586+
a(' table.year, table.month, td, th { border-color: #444; }\n')
588587
a('}\n')
589588
a('</style>\n')
590589
if css is not None:

Lib/test/test_calendar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@
116116
result_2004_css = """<style>
117117
@media (prefers-color-scheme: dark) {
118118
body { background-color: #121212; color: #e0e0e0; }
119-
table.year, table.month { border-color: #444; }
120-
td, th { border-color: #444; }
119+
table.year, table.month, td, th { border-color: #444; }
121120
}
122121
</style>"""
123122

0 commit comments

Comments
 (0)