The signed-in header is sticky from the md breakpoint up, so only the page content scrolls; on phones and at high zoom it still scrolls with the page, where a wrapped sticky header would take too much of the view. A small layout script sets scroll-padding-top to the header's height while it is sticky, so focused elements, anchors and the skip link target land below it (WCAG 2.4.11). Co-Authored-By: Claude Opus 5.5 <[email protected]>
45 lines
1.4 KiB
CSS
45 lines
1.4 KiB
CSS
@import 'tailwindcss';
|
|
@import '../../vendor/tallstackui/tallstackui/css/v4.css';
|
|
|
|
@plugin '@tailwindcss/forms';
|
|
|
|
@source '../../vendor/tallstackui/tallstackui/**/*.php';
|
|
@source '../views';
|
|
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
|
|
@source '../../storage/framework/views/*.php';
|
|
@source '../../app/Modules/**/*.blade.php';
|
|
@source '../../app/Providers/*.php';
|
|
@source '../../app/View/**/*.php';
|
|
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
/*
|
|
* The header always carries the .dark class, so anything that must follow the
|
|
* page theme itself (the theme toggle icon) uses page-dark: instead of dark:.
|
|
*/
|
|
@custom-variant page-dark (&:where(html.dark, html.dark *));
|
|
|
|
@theme {
|
|
--font-sans: Inter, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
|
|
/*
|
|
* TallStackUI's primary is indigo with solid buttons on primary-500, which
|
|
* is only 4.0:1 with their light text. WCAG 2.2 AA needs 4.5:1, so the
|
|
* shades from 500 up are moved one step darker.
|
|
*/
|
|
--color-primary-500: #4f46e5;
|
|
--color-primary-600: #4338ca;
|
|
--color-primary-700: #3730a3;
|
|
--color-primary-800: #312e81;
|
|
}
|
|
|
|
/* The sticky header's height (set by the layout), so focus and anchors land below it. */
|
|
html {
|
|
scroll-padding-top: var(--app-header-offset, 0px);
|
|
}
|
|
|
|
[x-cloak] {
|
|
display: none !important;
|
|
}
|