line multi authors

This commit is contained in:
Mateusz Gruszczyński
2026-07-25 17:33:01 +02:00
parent 0a02a0880e
commit 2d8bb24fcc
7 changed files with 197 additions and 20 deletions
+36
View File
@@ -4057,3 +4057,39 @@ dialog::backdrop {
grid-template-columns: 1fr;
}
}
/* Per-character authorship overlay. The textarea remains the editable surface. */
.authorship-layer {
position: absolute;
z-index: 1;
inset: 0 0 0 48px;
overflow: hidden;
padding: 24px;
color: transparent;
font: inherit;
font-size: var(--editor-font-size, 14px);
line-height: inherit;
white-space: pre;
tab-size: 4;
pointer-events: none;
}
.authorship-fragment {
border-radius: 2px;
background: color-mix(in srgb, var(--owner) 18%, transparent);
box-shadow: inset 0 -2px color-mix(in srgb, var(--owner) 72%, transparent);
color: transparent;
}
.editor-shell textarea {
position: relative;
z-index: 3;
background: transparent;
}
.hide-editor-line-numbers .authorship-layer { left: 0; }
@media (max-width: 720px) {
.authorship-layer { left: 42px; }
.hide-editor-line-numbers .authorship-layer { left: 0; }
}