|
74 | 74 | position: relative; |
75 | 75 | } |
76 | 76 |
|
| 77 | +/* nested draggable blocks position their own handle (chrome is their first |
| 78 | + child); handles stack per nesting level, each at its block's own indent */ |
| 79 | + .rdfa-editor-content *:has(> [data-role="chrome"]) { |
| 80 | + position: relative; |
| 81 | + } |
| 82 | + |
77 | 83 | /* invisible gutter strip: keeps the block hovered while the pointer |
78 | 84 | travels to the drag handle, which sits outside the block box */ |
79 | 85 | .rdfa-editor-content > *::before { |
|
85 | 91 | width: 2.25em; |
86 | 92 | } |
87 | 93 |
|
| 94 | +/* nested blocks get a narrower gutter, inside the parent's indentation */ |
| 95 | + .rdfa-editor-content > * *:has(> [data-role="chrome"])::before { |
| 96 | + content: ''; |
| 97 | + position: absolute; |
| 98 | + left: -1.5em; |
| 99 | + top: 0; |
| 100 | + bottom: 0; |
| 101 | + width: 1.5em; |
| 102 | + } |
| 103 | + |
| 104 | +/* a blockquote has no intrinsic child indentation, so its handle and its first |
| 105 | + block's handle would coincide; the editing view indents quote content to give |
| 106 | + each nesting level its own gutter column (lists and cells indent natively). |
| 107 | + The quote bar (Markdown/Bootstrap convention) makes the container visible - |
| 108 | + a normalized blockquote > p would otherwise read as a plain paragraph */ |
| 109 | + .rdfa-editor-content blockquote { |
| 110 | + padding-left: 2em; |
| 111 | + border-left: 4px solid #e0e0e0; |
| 112 | + color: #616161; |
| 113 | + } |
| 114 | + |
88 | 115 | /* the editing-DOM run wrapper (mixed flow content, e.g. <li>text<ul>...) renders |
89 | 116 | like the bare inline run it stands for; unwrapped again at canonicalization */ |
90 | 117 | .rdfa-editor-content p.rdfa-editor-run { |
|
156 | 183 | border: none; |
157 | 184 | } |
158 | 185 |
|
159 | | -.rdfa-editor-content > *:hover > [data-role="chrome"] { |
| 186 | +.rdfa-editor-content *:hover > [data-role="chrome"] { |
160 | 187 | visibility: visible; |
161 | 188 | } |
162 | 189 |
|
163 | | -/* Drag-and-drop feedback (v6 conventions) */ |
164 | | - .rdfa-editor-content > .dragging { |
| 190 | +/* Drag-and-drop feedback (v6 conventions) - any nesting depth */ |
| 191 | + .rdfa-editor-content .dragging { |
165 | 192 | opacity: 0.4; |
166 | 193 | } |
167 | 194 |
|
168 | | -.rdfa-editor-content > .drop-before { |
| 195 | +.rdfa-editor-content .drop-before { |
169 | 196 | box-shadow: 0 -3px 0 0 #2196f3; |
170 | 197 | } |
171 | 198 |
|
172 | | -.rdfa-editor-content > .drop-after { |
| 199 | +.rdfa-editor-content .drop-after { |
173 | 200 | box-shadow: 0 3px 0 0 #2196f3; |
174 | 201 | } |
175 | 202 |
|
| 203 | +/* dropping INTO a cell highlights the cell itself, not an edge */ |
| 204 | + .rdfa-editor-content .drop-into { |
| 205 | + box-shadow: inset 0 0 0 2px #2196f3; |
| 206 | + } |
| 207 | + |
176 | 208 | /* Editor toolbar (injected into the navbar) */ |
177 | 209 | #edit-toolbar { |
178 | 210 | order: -1; |
|
0 commit comments