kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
0599a56d81
commit
e71e947046
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue