-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Block] ColumnsAffects the Columns BlockAffects the Columns Block[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Hi guys,
Could you consider to add columns block gutter size option so we can be able to set space between columns item?
Possible solution:
- To add additional class on wp-block-columns element like you set for columns size, for example .normal-gutter
- SCSS solution
$columns-gutter-label: ('no', 'normal', 'large');
$columns-gutter-size: (0, 15, 25);
.wp-block-columns {
@for $i from 0 to length($columns-gutter-label) {
&.#{nth($columns-gutter-label,$i+1)}-gutter {
$gutter-size: nth($columns-gutter-size, $i+1);
@if ($gutter-size != 0) {
margin: 0 -#{$gutter-size}px;
> .wp-block-column {
padding: 0 #{$gutter-size}px;
}
}
}
}
}
- CSS results
.wp-block-columns.normal-gutter {
margin: 0 -15px;
}
.wp-block-columns.normal-gutter > .wp-block-column {
padding: 0 15px;
}
.wp-block-columns.large-gutter {
margin: 0 -25px;
}
.wp-block-columns.large-gutter > .wp-block-column {
padding: 0 25px;
}
- Live results will be https://www.screencast.com/t/9CLHYaHGfg0U
Best regards,
Nenad
manuel-84, sokratesagogo, skorasaurus and Jabe64
Metadata
Metadata
Assignees
Labels
[Block] ColumnsAffects the Columns BlockAffects the Columns Block[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Projects
Status
✅ Done