Skip to content

Commit

Permalink
Clean up CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Sep 19, 2020
1 parent e2e4dd1 commit 7bf768c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spacy_streamlit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def get_html(html: str):
def get_color_styles(color: str) -> str:
"""Compile some hacky CSS to override the theme color."""
# fmt: off
color_selectors = ["a", "a:hover", "*:not(textarea).st-ex:hover", ".st-en:hover"]
bg_selectors = [".st-da", "*:not(button).st-en:hover"]
border_selectors = [".st-ft", ".st-fs", ".st-fr", ".st-fq", ".st-ex:hover", ".st-en:hover"]
color_selectors = ["a", "a:hover", ".stMultiSelect span:hover svg"]
bg_selectors = ['.stCheckbox label span[aria-checked="true"]', ".stMultiSelect span"]
border_selectors = [".stSelectbox > div[aria-controls] > div", ".stMultiSelect > div[aria-controls] > div", ".stTextArea > div:focus-within"]
# fmt: on
css_root = "#root { --primary: %s }" % color
css_color = ", ".join(color_selectors) + "{ color: %s !important }" % color
Expand Down

0 comments on commit 7bf768c

Please sign in to comment.