From a71ace92cfe2a1d57233ce10c261bfcb7d329989 Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Mon, 13 Apr 2026 00:20:59 +0200 Subject: [PATCH] Add active_admin_sidebar toggle button styling Style the collapsible sidebar toggle button to match the theme: - Set top: 0 to align with sidebar panel (theme removes default margin) - Use theme accent color ($skinMainSecondColor) for button background Backward compatible - styles only apply when active_admin_sidebar gem is loaded. --- app/assets/stylesheets/wigu/active_admin_theme.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/assets/stylesheets/wigu/active_admin_theme.scss b/app/assets/stylesheets/wigu/active_admin_theme.scss index a8871fb..dbaf73a 100644 --- a/app/assets/stylesheets/wigu/active_admin_theme.scss +++ b/app/assets/stylesheets/wigu/active_admin_theme.scss @@ -376,6 +376,15 @@ body.active_admin { padding: $skinTablePadding 12px $skinTablePadding 12px; } } + // active_admin_sidebar: align toggle button with sidebar section (no top margin in theme) + #active_admin_content.collapsible_sidebar .sidebar_toggle_btn { + top: 0; + background-color: $skinMainSecondColor; + &:hover { + background-color: lighten($skinMainSecondColor, 5%); + } + } + .sidebar_section.panel { background-image: none; box-shadow: none;