mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
Remove hard-coded Python font sizes
This commit is contained in:
parent
e925f4b065
commit
861e0c75bd
3 changed files with 7 additions and 6 deletions
|
@ -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{{
|
||||
|
|
|
@ -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: (
|
||||
|
|
|
@ -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) * {
|
||||
|
|
Loading…
Reference in a new issue