From 21bdddcfbe6ae85c15a4544fe5fd751b7e94d960 Mon Sep 17 00:00:00 2001 From: Mary <148872143+mary-ext@users.noreply.github.com> Date: Fri, 1 Mar 2024 06:30:17 +0700 Subject: [PATCH] Reset button/input font set by UA (#3038) * fix: reset button/input fonts set by UA * fix: inherit line-height as well --- bskyweb/templates/base.html | 6 ++++++ web/index.html | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 50fb9a2fd4..413d7ff691 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -44,6 +44,12 @@ scrollbar-gutter: stable both-edges; } + /* Buttons and inputs have a font set by UA, so we'll have to reset that */ + button, input, textarea { + font: inherit; + line-height: inherit; + } + /* Color theming */ /* Default will always be white */ :root { diff --git a/web/index.html b/web/index.html index 78090591cc..8f2275a7f4 100644 --- a/web/index.html +++ b/web/index.html @@ -48,6 +48,12 @@ scrollbar-gutter: stable both-edges; } + /* Buttons and inputs have a font set by UA, so we'll have to reset that */ + button, input, textarea { + font: inherit; + line-height: inherit; + } + /* Color theming */ /* Default will always be white */ :root {