diff --git a/core/modules/block_place/block_place.libraries.yml b/core/modules/block_place/block_place.libraries.yml new file mode 100644 index 0000000..38a32c7 --- /dev/null +++ b/core/modules/block_place/block_place.libraries.yml @@ -0,0 +1,5 @@ +drupal.block_place: + version: VERSION + css: + theme: + css/block-place.css: {} diff --git a/core/modules/block_place/css/block-place.css b/core/modules/block_place/css/block-place.css new file mode 100644 index 0000000..204364b --- /dev/null +++ b/core/modules/block_place/css/block-place.css @@ -0,0 +1,15 @@ +.block-region { + background-color: #ff6; + margin: 4px; + margin-bottom: 4px; + padding: 3px 5px; +} + +.block-region a { + white-space: pre; + margin: 0 0 0 1em; +} + +[dir="rtl"] .block-region a { + margin: 0 1em 0 0; +} diff --git a/core/modules/block_place/src/Plugin/DisplayVariant/PlaceBlockPageVariant.php b/core/modules/block_place/src/Plugin/DisplayVariant/PlaceBlockPageVariant.php index cd7c566..c53028b 100644 --- a/core/modules/block_place/src/Plugin/DisplayVariant/PlaceBlockPageVariant.php +++ b/core/modules/block_place/src/Plugin/DisplayVariant/PlaceBlockPageVariant.php @@ -119,7 +119,7 @@ public function build() { ]; $build[$region] = ['block_place_operations' => $operations] + $build[$region]; } - + $build['#attached']['library'][] = 'block_place/drupal.block_place'; return $build; }