forked from extern/egroupware
Etemplate: Set a gap instead of using margin
This commit is contained in:
parent
7212b5dd51
commit
a7a84df7e5
@ -28,10 +28,10 @@ export class Et2Box extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
|||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
gap: 5px;
|
||||||
}
|
}
|
||||||
/* CSS for child elements */
|
/* CSS for child elements */
|
||||||
::slotted(*) {
|
::slotted(*) {
|
||||||
margin: 0px 2px;
|
|
||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
}
|
}
|
||||||
::slotted(img) {
|
::slotted(img) {
|
||||||
@ -126,7 +126,7 @@ export class Et2VBox extends Et2Box
|
|||||||
css`
|
css`
|
||||||
:host > div {
|
:host > div {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}`
|
}`
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user