Browse code

Add css to override default cookie consent lib classes

Benjamin Roth authored on13/12/2019 19:03:19
Showing2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+#cconsent-bar {
2
+  font: inherit;
3
+}
4
+#cconsent-bar .ccb__left {
5
+  flex: 1 0 50%;
6
+}
7
+
8
+#cconsent-bar .ccb__right {
9
+  flex: 1 0 auto;
10
+  text-align: right;
11
+}
0 12
\ No newline at end of file
... ...
@@ -91,6 +91,8 @@ class TemplateListener
91 91
 
92 92
       if (strpos($strBuffer, '<head>'))
93 93
       {
94
+        $GLOBALS['TL_CSS'][] = 'system/modules/eSM_cookieconsent/assets/css/cc_style_override.css|screen';
95
+
94 96
         $strInject = '<script src="'.\Environment::get('path').'/system/modules/eSM_cookieconsent/assets/js/lib/cookieconsent.min.js"></script>';
95 97
 
96 98
         $strInject .= $Template->parse();