generic flex gutters hack
as suggested by MDN itself https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Mastering_Wrapping_of_Flex_Items#Creating_gutters_between_items
This commit is contained in:
parent
cb50b35766
commit
aea6357ec0
|
@ -16,6 +16,12 @@ $vp-max-width: 1200px;
|
|||
|
||||
&__top {
|
||||
@extend %flex-between, %box-padding;
|
||||
|
||||
/* flex gutters, waiting for row-gap to be implemented for flexbox. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Mastering_Wrapping_of_Flex_Items#Creating_gutters_between_items */
|
||||
margin-bottom: -1em;
|
||||
> * { margin-bottom: 1em; }
|
||||
/* end of flex gutter hack */
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue