fix(filament): normalize admin sidebar layout
This commit is contained in:
parent
1ebcb95bff
commit
11bc06a8e4
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"resources/css/app.css": {
|
"resources/css/app.css": {
|
||||||
"file": "assets/app-tgbzBtFO.css",
|
"file": "assets/app-BNZtBrtu.css",
|
||||||
"src": "resources/css/app.css",
|
"src": "resources/css/app.css",
|
||||||
"isEntry": true
|
"isEntry": true
|
||||||
},
|
},
|
||||||
"resources/css/filament/admin/theme.css": {
|
"resources/css/filament/admin/theme.css": {
|
||||||
"file": "assets/theme-EkdZtrh_.css",
|
"file": "assets/theme-TJK5AzNU.css",
|
||||||
"src": "resources/css/filament/admin/theme.css",
|
"src": "resources/css/filament/admin/theme.css",
|
||||||
"isEntry": true
|
"isEntry": true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -14,27 +14,26 @@ .fi-main-ctn {
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
height: 100vh;
|
height: auto;
|
||||||
height: 100dvh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fi-main-ctn>main {
|
.fi-main-ctn>main {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fi-sidebar {
|
.fi-sidebar {
|
||||||
position: sticky !important;
|
position: static !important;
|
||||||
top: 0 !important;
|
top: auto !important;
|
||||||
align-self: flex-start !important;
|
align-self: stretch !important;
|
||||||
height: 100vh !important;
|
height: auto !important;
|
||||||
height: 100dvh !important;
|
overflow: visible !important;
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fi-sidebar-header {
|
.fi-sidebar-header {
|
||||||
position: sticky !important;
|
position: static !important;
|
||||||
top: 0 !important;
|
top: auto !important;
|
||||||
z-index: 20 !important;
|
z-index: 20 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -55,12 +54,37 @@ .netgescon-footer {
|
||||||
.fi-sidebar-nav,
|
.fi-sidebar-nav,
|
||||||
.fi-sidebar-nav-groups {
|
.fi-sidebar-nav-groups {
|
||||||
row-gap: calc(var(--spacing) * 1.5) !important;
|
row-gap: calc(var(--spacing) * 1.5) !important;
|
||||||
overflow-y: auto !important;
|
overflow: visible !important;
|
||||||
max-height: calc(100vh - 5rem) !important;
|
max-height: none !important;
|
||||||
max-height: calc(100dvh - 5rem) !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 64rem) {
|
@media (min-width: 64rem) {
|
||||||
|
.fi-main-ctn {
|
||||||
|
height: 100vh;
|
||||||
|
height: 100dvh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-sidebar {
|
||||||
|
position: sticky !important;
|
||||||
|
top: 0 !important;
|
||||||
|
align-self: flex-start !important;
|
||||||
|
height: 100vh !important;
|
||||||
|
height: 100dvh !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-sidebar-header {
|
||||||
|
position: sticky !important;
|
||||||
|
top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-sidebar-nav,
|
||||||
|
.fi-sidebar-nav-groups {
|
||||||
|
overflow-y: auto !important;
|
||||||
|
max-height: calc(100vh - 5rem) !important;
|
||||||
|
max-height: calc(100dvh - 5rem) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.fi-body.fi-body-has-navigation {
|
.fi-body.fi-body-has-navigation {
|
||||||
overflow-x: hidden !important;
|
overflow-x: hidden !important;
|
||||||
overflow-y: auto !important;
|
overflow-y: auto !important;
|
||||||
|
|
@ -108,12 +132,50 @@ @media (min-width: 64rem) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 63.998rem),
|
||||||
|
(hover: none) and (pointer: coarse) {
|
||||||
|
.fi-body.fi-body-has-navigation .fi-sidebar {
|
||||||
|
position: static !important;
|
||||||
|
top: auto !important;
|
||||||
|
left: auto !important;
|
||||||
|
bottom: auto !important;
|
||||||
|
width: 100% !important;
|
||||||
|
height: auto !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
border-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-body.fi-body-has-navigation .fi-topbar {
|
||||||
|
position: static !important;
|
||||||
|
top: auto !important;
|
||||||
|
left: auto !important;
|
||||||
|
right: auto !important;
|
||||||
|
width: auto !important;
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-body.fi-body-has-navigation .fi-main-ctn {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
width: 100% !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
padding-left: 0 !important;
|
||||||
|
overflow-x: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-body.fi-body-has-navigation .fi-main-ctn>main {
|
||||||
|
height: auto !important;
|
||||||
|
overflow-y: visible !important;
|
||||||
|
overflow-x: visible !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.fi-topbar {
|
.fi-topbar {
|
||||||
overflow-x: hidden !important;
|
overflow-x: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fi-topbar nav,
|
.fi-topbar nav,
|
||||||
.fi-topbar > div {
|
.fi-topbar>div {
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,72 +3,6 @@
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css">
|
||||||
<link rel="stylesheet" href="{{ asset('css/netgescon-admin.css') }}">
|
<link rel="stylesheet" href="{{ asset('css/netgescon-admin.css') }}">
|
||||||
<style>
|
<style>
|
||||||
.fi-sidebar {
|
|
||||||
position: sticky !important;
|
|
||||||
top: 0 !important;
|
|
||||||
align-self: flex-start !important;
|
|
||||||
height: 100vh !important;
|
|
||||||
height: 100dvh !important;
|
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-sidebar-header {
|
|
||||||
position: sticky !important;
|
|
||||||
top: 0 !important;
|
|
||||||
z-index: 20 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-sidebar-nav,
|
|
||||||
.fi-sidebar-nav-groups {
|
|
||||||
row-gap: calc(var(--spacing) * 1.5) !important;
|
|
||||||
overflow-y: auto !important;
|
|
||||||
max-height: calc(100vh - 5rem) !important;
|
|
||||||
max-height: calc(100dvh - 5rem) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 64rem) {
|
|
||||||
.fi-body.fi-body-has-navigation {
|
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-body.fi-body-has-navigation .fi-sidebar {
|
|
||||||
position: fixed !important;
|
|
||||||
top: 4.5rem !important;
|
|
||||||
left: 0 !important;
|
|
||||||
bottom: 0 !important;
|
|
||||||
width: 20rem !important;
|
|
||||||
height: calc(100vh - 4.5rem) !important;
|
|
||||||
height: calc(100dvh - 4.5rem) !important;
|
|
||||||
z-index: 40 !important;
|
|
||||||
border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
|
|
||||||
background: inherit !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-body.fi-body-has-navigation .fi-topbar {
|
|
||||||
position: fixed !important;
|
|
||||||
top: 0 !important;
|
|
||||||
left: 0 !important;
|
|
||||||
right: 0 !important;
|
|
||||||
width: 100% !important;
|
|
||||||
margin-left: 0 !important;
|
|
||||||
z-index: 50 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-body.fi-body-has-navigation .fi-main-ctn {
|
|
||||||
margin-left: 0 !important;
|
|
||||||
width: 100% !important;
|
|
||||||
padding-top: 4.5rem !important;
|
|
||||||
padding-left: 20rem !important;
|
|
||||||
box-sizing: border-box !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-body.fi-body-has-navigation .fi-main-ctn > main {
|
|
||||||
height: calc(100vh - 4.5rem) !important;
|
|
||||||
height: calc(100dvh - 4.5rem) !important;
|
|
||||||
overflow-y: auto !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.fi-sidebar-group-btn,
|
.fi-sidebar-group-btn,
|
||||||
.fi-sidebar-group-dropdown-trigger-btn {
|
.fi-sidebar-group-dropdown-trigger-btn {
|
||||||
min-height: auto !important;
|
min-height: auto !important;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user