Skip to content

Commit ba6f81f

Browse files
author
Cuong Nguyen
committed
fix css theme
1 parent f2e093c commit ba6f81f

File tree

3 files changed

+74
-11
lines changed

3 files changed

+74
-11
lines changed

admin_extended/static/admin_extended/css/jquery-ui.css

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,72 @@
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 {

admin_extended/static/admin_extended/css/theme.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ html[data-theme="light"] {
3838
:root {
3939
--breadcrumbs-bg: #255a73;
4040
}
41+
#nav-sidebar tr th a:link,
42+
#nav-sidebar tr th a:visited {
43+
color: #fff;
44+
}
4145

4246
#nav-sidebar .current-model {
4347
background: var(--breadcrumbs-bg);

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from setuptools import find_packages, setup
33

4-
VERSION = '5.1.3'
4+
VERSION = '5.1.4'
55
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
66
README = readme.read()
77

0 commit comments

Comments
 (0)