tests / feature (8.4) (push) Successful in 2m0s
tests / feature (8.5) (push) Successful in 2m0s
tests / browser (chrome, chromium) (push) Failing after 8m3s
tests / browser (firefox, firefox) (push) Failing after 12m58s
tests / browser (safari, webkit) (push) Failing after 13m8s
Tailwind left the stack in 2.0.0, but the package still carried about 330 mentions of it. What the guard's Tailwind detection protected — a class that compiles to nothing — is now protected by a check that does not care where a dead class came from. DesignGuard: about 500 lines of Tailwind tables, scales, palettes and "2.0.0 replacement" hints give way to one check — a class a view or PHP file writes that neither the application's stylesheets nor the package's own declare. It catches a utility of any framework, a typo and a class whose rules were deleted alike, so it also found two classes ReStride draws nothing with. A stylesheet has to be in reach for it: the `.css` files among the scanned paths, or what the `missingStylesheets()` entry imports. The class reader no longer mistakes an array index for a class list (`$block['base']`), and it reads the array a class helper is given, where it read nothing before. The package's own three Tailwind self-guards go with it. Only their one unique check stays, as a test of its own: every `matchMedia` width in resources/js is an M3 breakpoint. The pagination views are `material.blade.php` and `simple-material.blade.php`; only Laravel's and Livewire's default theme names ever made them `tailwind`. The provider sets `Paginator`'s default views and switches `livewire.pagination_theme` to `material` when it is still Livewire's own default, so no application can forget the config; a theme an application chose, and a component's own `$paginationTheme` or `paginationView()`, still win. The rest is prose: the layer-order guidance for an application that still builds Tailwind, the Tailwind wording in the README, the Boost guidelines and the development skill, and about 25 "this used to be a Tailwind utility" comments, along with every "plan step NN" pointer into a gitignored folder. The reset keeps its credit, and NOTICE now carries it too. Feature suite 1159 passed, Chrome browser suite 299 passed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
89 lines
3.5 KiB
CSS
89 lines
3.5 KiB
CSS
/*
|
||
* The paginators, Laravel's and Livewire's, drawn in M3 (resources/views/pagination/**): named
|
||
* `material`/`simple-material`, put in front of the frameworks' own namespaces and set as
|
||
* Laravel's default view (`Paginator::defaultView()`/`defaultSimpleView()`) and, where Livewire
|
||
* still reads its own default, as its `pagination_theme`.
|
||
*
|
||
* The numbered paginator is a row: on its start, what the page holds in body-small on-surface-variant
|
||
* — "21–30 of 95", or "Page 3 of 10" below `medium` (600px), where the page numbers give way and only
|
||
* previous and next stay — and on its end the steps, 4px apart. A step is a 40px circle in label-large
|
||
* with tabular figures, M3's icon-button geometry: a live one (a link or a button) in on-surface,
|
||
* rendering the foundation's `md-state-layer`, `md-focus-ring` and `md-touch-target`
|
||
* (foundation/interaction.css) to reach the 48px target; the current page is the selected state,
|
||
* secondary-container, never the action colour — it is where you are, not what to do next; an
|
||
* unreachable one (`aria-disabled`) is on-surface at 38%. The chevrons mirror in a right-to-left page.
|
||
* The simple paginator is the same row holding two outlined buttons.
|
||
*
|
||
* [data-md-pagination] the <nav>
|
||
* [data-md-pagination-summary] [data-md-pagination-compact], [data-md-pagination-range]
|
||
* [data-md-pagination-steps]
|
||
* [data-md-pagination-step] aria-current="page", aria-disabled="true";
|
||
* [data-md-pagination-page] is a number, hidden below 600px
|
||
*/
|
||
|
||
@layer material.reset, material.tokens, material.base, material.layout, material.components, material.text, material.visibility;
|
||
|
||
@import './button.css';
|
||
@import './icon.css';
|
||
|
||
@layer material.components {
|
||
[data-md-pagination] {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: var(--md-sys-measurement-space200);
|
||
}
|
||
|
||
[data-md-pagination-summary] {
|
||
color: var(--md-sys-color-on-surface-variant);
|
||
font: var(--md-sys-typescale-body-sm);
|
||
letter-spacing: var(--md-sys-typescale-body-sm-tracking);
|
||
font-variation-settings: normal;
|
||
}
|
||
|
||
[data-md-pagination-steps] {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--md-sys-measurement-space50);
|
||
}
|
||
|
||
[data-md-pagination-step] {
|
||
display: grid;
|
||
place-items: center;
|
||
width: var(--md-sys-measurement-space500);
|
||
height: var(--md-sys-measurement-space500);
|
||
border-radius: var(--md-sys-shape-corner-full);
|
||
color: var(--md-sys-color-on-surface);
|
||
font: var(--md-sys-typescale-label-lg);
|
||
letter-spacing: var(--md-sys-typescale-label-lg-tracking);
|
||
font-variation-settings: normal;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
:is(a, button)[data-md-pagination-step] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
[data-md-pagination-step][aria-current='page'] {
|
||
background-color: var(--md-sys-color-secondary-container);
|
||
color: var(--md-sys-color-on-secondary-container);
|
||
}
|
||
|
||
[data-md-pagination-step][aria-disabled='true'] {
|
||
color: color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-disabled-content-opacity) * 100%), transparent);
|
||
}
|
||
|
||
@media (width < 600px) {
|
||
[data-md-pagination-page],
|
||
[data-md-pagination-range] {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@media (width >= 600px) {
|
||
[data-md-pagination-compact] {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|