Pārlūkot izejas kodu

fix(theme): inherit font-family on form controls (#8816)

Browsers don't inherit font-family on button, input, select, textarea by
default, so the rule on html, body in frss.css didn't reach the "Mark as
read" button or the search input. Add an inherit rule so all themes
extending base-theme pick up their configured font.

Reported and tested by @JerryCrazy.

Fixes FreshRSS/FreshRSS#8803

Co-authored-by: Bjørn A. Andersen <polybjorn@users.noreply.github.com>
polybjorn 1 nedēļu atpakaļ
vecāks
revīzija
bcf8045b2b
2 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 4 0
      p/themes/base-theme/frss.css
  2. 4 0
      p/themes/base-theme/frss.rtl.css

+ 4 - 0
p/themes/base-theme/frss.css

@@ -64,6 +64,10 @@ html, body {
 	font-size: 100%;
 }
 
+button, input, select, textarea {
+	font-family: inherit;
+}
+
 main#stream {
 	container-type: inline-size;
 	container-name: main;

+ 4 - 0
p/themes/base-theme/frss.rtl.css

@@ -64,6 +64,10 @@ html, body {
 	font-size: 100%;
 }
 
+button, input, select, textarea {
+	font-family: inherit;
+}
+
 main#stream {
 	container-type: inline-size;
 	container-name: main;