File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -178,12 +178,26 @@ a:visited {
178178 color : var (--link-color ) !important ;
179179}
180180
181+ /* High specificity override for webkit browsers */
182+ [data-theme = "dark" ] a .page-link : hover ,
183+ [data-theme = "dark" ] a : link : hover ,
184+ [data-theme = "dark" ] a : visited : hover {
185+ color : var (--link-color ) !important ;
186+ }
187+
181188/* System preference dark mode for all links */
182189@media (prefers-color-scheme : dark) {
183190 : root : not ([data-theme = "light" ]) a : hover ,
184191 : root : not ([data-theme = "light" ]) a : visited : hover {
185192 color : var (--link-color ) !important ;
186193 }
194+
195+ /* High specificity override for webkit browsers in system dark mode */
196+ : root : not ([data-theme = "light" ]) a .page-link : hover ,
197+ : root : not ([data-theme = "light" ]) a : link : hover ,
198+ : root : not ([data-theme = "light" ]) a : visited : hover {
199+ color : var (--link-color ) !important ;
200+ }
187201}
188202
189203.site-footer {
You can’t perform that action at this time.
0 commit comments