Skip to content

Commit

Permalink
Merge pull request #45 from antonioandrade/apply-sidebar-classes-from…
Browse files Browse the repository at this point in the history
…-config

make sidebar template classes dynamic per config (as they should)
  • Loading branch information
pxpm authored Aug 15, 2023
2 parents 5f2a920 + 1a7e31c commit 481588e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/theme-coreuiv4.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'body' => 'app aside-menu-fixed sidebar-lg-show',
// Try sidebar-hidden, sidebar-fixed, sidebar-compact, sidebar-lg-show

'sidebar' => 'sidebar sidebar-pills bg-light',
'sidebar' => 'sidebar sidebar-dark sidebar-fixed bg-dark-gradient',
// Remove "sidebar-transparent" for standard sidebar look
// Try "sidebar-light" or "sidebar-dark" for dark/light links
// You can also add a background class like bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan
Expand Down
2 changes: 1 addition & 1 deletion resources/views/inc/sidebar.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if (backpack_auth()->check())
<div class="sidebar sidebar-dark sidebar-fixed bg-dark-gradient" id="sidebar">
<div class="{{ backpack_theme_config('classes.sidebar') }}" id="sidebar">
<div class="sidebar-brand d-none d-md-flex">
<a class="navbar-brand fs-6 text-decoration-none text-uppercase" href="{{ url(backpack_theme_config('home_link')) }}" title="{{ backpack_theme_config('project_name') }}">
{!! backpack_theme_config('project_logo') !!}
Expand Down

0 comments on commit 481588e

Please sign in to comment.