payload-canvas 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +1 -0
- package/dist/admin/diff/layoutDiff.scss +181 -181
- package/dist/admin/editor/assistant/assistant.scss +944 -944
- package/dist/admin/editor/empty/empty.scss +92 -92
- package/dist/admin/editor/generate/generate.scss +276 -276
- package/dist/admin/editor/layout/layout.scss +240 -240
- package/dist/admin/editor/live/presence.scss +24 -24
- package/dist/admin/editor/locale/locale.scss +154 -154
- package/dist/admin/editor/menu/menu.scss +132 -132
- package/dist/admin/editor/motion/motion.scss +84 -84
- package/dist/admin/editor/tooltip/tooltip.scss +39 -39
- package/dist/admin/editor/topbar/screens/screens.scss +134 -134
- package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
- package/dist/admin/editor/ui/controls.scss +320 -320
- package/dist/react/components/RichText.js +4 -0
- package/dist/react/components/richTextUpload.d.ts +43 -0
- package/dist/react/components/richTextUpload.js +115 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Eugene Lominos
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eugene Lominos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1079,6 +1079,7 @@ export const blocks = [...defaultBlocks({ linkCollections: ['pages'] }), pricing
|
|
|
1079
1079
|
- The `field` block renders rich text with the `prose` typography (and `max-w-none`) when its own `className` has no `prose` class. Add `prose prose-lg` or another `prose` class to take control.
|
|
1080
1080
|
- `field` `path` takes a binding formatter after a `|` (see "Binding syntax"): `price|currency:EUR` gives `€1,200`, `publishedAt|date:en-GB` a date in that language, `content|readingTime` gives `5 min read`. The inspector edits it with the **Format** select under the field. `formatBindingValue(value, "currency:EUR")` in `payload-canvas/core` formats a value the same way.
|
|
1081
1081
|
- `field` and `richText` give each rich-text heading an `id` from its text, for `#id` links and the [table of contents](#table-of-contents): `headingId('Über uns & Preise')` is `uber-uns-preise`. A repeated text gets `-2`, `-3`, and a heading without letters or digits gets `section`. `richTextHeadings(value)` in `payload-canvas/core` lists the headings with the same ids (`{ id, text, level, node }`). Two rich texts on one page with the same heading text give two elements the same id; the first one wins a `#id` link.
|
|
1082
|
+
- Photos in rich text (`field`, `richText` and `renderRichText`) render as one `<img class="builder-richtext-image">` with a `srcset` of Payload's resized copies that have the photo's own shape. Cropped sizes never join, so the whole photo shows at every screen width. The original joins only when it is light (not a PNG, 600 KB or less) and no copy is 1920 px wide. URLs get `?v=<id>-<updatedAt>`, so an edited photo gets a new URL. The image has `width` and `height` from the original, `loading="lazy"`, `decoding="async"` and `sizes="auto, (min-width: 1024px) 768px, 100vw"`. The alt text is the upload node's alt, then the media alt. An upload that is only an id (not loaded) renders nothing. Other files keep Payload's default link. Round the corners from the site's CSS: `.prose { --builder-richtext-image-radius: 0.75rem; }`. The default styles use `:where()`, so any rule of the site on `.builder-richtext-image` wins.
|
|
1082
1083
|
- A list holds its items as `listItem` blocks in its `items` slot, so each item can be selected, dragged, styled and edited on the canvas. Enter at the end of an item adds the next one; Backspace at the start of an item joins it to the one before. Older layouts stored the items as a prop (`props.items: [{ text }]`). `normalizeLayout` turns them into `listItem` blocks when a layout loads, and the List component still renders the old prop until the layout is saved again. A list whose `items` prop is bound to document data keeps the old form. A `listItem` takes an optional `link` (the same link group as `button`): the item renders as `<li><a href>text</a></li>`, and the text stays editable in place. Do not set it on items of a list inside a `link` block, because a link cannot hold another link; the item's link is a prop, so the link block's type rules do not catch it.
|
|
1083
1084
|
|
|
1084
1085
|
### Where a block renders: `useCanvasMode()`
|
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
// The builder layout diff in Payload's Versions > compare view. Payload CSS variables only, no
|
|
2
|
-
// Tailwind. Colors come from Payload's own diff variables (`--diff-create-*`, `--diff-delete-*`),
|
|
3
|
-
// with theme fallbacks, so it matches the other fields' diffs in light and dark theme.
|
|
4
|
-
|
|
5
|
-
@layer payload-default {
|
|
6
|
-
.layout-diff {
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
&__content {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: calc(var(--base) * 0.5);
|
|
13
|
-
background: var(--theme-elevation-50);
|
|
14
|
-
padding: calc(var(--base) * 0.5);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&__summary {
|
|
18
|
-
margin: 0;
|
|
19
|
-
color: var(--theme-elevation-800);
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__list,
|
|
24
|
-
&__details {
|
|
25
|
-
list-style: none;
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__list {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
gap: calc(var(--base) * 0.25);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&__change {
|
|
37
|
-
padding: calc(var(--base) * 0.4) calc(var(--base) * 0.5);
|
|
38
|
-
border: 1px solid var(--theme-elevation-100);
|
|
39
|
-
border-radius: var(--style-radius-s);
|
|
40
|
-
background: var(--theme-elevation-0);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__head {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-wrap: wrap;
|
|
46
|
-
align-items: baseline;
|
|
47
|
-
gap: calc(var(--base) * 0.3);
|
|
48
|
-
min-width: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__pill {
|
|
52
|
-
flex: none;
|
|
53
|
-
padding: 0 calc(var(--base) * 0.25);
|
|
54
|
-
border: 1px solid var(--theme-elevation-150);
|
|
55
|
-
border-radius: var(--style-radius-s);
|
|
56
|
-
background: var(--theme-elevation-100);
|
|
57
|
-
color: var(--theme-elevation-800);
|
|
58
|
-
font-size: calc(var(--base) * 0.55);
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
line-height: 1.6;
|
|
61
|
-
text-transform: uppercase;
|
|
62
|
-
letter-spacing: 0.04em;
|
|
63
|
-
|
|
64
|
-
&--added {
|
|
65
|
-
border-color: var(--diff-create-pill-border, var(--theme-success-400));
|
|
66
|
-
background: var(--diff-create-pill-bg, var(--theme-success-200));
|
|
67
|
-
color: var(--diff-create-pill-color, var(--theme-success-600));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&--removed {
|
|
71
|
-
border-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
72
|
-
background: var(--diff-delete-pill-bg, var(--theme-error-200));
|
|
73
|
-
color: var(--diff-delete-pill-color, var(--theme-error-600));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__name {
|
|
78
|
-
min-width: 0;
|
|
79
|
-
overflow-wrap: anywhere;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__where {
|
|
83
|
-
color: var(--theme-elevation-600);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&__details {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
gap: calc(var(--base) * 0.2);
|
|
90
|
-
margin-top: calc(var(--base) * 0.3);
|
|
91
|
-
padding-inline-start: calc(var(--base) * 0.5);
|
|
92
|
-
border-inline-start: 2px solid var(--theme-elevation-100);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&__detail {
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-wrap: wrap;
|
|
98
|
-
align-items: baseline;
|
|
99
|
-
gap: calc(var(--base) * 0.25);
|
|
100
|
-
min-width: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&__detail-label {
|
|
104
|
-
display: inline-flex;
|
|
105
|
-
align-items: baseline;
|
|
106
|
-
gap: calc(var(--base) * 0.2);
|
|
107
|
-
color: var(--theme-elevation-600);
|
|
108
|
-
|
|
109
|
-
&::after {
|
|
110
|
-
content: ':';
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.field-diff__locale-label {
|
|
114
|
-
margin: 0;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&__value,
|
|
119
|
-
&__class {
|
|
120
|
-
padding: 0 calc(var(--base) * 0.15);
|
|
121
|
-
border-radius: var(--style-radius-s);
|
|
122
|
-
text-decoration: none;
|
|
123
|
-
overflow-wrap: anywhere;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&__value--del {
|
|
127
|
-
background: var(--diff-delete-parent-bg, var(--theme-error-100));
|
|
128
|
-
color: var(--diff-delete-parent-color, var(--theme-error-800));
|
|
129
|
-
text-decoration: line-through;
|
|
130
|
-
text-decoration-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&__value--ins {
|
|
134
|
-
background: var(--diff-create-parent-bg, var(--theme-success-100));
|
|
135
|
-
color: var(--diff-create-parent-color, var(--theme-success-800));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&__class {
|
|
139
|
-
font-family: var(--font-mono, ui-monospace, monospace);
|
|
140
|
-
font-size: calc(var(--base) * 0.55);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&__empty {
|
|
144
|
-
color: var(--theme-elevation-400);
|
|
145
|
-
font-style: italic;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&__arrow {
|
|
149
|
-
color: var(--theme-elevation-400);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&__json {
|
|
153
|
-
border-top: 1px solid var(--theme-elevation-100);
|
|
154
|
-
padding-top: calc(var(--base) * 0.4);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&__json-summary {
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
color: var(--theme-elevation-600);
|
|
160
|
-
width: fit-content;
|
|
161
|
-
|
|
162
|
-
&:hover {
|
|
163
|
-
color: var(--theme-elevation-900);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&__json-content {
|
|
168
|
-
display: grid;
|
|
169
|
-
// Same columns as Payload's field diffs: old on the left, new on the right.
|
|
170
|
-
grid-template-columns: calc(50% - var(--base) * 0.5) calc(50% - var(--base) * 0.5);
|
|
171
|
-
gap: var(--base);
|
|
172
|
-
margin-top: calc(var(--base) * 0.5);
|
|
173
|
-
overflow-x: auto;
|
|
174
|
-
|
|
175
|
-
pre {
|
|
176
|
-
white-space: pre-wrap;
|
|
177
|
-
overflow-wrap: anywhere;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
1
|
+
// The builder layout diff in Payload's Versions > compare view. Payload CSS variables only, no
|
|
2
|
+
// Tailwind. Colors come from Payload's own diff variables (`--diff-create-*`, `--diff-delete-*`),
|
|
3
|
+
// with theme fallbacks, so it matches the other fields' diffs in light and dark theme.
|
|
4
|
+
|
|
5
|
+
@layer payload-default {
|
|
6
|
+
.layout-diff {
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
&__content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: calc(var(--base) * 0.5);
|
|
13
|
+
background: var(--theme-elevation-50);
|
|
14
|
+
padding: calc(var(--base) * 0.5);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__summary {
|
|
18
|
+
margin: 0;
|
|
19
|
+
color: var(--theme-elevation-800);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__list,
|
|
24
|
+
&__details {
|
|
25
|
+
list-style: none;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__list {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: calc(var(--base) * 0.25);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__change {
|
|
37
|
+
padding: calc(var(--base) * 0.4) calc(var(--base) * 0.5);
|
|
38
|
+
border: 1px solid var(--theme-elevation-100);
|
|
39
|
+
border-radius: var(--style-radius-s);
|
|
40
|
+
background: var(--theme-elevation-0);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__head {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
align-items: baseline;
|
|
47
|
+
gap: calc(var(--base) * 0.3);
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__pill {
|
|
52
|
+
flex: none;
|
|
53
|
+
padding: 0 calc(var(--base) * 0.25);
|
|
54
|
+
border: 1px solid var(--theme-elevation-150);
|
|
55
|
+
border-radius: var(--style-radius-s);
|
|
56
|
+
background: var(--theme-elevation-100);
|
|
57
|
+
color: var(--theme-elevation-800);
|
|
58
|
+
font-size: calc(var(--base) * 0.55);
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
line-height: 1.6;
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
letter-spacing: 0.04em;
|
|
63
|
+
|
|
64
|
+
&--added {
|
|
65
|
+
border-color: var(--diff-create-pill-border, var(--theme-success-400));
|
|
66
|
+
background: var(--diff-create-pill-bg, var(--theme-success-200));
|
|
67
|
+
color: var(--diff-create-pill-color, var(--theme-success-600));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--removed {
|
|
71
|
+
border-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
72
|
+
background: var(--diff-delete-pill-bg, var(--theme-error-200));
|
|
73
|
+
color: var(--diff-delete-pill-color, var(--theme-error-600));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__name {
|
|
78
|
+
min-width: 0;
|
|
79
|
+
overflow-wrap: anywhere;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__where {
|
|
83
|
+
color: var(--theme-elevation-600);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__details {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
gap: calc(var(--base) * 0.2);
|
|
90
|
+
margin-top: calc(var(--base) * 0.3);
|
|
91
|
+
padding-inline-start: calc(var(--base) * 0.5);
|
|
92
|
+
border-inline-start: 2px solid var(--theme-elevation-100);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__detail {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-wrap: wrap;
|
|
98
|
+
align-items: baseline;
|
|
99
|
+
gap: calc(var(--base) * 0.25);
|
|
100
|
+
min-width: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__detail-label {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: baseline;
|
|
106
|
+
gap: calc(var(--base) * 0.2);
|
|
107
|
+
color: var(--theme-elevation-600);
|
|
108
|
+
|
|
109
|
+
&::after {
|
|
110
|
+
content: ':';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.field-diff__locale-label {
|
|
114
|
+
margin: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__value,
|
|
119
|
+
&__class {
|
|
120
|
+
padding: 0 calc(var(--base) * 0.15);
|
|
121
|
+
border-radius: var(--style-radius-s);
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
overflow-wrap: anywhere;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__value--del {
|
|
127
|
+
background: var(--diff-delete-parent-bg, var(--theme-error-100));
|
|
128
|
+
color: var(--diff-delete-parent-color, var(--theme-error-800));
|
|
129
|
+
text-decoration: line-through;
|
|
130
|
+
text-decoration-color: var(--diff-delete-pill-border, var(--theme-error-400));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__value--ins {
|
|
134
|
+
background: var(--diff-create-parent-bg, var(--theme-success-100));
|
|
135
|
+
color: var(--diff-create-parent-color, var(--theme-success-800));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__class {
|
|
139
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
140
|
+
font-size: calc(var(--base) * 0.55);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__empty {
|
|
144
|
+
color: var(--theme-elevation-400);
|
|
145
|
+
font-style: italic;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__arrow {
|
|
149
|
+
color: var(--theme-elevation-400);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&__json {
|
|
153
|
+
border-top: 1px solid var(--theme-elevation-100);
|
|
154
|
+
padding-top: calc(var(--base) * 0.4);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__json-summary {
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
color: var(--theme-elevation-600);
|
|
160
|
+
width: fit-content;
|
|
161
|
+
|
|
162
|
+
&:hover {
|
|
163
|
+
color: var(--theme-elevation-900);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&__json-content {
|
|
168
|
+
display: grid;
|
|
169
|
+
// Same columns as Payload's field diffs: old on the left, new on the right.
|
|
170
|
+
grid-template-columns: calc(50% - var(--base) * 0.5) calc(50% - var(--base) * 0.5);
|
|
171
|
+
gap: var(--base);
|
|
172
|
+
margin-top: calc(var(--base) * 0.5);
|
|
173
|
+
overflow-x: auto;
|
|
174
|
+
|
|
175
|
+
pre {
|
|
176
|
+
white-space: pre-wrap;
|
|
177
|
+
overflow-wrap: anywhere;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|