style: 使用 flex 避免超级块内的相邻子块发生外边距折叠 margin collapsing
This commit is contained in:
parent
6c36912631
commit
e80b340f13
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue