mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
simplify previous patch
The default 1 rem is fine, but we need to apply the default font size to the html element instead of the body for the definition of rem to update. Fixes #1174
This commit is contained in:
parent
b20381afad
commit
fdd162a7b9
2 changed files with 2 additions and 6 deletions
|
@ -443,7 +443,8 @@ div[contenteditable="true"]:focus {
|
|||
lang_dir = "ltr"
|
||||
|
||||
return f"""
|
||||
body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; {font} }}
|
||||
body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; }}
|
||||
html {{ {font} }}
|
||||
{button_style}
|
||||
:root {{ --window-bg: {background} }}
|
||||
:root[class*=night-mode] {{ --window-bg: {background} }}
|
||||
|
|
|
@ -48,8 +48,3 @@ html {
|
|||
code {
|
||||
color: var(--flag1-bg);
|
||||
}
|
||||
|
||||
// override the default form sizes
|
||||
input.form-control, select.form-select {
|
||||
font-size: inherit;
|
||||
}
|
Loading…
Reference in a new issue