style: 使用 flex 避免超级块内的相邻子块发生外边距折叠 margin collapsing

This commit is contained in:
Jeffrey Chen 2024-12-21 22:06:21 +08:00
parent 6c36912631
commit e80b340f13

View file

@ -148,11 +148,13 @@
}
&.sb {
display: flex;
flex-direction: column;
padding: 0;
max-width: 100%;
&[data-sb-layout="col"] {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
column-gap: 1.5em;