Plan step 36 (containment group): <x-divider> moves its class lists into resources/css/components/divider.css, keyed on data-md-divider, data-md-orientation, data-md-inset/middle and data-md-divider-heading/ -text for the subheader form (DividerTokens.kt; docs/reference/m3 § Divider). Imported from the Containment block of components.css. Hooks renamed: none of divider's own (it had no data-* hooks before), but its rendered attribute order moved data-md-* ahead of role/aria-*, which ToolbarTest.php's regex for a toolbar's vertical divider depended on; fixed in the same commit. form.css picks up the @import './divider.css' its TODO(step 36) marker was waiting on, since form.blade.php renders <x-divider> and divider.css now carries the material.components layer. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
38 lines
1.4 KiB
CSS
38 lines
1.4 KiB
CSS
/*
|
|
* <x-form>: its fields in one column, and its actions at the foot
|
|
* (resources/views/components/form.blade.php).
|
|
*
|
|
* The column is a one-track grid whose track is `minmax(0, 1fr)`: a bare grid's implicit column
|
|
* floors at its content's min-content, so on a phone a wide field would push the form past its
|
|
* pane. Rows take their content's height. 16px (`space200`) between fields, because a text field
|
|
* floats its label half above its outline and any less lets the hint under one field run into the
|
|
* label of the next.
|
|
*
|
|
* The actions wrap, end-aligned, 8px (`space100`) apart — M3's gap between buttons in a row. A
|
|
* caller's class on the `actions` slot lands on the row and outranks this layer.
|
|
*
|
|
* [data-md-form] the <form>
|
|
* [data-md-form-actions] the row of actions, under the divider when `separator` asks for one
|
|
*/
|
|
|
|
@layer material.reset, material.tokens, material.base, material.layout, material.components, material.text, material.visibility;
|
|
|
|
@import './divider.css';
|
|
|
|
@layer material.components {
|
|
[data-md-form] {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
grid-auto-rows: min-content;
|
|
gap: var(--md-sys-measurement-space200);
|
|
}
|
|
|
|
[data-md-form-actions] {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: var(--md-sys-measurement-space100);
|
|
}
|
|
}
|