@@ -2,13 +2,12 @@ import { createStyles } from '@primereact/styles/utils';
22import type { SidebarRootInstance } from '@primereact/types/primitive/sidebar' ;
33
44const theme = /*css*/ `
5- .p-sidebar { position: relative; z-index: 20; display: none; color: light-dark(var(--p-surface-700), var(--p-surface-200)); }
5+ .p-sidebar { position: relative; z-index: 20; color: light-dark(var(--p-surface-700), var(--p-surface-200)); }
66 .p-sidebar[data-overlay] { z-index: 30; }
7- @media (min-width: 768px) { .p-sidebar { display: block; } }
87 .p-sidebar[data-collapsible-mode="none"] { display: flex; width: var(--sidebar-width); flex-direction: column; background-color: light-dark(var(--p-surface-0), var(--p-surface-950)); }
98 .p-sidebar[data-collapsible-mode="none"][data-variant="inset"] { background-color: light-dark(var(--p-surface-50), var(--p-surface-900)); }
109
11- .p-sidebar-spacer { position: relative; background: transparent; transition: width 250ms cubic-bezier(.4, 0, .2, 1); }
10+ .p-sidebar-spacer { position: relative; flex-shrink: 0; background: transparent; transition: width 250ms cubic-bezier(.4, 0, .2, 1); }
1211 .p-sidebar:not([data-overlay]) > .p-sidebar-spacer { width: var(--sidebar-width); }
1312 .p-sidebar[data-collapsible="offcanvas"]:not([data-overlay]) > .p-sidebar-spacer { width: 0; }
1413 .p-sidebar[data-collapsible="icon"]:not([data-overlay]) > .p-sidebar-spacer { width: var(--sidebar-width-icon); }
@@ -20,8 +19,7 @@ const theme = /*css*/ `
2019 .p-sidebar[data-overlay][data-variant="inset"]:not([data-collapsible-mode="offcanvas"]) > .p-sidebar-spacer { width: calc(var(--sidebar-width-icon) + 0.5rem); }
2120 .p-sidebar[data-side="right"] > .p-sidebar-spacer { transform: rotate(180deg); }
2221
23- .p-sidebar-panel { position: absolute; inset-block: 0; z-index: 10; display: none; height: 100%; width: var(--sidebar-width); transition: left 250ms cubic-bezier(.4, 0, .2, 1), right 250ms cubic-bezier(.4, 0, .2, 1), width 250ms cubic-bezier(.4, 0, .2, 1); }
24- @media (min-width: 768px) { .p-sidebar-panel { display: flex; } }
22+ .p-sidebar-panel { position: absolute; inset-block: 0; z-index: 10; display: flex; height: 100%; width: var(--sidebar-width); transition: left 250ms cubic-bezier(.4, 0, .2, 1), right 250ms cubic-bezier(.4, 0, .2, 1), width 250ms cubic-bezier(.4, 0, .2, 1); }
2523 .p-sidebar[data-overlay] .p-sidebar-panel { z-index: 20; }
2624 .p-sidebar[data-side="left"] .p-sidebar-panel { left: 0; }
2725 .p-sidebar[data-side="left"][data-collapsible="offcanvas"] .p-sidebar-panel { left: calc(var(--sidebar-width) * -1); }
0 commit comments