Browse code

Modernize and adjust code to Contao 5

Benjamin Roth authored on26/10/2023 15:21:49
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+$gutter-default: (floor((1 / 960) * 1000000) / 1000000 * 30) * 100%;
2
+.ce_text {
3
+
4
+  &.layout_2col {
5
+
6
+    .text {
7
+      -webkit-column-count: 2;
8
+      -moz-column-count: 2;
9
+      column-count: 2;
10
+      -webkit-column-gap: $gutter-default;
11
+      -moz-column-gap: $gutter-default;
12
+      column-gap: $gutter-default;
13
+
14
+      p, div, ul, ol, dl {
15
+        break-inside: avoid-column;
16
+        break-before: auto;
17
+      }
18
+
19
+      h1, h2, h3, h4, h5, h6 {
20
+        break-inside: avoid-column;
21
+        break-after: avoid-column;
22
+      }
23
+    }
24
+
25
+    @media screen and (max-width: 599px) {
26
+      .text {
27
+        -webkit-column-count: 1;
28
+        -moz-column-count: 1;
29
+        column-count: 1;
30
+      }
31
+    }
32
+  }
33
+}