generic .box__top flex gutters
This commit is contained in:
parent
4af334a0aa
commit
e1cd85d16a
|
@ -5,6 +5,12 @@ $top-height: 3.2rem;
|
|||
.study-index {
|
||||
.box__top {
|
||||
@extend %flex-center;
|
||||
|
||||
/* 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: 0 0 -1em -1em;
|
||||
> * { margin: 0 0 1em 1em; }
|
||||
/* end of flex gutter hack */
|
||||
|
||||
.search {
|
||||
flex: 3 1 auto;
|
||||
display: flex;
|
||||
|
|
|
@ -17,16 +17,17 @@ $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: 0 0 -1em -1em;
|
||||
> * { margin: 0 0 1em 1em; }
|
||||
/* end of flex gutter hack */
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
&__actions {
|
||||
@extend %flex-wrap;
|
||||
|
||||
/* 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: 0 0 1em 1em; }
|
||||
/* end of flex gutter hack */
|
||||
|
||||
.button {
|
||||
@extend %flex-center;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue