Commit 2ea71c67 authored by lauriii's avatar lauriii
Browse files

Issue #2953340 by DuaelFr, WidgetsBurritos, utcwebdev: "Add Block" button is hidden by AdBlock Plus

parent e30e925a
.add-section { .new-section {
background-color: #f7f7f7; background-color: #f7f7f7;
width: 100%; width: 100%;
outline: 2px dashed #979797; outline: 2px dashed #979797;
...@@ -8,20 +8,20 @@ ...@@ -8,20 +8,20 @@
transition: visually-hidden 2s ease-out, height 2s ease-in; transition: visually-hidden 2s ease-out, height 2s ease-in;
} }
.add-section__link, .new-section__link,
.add-block__link { .new-block__link {
color: #787878; color: #787878;
border-bottom: none; border-bottom: none;
padding-left: 24px; padding-left: 24px;
background: url(../../../misc/icons/787878/plus.svg) transparent top left / 16px 16px no-repeat; background: url(../../../misc/icons/787878/plus.svg) transparent top left / 16px 16px no-repeat;
} }
.add-section__link:hover, .new-section__link:hover,
.add-section__link:active, .new-section__link:active,
.add-section__link:focus, .new-section__link:focus,
.add-block__link:hover, .new-block__link:hover,
.add-block__link:active, .new-block__link:active,
.add-block__link:focus { .new-block__link:focus {
border-bottom-style: none; border-bottom-style: none;
color: #000; color: #000;
} }
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
outline: 2px dashed #2f91da; outline: 2px dashed #2f91da;
} }
.layout-section .layout-builder--layout__region .add-block { .layout-section .layout-builder--layout__region .new-block {
background-color: #eff6fc; background-color: #eff6fc;
padding: 1.5em 0; padding: 1.5em 0;
text-align: center; text-align: center;
......
...@@ -161,7 +161,7 @@ protected function buildAddSectionLink(SectionStorageInterface $section_storage, ...@@ -161,7 +161,7 @@ protected function buildAddSectionLink(SectionStorageInterface $section_storage,
], ],
[ [
'attributes' => [ 'attributes' => [
'class' => ['use-ajax', 'add-section__link'], 'class' => ['use-ajax', 'new-section__link'],
'data-dialog-type' => 'dialog', 'data-dialog-type' => 'dialog',
'data-dialog-renderer' => 'off_canvas', 'data-dialog-renderer' => 'off_canvas',
], ],
...@@ -170,7 +170,7 @@ protected function buildAddSectionLink(SectionStorageInterface $section_storage, ...@@ -170,7 +170,7 @@ protected function buildAddSectionLink(SectionStorageInterface $section_storage,
], ],
'#type' => 'container', '#type' => 'container',
'#attributes' => [ '#attributes' => [
'class' => ['add-section'], 'class' => ['new-section'],
], ],
]; ];
} }
...@@ -226,7 +226,7 @@ protected function buildAdministrativeSection(SectionStorageInterface $section_s ...@@ -226,7 +226,7 @@ protected function buildAdministrativeSection(SectionStorageInterface $section_s
], ],
[ [
'attributes' => [ 'attributes' => [
'class' => ['use-ajax', 'add-block__link'], 'class' => ['use-ajax', 'new-block__link'],
'data-dialog-type' => 'dialog', 'data-dialog-type' => 'dialog',
'data-dialog-renderer' => 'off_canvas', 'data-dialog-renderer' => 'off_canvas',
], ],
...@@ -234,7 +234,7 @@ protected function buildAdministrativeSection(SectionStorageInterface $section_s ...@@ -234,7 +234,7 @@ protected function buildAdministrativeSection(SectionStorageInterface $section_s
), ),
]; ];
$build[$region]['layout_builder_add_block']['#type'] = 'container'; $build[$region]['layout_builder_add_block']['#type'] = 'container';
$build[$region]['layout_builder_add_block']['#attributes'] = ['class' => ['add-block']]; $build[$region]['layout_builder_add_block']['#attributes'] = ['class' => ['new-block']];
$build[$region]['layout_builder_add_block']['#weight'] = 1000; $build[$region]['layout_builder_add_block']['#weight'] = 1000;
$build[$region]['#attributes']['data-region'] = $region; $build[$region]['#attributes']['data-region'] = $region;
$build[$region]['#attributes']['class'][] = 'layout-builder--layout__region'; $build[$region]['#attributes']['class'][] = 'layout-builder--layout__region';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment