Skip to content

Commit

Permalink
fix css theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnb14 committed Oct 5, 2024
1 parent f2e093c commit ba6f81f
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 11 deletions.
79 changes: 69 additions & 10 deletions admin_extended/static/admin_extended/css/jquery-ui.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,72 @@
/* jquery UI
========================================================================================= */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
background-color: var(--primary) !important;
border-color: var(--primary) !important;
html[data-theme="light"] {
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
background-color: var(--primary) !important;
border-color: var(--primary) !important;
}

}

@media (prefers-color-scheme: light) {
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
background-color: var(--primary) !important;
border-color: var(--primary) !important;
}
}


html[data-theme="dark"] {
.ui-widget-content {
color: var(--body-fg) !important;
background-color: var(--body-bg) !important;
border-color: var(--hairline-color) !important;
}

.ui-widget-header {
background-color: var(--secondary) !important;
border-color: var(--secondary) !important;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
background-color: var(--secondary) !important;
border-color: var(--secondary) !important;
}

.ui-state-default.ui-state-active {
background: var(--primary) !important;
border-color: var(--primary) !important;
}

.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
color: #f1f1f1 !important;
}

.ui-widget-content a {
color: var(--link-fg) !important;
}

}

@media (prefers-color-scheme: dark) {
Expand All @@ -29,8 +88,8 @@ a.ui-button:active,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
background-color: var(--border-color) !important;
border-color: var(--border-color) !important;
background-color: var(--secondary) !important;
border-color: var(--secondary) !important;
}

.ui-state-default.ui-state-active {
Expand Down
4 changes: 4 additions & 0 deletions admin_extended/static/admin_extended/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ html[data-theme="light"] {
:root {
--breadcrumbs-bg: #255a73;
}
#nav-sidebar tr th a:link,
#nav-sidebar tr th a:visited {
color: #fff;
}

#nav-sidebar .current-model {
background: var(--breadcrumbs-bg);
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from setuptools import find_packages, setup

VERSION = '5.1.3'
VERSION = '5.1.4'
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()

Expand Down

0 comments on commit ba6f81f

Please sign in to comment.