Skip to content

Commit

Permalink
Fix admin menu background color on small screen. (#14434)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Oct 5, 2023
1 parent 7e1bd5c commit 00573c0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,9 @@ body:not(.left-sidebar-compact) {

// fixing a flickering that occurs on compact leftbar while icons load.
html:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item-label {
background-color: $gray-100 !important;
background-color: var(--oc-admin-menu-bg-color, $gray-100) !important;
}

// Layout 5 : leftbar compactor button
// -----------------------------------
.leftbar-compactor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@include color-mode(dark) {
--oc-scrollbar-color: #76787A;
--oc-admin-menu-bg-color: var(--bs-dark-bg);
--oc-admin-menu-bg-color: var(--bs-dark);

@import "badge";
@import "bootstrap-select";
Expand Down
10 changes: 6 additions & 4 deletions src/OrchardCore.Themes/TheAdmin/Views/Layout-Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
</head>
<body>
<div class="d-flex align-items-center justify-content-center h-100">
@await RenderSectionAsync("Header", required: false)
@await RenderSectionAsync("Messages", required: false)
<div class="container-fluid">
@await RenderSectionAsync("Header", required: false)
@await RenderSectionAsync("Messages", required: false)

<div class="auth-wrapper">
@await RenderBodyAsync()
<div class="auth-wrapper">
@await RenderBodyAsync()
</div>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css
Original file line number Diff line number Diff line change
Expand Up @@ -9272,7 +9272,7 @@ body:not(.left-sidebar-compact) #ta-left-sidebar #filter:focus {
}

html:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item-label {
background-color: #f8f9fa !important;
background-color: var(--oc-admin-menu-bg-color, #f8f9fa) !important;
}

.leftbar-compactor {
Expand Down Expand Up @@ -9751,7 +9751,7 @@ textarea.form-control.input-validation-error {

[data-bs-theme=dark] {
--oc-scrollbar-color: #76787A;
--oc-admin-menu-bg-color: var(--bs-dark-bg);
--oc-admin-menu-bg-color: var(--bs-dark);
}
[data-bs-theme=dark] .ta-badge {
background-color: var(--bs-dark);
Expand Down

Large diffs are not rendered by default.

0 comments on commit 00573c0

Please sign in to comment.