N°2847 - Alert: Improve spacing when followed by another alter or something else

This commit is contained in:
Molkobain
2020-10-14 16:04:53 +02:00
parent 4eebb538df
commit e7f01e7597

View File

@@ -17,7 +17,8 @@
*/
/* SCSS variables */
$ibo-alert--spacing-top: 6px !default;
$ibo-alert--spacing-top--with-same-block: 6px !default;
$ibo-alert--spacing-top--with-other-blocks: 16px !default;
$ibo-alert--padding-y: 18px !default;
$ibo-alert--padding-x: 20px !default;
$ibo-alert--border-radius: $ibo-border-radius-300 !default;
@@ -87,6 +88,11 @@ $ibo-alert-colors: (
}
}
/* Spacing between alert blocks */
.ibo-alert + .ibo-alert {
margin-top: $ibo-alert--spacing-top;
margin-top: $ibo-alert--spacing-top--with-same-block;
}
/* Spacing between an alert block and something else */
.ibo-alert + :not(.ibo-alert) {
margin-top: $ibo-alert--spacing-top--with-other-blocks;
}