11/* jquery UI 
22  ========================================================================================= */ 
3- .ui-state-active , 
4- .ui-widget-content  .ui-state-active , 
5- .ui-widget-header  .ui-state-active , 
6- a .ui-button : active , 
7- .ui-button : active , 
8- .ui-button .ui-state-active : hover  {
9-     background-color :  var (--primary ) !important ;
10-     border-color :  var (--primary ) !important ;
3+ html [data-theme = "light" ] {
4+     .ui-state-active , 
5+     .ui-widget-content  .ui-state-active , 
6+     .ui-widget-header  .ui-state-active , 
7+     a .ui-button : active , 
8+     .ui-button : active , 
9+     .ui-button .ui-state-active : hover  {
10+         background-color :  var (--primary ) !important ;
11+         border-color :  var (--primary ) !important ;
12+     }
13+ 
14+ }
15+ 
16+ @media  (prefers-color-scheme :  light) {
17+     .ui-state-active , 
18+     .ui-widget-content  .ui-state-active , 
19+     .ui-widget-header  .ui-state-active , 
20+     a .ui-button : active , 
21+     .ui-button : active , 
22+     .ui-button .ui-state-active : hover  {
23+         background-color :  var (--primary ) !important ;
24+         border-color :  var (--primary ) !important ;
25+     }
26+ }
27+ 
28+ 
29+ html [data-theme = "dark" ] {
30+     .ui-widget-content  {
31+         color :  var (--body-fg ) !important ;
32+         background-color :  var (--body-bg ) !important ;
33+         border-color :  var (--hairline-color ) !important ;
34+     }
35+ 
36+     .ui-widget-header  {
37+         background-color :  var (--secondary ) !important ;
38+         border-color :  var (--secondary ) !important ;
39+     }
40+ 
41+     .ui-state-default , 
42+     .ui-widget-content  .ui-state-default , 
43+     .ui-widget-header  .ui-state-default , 
44+     .ui-button , 
45+     html  .ui-button .ui-state-disabled : hover , 
46+     html  .ui-button .ui-state-disabled : active  {
47+         background-color :  var (--secondary ) !important ;
48+         border-color :  var (--secondary ) !important ;
49+     }
50+ 
51+     .ui-state-default .ui-state-active  {
52+         background :  var (--primary ) !important ;
53+         border-color :  var (--primary ) !important ;
54+     }
55+ 
56+     .ui-state-default  a , 
57+     .ui-state-default  a : link , 
58+     .ui-state-default  a : visited , 
59+     a .ui-button , 
60+     a : link .ui-button , 
61+     a : visited .ui-button , 
62+     .ui-button  {
63+         color :  # f1f1f1!important ;
64+     }
65+ 
66+     .ui-widget-content  a  {
67+         color :  var (--link-fg ) !important ;
68+     }
69+ 
1170}
1271
1372@media  (prefers-color-scheme :  dark) {
@@ -29,8 +88,8 @@ a.ui-button:active,
2988    .ui-button , 
3089    html  .ui-button .ui-state-disabled : hover , 
3190    html  .ui-button .ui-state-disabled : active  {
32-         background-color :  var (--border-color  ) !important ;
33-         border-color :  var (--border-color  ) !important ;
91+         background-color :  var (--secondary  ) !important ;
92+         border-color :  var (--secondary  ) !important ;
3493    }
3594
3695    .ui-state-default .ui-state-active  {
0 commit comments