update text layer CSS

This commit is contained in:
Daniel Micay 2021-11-24 22:20:26 -05:00
parent c7329644b2
commit e4b107e1e4
1 changed files with 20 additions and 13 deletions

View File

@ -10,16 +10,18 @@ body, canvas, #padding {
.textLayer { .textLayer {
position: absolute; position: absolute;
text-align: initial;
left: 0; left: 0;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
overflow: hidden; overflow: hidden;
opacity: 0.2; opacity: 0.2;
line-height: 1.0; line-height: 1;
} }
.textLayer > span { .textLayer span,
.textLayer br {
color: transparent; color: transparent;
position: absolute; position: absolute;
white-space: pre; white-space: pre;
@ -30,41 +32,46 @@ body, canvas, #padding {
.textLayer .highlight { .textLayer .highlight {
margin: -1px; margin: -1px;
padding: 1px; padding: 1px;
background-color: rgba(180, 0, 170, 1);
background-color: rgb(180, 0, 170);
border-radius: 4px; border-radius: 4px;
} }
.textLayer .highlight.appended {
position: initial;
}
.textLayer .highlight.begin { .textLayer .highlight.begin {
border-radius: 4px 0px 0px 4px; border-radius: 4px 0 0 4px;
} }
.textLayer .highlight.end { .textLayer .highlight.end {
border-radius: 0px 4px 4px 0px; border-radius: 0 4px 4px 0;
} }
.textLayer .highlight.middle { .textLayer .highlight.middle {
border-radius: 0px; border-radius: 0;
} }
.textLayer .highlight.selected { .textLayer .highlight.selected {
background-color: rgb(0, 100, 0); background-color: rgba(0, 100, 0, 1);
} }
.textLayer ::selection { background: rgb(0,0,255); } .textLayer ::selection {
background: rgba(0, 0, 255, 1);
}
.textLayer .endOfContent { .textLayer .endOfContent {
display: block; display: block;
position: absolute; position: absolute;
left: 0px; left: 0;
top: 100%; top: 100%;
right: 0px; right: 0;
bottom: 0px; bottom: 0;
z-index: -1; z-index: -1;
cursor: default; cursor: default;
user-select: none; user-select: none;
} }
.textLayer .endOfContent.active { .textLayer .endOfContent.active {
top: 0px; top: 0;
} }