diff --git a/resources/css/components.css b/resources/css/components.css index ea00ad5f..a4ed3014 100644 --- a/resources/css/components.css +++ b/resources/css/components.css @@ -40,6 +40,7 @@ @import './components/search.css'; @import './components/table.css'; @import './components/sort-header.css'; +@import './components/pagination.css'; /* Containment */ diff --git a/resources/css/components/pagination.css b/resources/css/components/pagination.css new file mode 100644 index 00000000..e26ea35f --- /dev/null +++ b/resources/css/components/pagination.css @@ -0,0 +1,87 @@ +/* + * The paginators, Laravel's and Livewire's, drawn in M3 (resources/views/pagination/**): the package + * puts its views in front of the frameworks' `tailwind` and `simple-tailwind` ones, whose names they + * keep. + * + * 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 in on-surface with the state layer, the + * focus ring and a 48px target (`md-state-layer`, `md-focus-ring`, `md-touch-target`, + * foundation/interaction.css); 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