Restrict what default slot things <wa-page> adds spacing to, related to #331

This commit is contained in:
Lea Verou
2024-12-19 19:49:11 -05:00
parent 1a1847eeb5
commit 123a8c331f

View File

@@ -57,8 +57,12 @@ slot[name]:not([name='skip-to-content'], [name='navigation-toggle'])::slotted(*)
padding: var(--wa-space-m) var(--wa-space-3xl);
}
::slotted(:not([slot])) {
padding: var(--wa-space-3xl);
slot:not([name]) {
/* See #331 */
&::slotted(main),
&::slotted(section) {
padding: var(--wa-space-3xl);
}
}
::slotted([slot='main-footer']),