@@ -41,19 +41,25 @@ html[style*="padding-right"] {
4141 background-clip : padding-box;
4242}
4343
44- /* Fix autofill background color to match dark theme */
45- input : -webkit-autofill ,
46- input : -webkit-autofill : hover ,
47- input : -webkit-autofill : focus ,
48- input : -webkit-autofill : active ,
49- textarea : -webkit-autofill ,
50- textarea : -webkit-autofill : hover ,
51- textarea : -webkit-autofill : focus ,
52- select : -webkit-autofill ,
53- select : -webkit-autofill : hover ,
54- select : -webkit-autofill : focus {
55- -webkit-box-shadow : 0 0 0 1000px var (--background-color ) inset !important ;
56- transition : color 5000s ease-in-out 0s ;
44+ /* Fix autofill background color to match theme */
45+ input : is (: -webkit-autofill , : autofill ),
46+ input : is (: -webkit-autofill , : autofill ): hover ,
47+ input : is (: -webkit-autofill , : autofill ): focus ,
48+ input : is (: -webkit-autofill , : autofill ): active ,
49+ textarea : is (: -webkit-autofill , : autofill ),
50+ textarea : is (: -webkit-autofill , : autofill ): hover ,
51+ textarea : is (: -webkit-autofill , : autofill ): focus ,
52+ select : is (: -webkit-autofill , : autofill ),
53+ select : is (: -webkit-autofill , : autofill ): hover ,
54+ select : is (: -webkit-autofill , : autofill ): focus {
55+ color : var (--text-primary ) !important ;
56+ caret-color : var (--text-primary );
57+ box-shadow : 0 0 0 1000px var (--surface-base ) inset !important ;
58+ -webkit-box-shadow : 0 0 0 1000px var (--surface-base ) inset !important ;
59+ -webkit-text-fill-color : var (--text-primary ) !important ;
60+ transition :
61+ background-color 5000s ease-in-out 0s ,
62+ color 5000s ease-in-out 0s ;
5763}
5864
5965/* Code snippet textareas */
0 commit comments