Skip to content

Commit f75343f

Browse files
authored
recolor list rows
closes #81
1 parent 4dc3e5a commit f75343f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/build_processing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
def apply_styles_to_table(soup: BeautifulSoup) -> BeautifulSoup:
1515
"""Style tables for better legibility"""
16-
colors = itertools.cycle(["#FFFFFF", "#E6E6E6"])
16+
colors = itertools.cycle(["#000000", "#1C1C1E"])
1717
for html_table in soup.find_all("table"):
1818
for col in html_table.find_all("td"):
19-
col["style"] = "border:1px solid #000; padding:0.5em;"
19+
col["style"] = "border:1px solid #FFFFFF; padding:0.5em;"
2020
for row in html_table.find_all("tr"):
21-
row["style"] = f"background-color: {next(colors)}; border:1px solid #000;"
21+
row["style"] = f"background-color: {next(colors)}; border:1px solid #FFFFFF;"
2222
return soup
2323

2424

0 commit comments

Comments
 (0)