Skip to content

Commit ee9db94

Browse files
fix(spp_dci_server_disability): cover remaining blue selectors in DR theme
The first pass missed three places where the OpenSPP blue still leaked through on the DR's backend: - .mk_apps_sidebar_panel (sidebar base background — muk_web_appsbar paints this from $mk-appbar-background, which spp_base_common overrides to brand blue). - .o_main_navbar .o_menu_sections .o_nav_entry / .o_main_navbar .o_menu_sections .dropdown-toggle (per-section menu-entry backgrounds — theme_openspp_muk uses descendant selectors that the existing direct-child override didn't match). - .btn-primary / .btn-primary:hover (action buttons). After the fix, the DR backend is green throughout the chrome operators look at during the demo while the SP stays on default OpenSPP blue.
1 parent 6459fd0 commit ee9db94

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

spp_dci_server_disability/static/src/scss/dr_theme.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,42 @@ $dr-navbar-bg-hover: #1b5e20;
2424
background-color: $dr-navbar-bg !important;
2525
}
2626

27+
// theme_openspp_muk paints each section link's background blue with a
28+
// descendant selector (no `>`), so the direct-child rules above miss it.
29+
// Override here so menu entries (e.g. "Disability", "Browse All (Audit)")
30+
// pick up the green background.
31+
.o_main_navbar .o_menu_sections .o_nav_entry,
32+
.o_main_navbar .o_menu_sections .dropdown-toggle {
33+
background-color: $dr-navbar-bg !important;
34+
}
35+
2736
// Apps sidebar (MUK theme).
37+
//
38+
// muk_web_appsbar sets the base background on .mk_apps_sidebar_panel and
39+
// the hover/active background on the menu items. We override both so the
40+
// sidebar tracks the navbar's green palette.
41+
.mk_apps_sidebar_panel {
42+
background-color: $dr-navbar-bg !important;
43+
}
44+
2845
.mk_apps_sidebar_panel .mk_apps_sidebar .mk_apps_sidebar_menu > li > a:hover {
2946
background-color: $dr-navbar-bg-hover !important;
3047
}
3148

3249
.mk_apps_sidebar_panel .mk_apps_sidebar .mk_apps_sidebar_menu > li.active > a {
3350
background-color: $dr-navbar-bg-hover !important;
3451
}
52+
53+
// Primary buttons. spp_base_common paints these blue (#3264c8); we
54+
// flip them green so action buttons read as DR-side at a glance.
55+
.btn-primary {
56+
background-color: $dr-navbar-bg !important;
57+
border-color: $dr-navbar-bg !important;
58+
color: #ffffff !important;
59+
}
60+
61+
.btn-primary:hover {
62+
background-color: $dr-navbar-bg-hover !important;
63+
border-color: $dr-navbar-bg-hover !important;
64+
color: #ffffff !important;
65+
}

0 commit comments

Comments
 (0)