Files
filament/packages/panels/resources/css/components/layout.css
T
Nolan NordlundandDan Harrin e8f47efa46 User menu and search in sidebar when topbar is disabled (#17048)
* Added user menu to sidebar

* Toggle sidebar

* Improved user menu collapsed styling

* Improved collapse behavior

* Restored missing alias

* Add global search if no topbar

* Improved collapse, added search to sidebar

* Styling

* Collapse

* Adding notification trigger to sidebar

* Use h-dvh

* cs & build

* start cleaning up

* remove new lang string

* move tenant menu and global search outside of fi-sidebar-nav

* notifications refactor

* clean up user menu

* clean up new collapse sidebar button

* clean up

* Update topbar.blade.php

* Update sidebar.blade.php

* docs

* final fixes

* fix alignment and button visibility issues

* Update theme.css

* fix collapse button alignment

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-09-28 21:14:04 +01:00

165 lines
2.9 KiB
CSS

html.fi {
@apply min-h-dvh;
}
.fi-body {
@apply min-h-dvh bg-gray-50 font-normal text-gray-950 antialiased dark:bg-gray-950 dark:text-white;
&.fi-body-has-sidebar-collapsible-on-desktop,
&.fi-body-has-sidebar-fully-collapsible-on-desktop {
& .fi-main-ctn {
@apply min-h-[calc(100dvh-4rem)] opacity-0 transition-all;
}
}
& > .fi-layout-sidebar-toggle-btn-ctn {
@apply ps-5 pt-5;
&.lg\:fi-hidden {
@apply lg:hidden;
}
}
&.fi-body-has-navigation:not(
.fi-body-has-sidebar-collapsible-on-desktop
):not(.fi-body-has-sidebar-fully-collapsible-on-desktop):not(
.fi-body-has-top-navigation
) {
& .fi-main-ctn {
@apply opacity-0;
}
}
&.fi-body-has-top-navigation,
&:not(.fi-body-has-navigation) {
& .fi-main-ctn {
@apply flex min-h-[calc(100dvh-4rem)];
}
}
&:not(.fi-body-has-topbar) {
& .fi-main-ctn {
@apply flex min-h-dvh;
}
}
}
.fi-layout {
@apply flex h-full w-full overflow-x-clip;
}
.fi-main-ctn {
@apply w-screen flex-1 flex-col;
}
.fi-main {
@apply mx-auto h-full w-full px-4 md:px-6 lg:px-8;
}
.fi-main,
.fi-simple-main {
&.fi-width-xs {
@apply max-w-xs;
}
&.fi-width-sm {
@apply max-w-sm;
}
&.fi-width-md {
@apply max-w-md;
}
&.fi-width-lg {
@apply max-w-lg;
}
&.fi-width-xl {
@apply max-w-xl;
}
&.fi-width-2xl {
@apply max-w-2xl;
}
&.fi-width-3xl {
@apply max-w-3xl;
}
&.fi-width-4xl {
@apply max-w-4xl;
}
&.fi-width-5xl {
@apply max-w-5xl;
}
&.fi-width-6xl {
@apply max-w-6xl;
}
&.fi-width-7xl {
@apply max-w-7xl;
}
&.fi-width-full {
@apply max-w-full;
}
&.fi-width-min {
@apply max-w-min;
}
&.fi-width-max {
@apply max-w-max;
}
&.fi-width-fit {
@apply max-w-fit;
}
&.fi-width-prose {
@apply max-w-prose;
}
&.fi-width-screen-sm {
@apply max-w-screen-sm;
}
&.fi-width-screen-md {
@apply max-w-screen-md;
}
&.fi-width-screen-lg {
@apply max-w-screen-lg;
}
&.fi-width-screen-xl {
@apply max-w-screen-xl;
}
&.fi-width-screen-2xl {
@apply max-w-screen-2xl;
}
&.fi-width-screen {
@apply fixed inset-0;
}
}
.fi-simple-layout {
@apply flex min-h-dvh flex-col items-center;
}
.fi-simple-layout-header {
@apply absolute end-0 top-0 flex h-16 items-center gap-x-4 pe-4 md:pe-6 lg:pe-8;
}
.fi-simple-main-ctn {
@apply flex w-full grow items-center justify-center;
}
.fi-simple-main {
@apply my-16 w-full bg-white px-6 py-12 shadow-xs ring-1 ring-gray-950/5 sm:rounded-xl sm:px-12 dark:bg-gray-900 dark:ring-white/10;
}