add diffent border color on the root block of the builder

add default class in blocks
This commit is contained in:
Simon Vieille 2024-05-13 09:26:31 +02:00
parent 8044ff3605
commit 4eb13a4022
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 5 additions and 3 deletions

View file

@ -6,7 +6,7 @@ abstract class BuilderBlock
{
protected string $name;
protected string $label;
protected ?string $class = null;
protected ?string $class = 'col-12';
protected ?string $category = null;
protected array $settings = [];
protected array $widgets = [];

View file

@ -27,8 +27,6 @@ class BuilderType extends AbstractType
parent::configureOptions($resolver);
$resolver->setDefaults([
'allow_add' => true,
'allow_remove' => true,
'compound' => false,
]);
}

View file

@ -769,6 +769,10 @@ label.required::after {
background: rgba(map-get($theme-colors, 'dark-blue'), 0.02);
}
> .block {
border: 1px solid map-get($theme-colors, 'dark-blue');
}
.block-header {
.block-header-item {
font-size: 12px;