Remove hard-coded Python font sizes

This commit is contained in:
Matthias Metelka 2022-11-07 14:34:58 +01:00
parent e925f4b065
commit 861e0c75bd
3 changed files with 7 additions and 6 deletions

View file

@ -413,10 +413,10 @@ class AnkiWebView(QWebEngineView):
button_style = f"""
button {{ font-family: {family}; }}
"""
font = f"font-size:12px;font-family:{family};"
font = f"font-family:{family};"
elif is_mac:
family = "Helvetica"
font = f'font-size:14px;font-family:"{family}";'
font = f'font-family:"{family}";'
button_style = """
button {
--canvas: #fff;
@ -432,7 +432,7 @@ button {
"""
else:
family = self.font().family()
font = f'font-size:14px;font-family:"{family}", sans-serif;'
font = f'font-family:"{family}", sans-serif;'
button_style = """
/* Buttons */
button{{

View file

@ -177,8 +177,8 @@ $vars: (
bg: (
"Background color of primary button",
(
light: palette(blue, 4),
dark: color.scale(palette(blue, 6), $saturation: -10%),
light: palette(blue, 5),
dark: color.scale(palette(blue, 7), $saturation: -10%),
),
),
gradient: (

View file

@ -44,7 +44,8 @@ html {
}
body {
--base-font-size: 13px;
--base-font-size: 14px;
font-size: var(--base-font-size);
overscroll-behavior: none;
&:not(.isMac),
&:not(.isMac) * {