Add base styling for footer actions to support simple customisations

- Fixes #11629
- Relates to clean up done as part of #11629 which removed a lot of styling for footer actions which appeared to be unused.
- Re-add some base styling to support the ability for basic customisations where buttons are added within the `extra_footer_actions` block.
pull/11751/head
LB Johnston 2024-03-12 07:21:22 +10:00 zatwierdzone przez Sage Abdullah
rodzic 0599a56d81
commit e71e947046
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 21 dodań i 2 usunięć

Wyświetl plik

@ -85,12 +85,31 @@
width: 100%;
@include media-breakpoint-up(sm) {
width: 250px;
width: theme('spacing.64');
}
&--primary {
// Support basic layout support for items added via `extra_footer_actions`
align-items: stretch;
display: grid;
gap: theme('spacing.2');
grid-auto-flow: column;
> * {
// Reset the margin on any .button sibling elements
height: auto;
margin-inline-start: initial;
}
@include media-breakpoint-up(sm) {
width: 310px;
min-width: theme('spacing.80');
width: max-content;
> *:first-child {
// Ensure the first child (the dropdown action usually) is always wide
min-width: theme('spacing.56');
}
}
}
}