Only add margin att block end, not start on group elements.

This commit is contained in:
Fredrik Jonsson 2023-11-18 16:22:08 +01:00
commit 5ea8ebff46
2 changed files with 23 additions and 45 deletions

View file

@ -1,10 +1,10 @@
@each $name, $space in $spacing {
.mt--#{$name} {
@include margin-top($space);
@include margin-block-start($space);
}
.mb--#{$name} {
@include margin-bottom($space);
@include margin-block-end($space);
}
.mtb--#{$name} {

View file

@ -1,14 +1,14 @@
.zebra-table,
%zebra-table {
--padding: .5rem;
--cell-padding: .5rem;
@include respond-to-max(s) {
--padding: .3rem;
--cell-padding: .3rem;
}
th,
td {
padding: var(--padding);
padding: var(--cell-padding);
}
thead {