margin-top:var(--space-m);/* Bottom margin will be added by the child elements: because of we use flex display here, our margins won't collapse. */
margin-block-start:var(--space-m);/* Bottom margin will be added by the child elements: because of we use flex display here, our margins won't collapse. */
}
.form-managed-file__meta.form-element{
width:100%;
}
/**
* In tables, this should be inline-flex. This is needed to make this element be
* pushed to a new line, to the bottom of the drag handle.
*/
* Limiting the width of form items inside the meta element.
*/
.form-managed-file__meta.form-item{
max-width:var(--file-widget-form-item-max-width);
margin-block:0var(--space-m);/* Top margin is added by the parent element */
/**
* Reduce the bottom margin of the last 'meta' form-item for field multiple
margin-block-start:var(--space-m);/* Bottom margin will be added by the child elements: because of we use flex display here, our margins won't collapse. */
&.form-element{
width:100%;
}
/**
* Limiting the width of form items inside the meta element.
*/
&.form-item{
max-width:var(--file-widget-form-item-max-width);
margin-block:0var(--space-m);/* Top margin is added by the parent element */
/**
* Reduce the bottom margin of the last 'meta' form-item for field multiple
* tables.
*/
&:last-child{
margin-block-end:var(--space-xs);
}
}
@nest.draggable.form-managed-file.has-value&{
/**
* In tables, this should be inline-flex. This is needed to make this element be
* pushed to a new line, to the bottom of the drag handle.
*/
display:inline-flex;
}
}
/**
...
...
@@ -89,24 +97,20 @@
.form-managed-file__image-preview{
flex:00auto;
max-width:100%;
margin-bottom:var(--space-m);
}
margin-block-end:var(--space-m);
/* Add some 'end' margin if there are other meta inputs. */