0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-16 03:57:35 +02:00

Fix broken-code-point positioning and comment

Add position: relative to .broken-code-point[data-escaped] to establish
a containing block for the absolutely positioned .char child. Anchor
the child with left: 0. Replace AI-referencing comment with description
of actual purpose.

Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-04-02 21:55:38 +02:00
parent faaefd0fa8
commit ec90482206
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -11,14 +11,20 @@ Only show the real-char:
background: var(--color-text-light-1);
}
.broken-code-point[data-escaped] {
position: relative;
}
.broken-code-point[data-escaped]::before {
visibility: visible;
content: attr(data-escaped);
color: var(--color-red);
}
.broken-code-point[data-escaped] .char {
/* make it copyable by selecting the text (AI suggestion, no other solution) */
/* keep the original character selectable/copyable while showing the escaped label via ::before */
position: absolute;
left: 0;
opacity: 0;
pointer-events: none;
}