/* Layout only: each widget keeps its vendored styles and theme tokens. */ body.showcase-layout-preview { padding: 0; } .demo-shell { min-height: 640px; display: flex; flex-direction: column; background: var(--sn-color-bg); } .demo-shell > .sn-header-bar { flex-wrap: wrap; gap: 1rem; } .demo-shell .sn-header-nav { flex-wrap: wrap; } .demo-dashboard { display: grid; grid-template-columns: auto minmax(0, 1fr); flex: 1; } /* The sidebar brings its own width, border and background; the column only holds it to the full height. */ .demo-sidebar { display: grid; } /* A header search needs no label line of its own: the field's label and hint are kept for assistive technology only. */ .demo-shell .sn-header-bar .sn-label, .demo-shell .sn-header-bar .sn-hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .demo-main { min-width: 0; padding: 1.5rem; display: grid; gap: 1.5rem; align-content: start; } .demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .demo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .demo-focused { width: min(100% - 2rem, 640px); margin: 2rem auto; flex: 1; display: grid; gap: 1.5rem; align-content: start; } .demo-block { width: 100%; min-height: 560px; padding: 1.5rem; display: grid; gap: 1.5rem; align-content: start; } .demo-sign-in { width: min(100% - 2rem, 420px); min-height: 0; margin: 2rem auto; padding: 0; } .demo-form { display: grid; gap: 1rem; } .demo-table-scroll { overflow-x: auto; } .demo-mobile-nav { display: none; } .demo-shell .sn-footer { margin-top: auto; } @media (max-width: 767px) { .demo-dashboard { grid-template-columns: minmax(0, 1fr); } .demo-sidebar { display: none; } .demo-mobile-nav { display: block; } .demo-main, .demo-block { padding: 1rem; } .demo-grid, .demo-cards { grid-template-columns: minmax(0, 1fr); } .demo-shell .sn-header-nav { gap: .5rem; } }