Browse code

Use distinct backend css to override some backend css restrictions for the wrapper

Benjamin Roth authored on05/05/2025 15:30:02
Showing4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,4 @@
1
+.content-background-wrapper .content-background-wrapper-bg img {
2
+  max-width: 100%;
3
+  padding: 0;
4
+}
0 5
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+.content-background-wrapper .content-background-wrapper-bg img{max-width:100%;padding:0}
0 2
\ No newline at end of file
1 3
new file mode 100644
... ...
@@ -0,0 +1,8 @@
1
+.content-background-wrapper {
2
+  .content-background-wrapper-bg {
3
+    img {
4
+      max-width: 100%;
5
+      padding: 0;
6
+    }
7
+  }
8
+}
... ...
@@ -30,6 +30,7 @@ class KernelRequestSubscriber implements EventSubscriberInterface
30 30
         $GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergcoretools/css/background-wrapper.min.css|static';
31 31
 
32 32
         if ($this->scopeMatcher->isBackendRequest($request)) {
33
+            $GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergcoretools/css/be_background-wrapper.min.css|static';
33 34
             $GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergcoretools/css/be_grid_position_widget.min.css|static';
34 35
             $GLOBALS['TL_JAVASCRIPT'][] = 'bundles/vonrotenbergcoretools/js/GridSelectionHandler.js|async';
35 36
         }