2022-02-07 17:42:47 +01:00
|
|
|
body, canvas {
|
2019-06-28 05:22:08 +02:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-19 14:35:31 +01:00
|
|
|
canvas {
|
|
|
|
margin: auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-08-11 11:11:22 +02:00
|
|
|
body {
|
|
|
|
background-color: #c0c0c0;
|
|
|
|
}
|
|
|
|
|
2019-06-28 05:22:08 +02:00
|
|
|
.textLayer {
|
|
|
|
position: absolute;
|
2021-11-25 04:20:26 +01:00
|
|
|
text-align: initial;
|
2019-06-28 05:22:08 +02:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
opacity: 0.2;
|
2021-11-25 04:20:26 +01:00
|
|
|
line-height: 1;
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|
|
|
|
|
2021-11-25 04:20:26 +01:00
|
|
|
.textLayer span,
|
|
|
|
.textLayer br {
|
2019-06-28 05:22:08 +02:00
|
|
|
color: transparent;
|
|
|
|
position: absolute;
|
|
|
|
white-space: pre;
|
|
|
|
cursor: text;
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textLayer .highlight {
|
|
|
|
margin: -1px;
|
|
|
|
padding: 1px;
|
2021-11-25 04:20:26 +01:00
|
|
|
background-color: rgba(180, 0, 170, 1);
|
2019-06-28 05:22:08 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2021-11-25 04:20:26 +01:00
|
|
|
.textLayer .highlight.appended {
|
|
|
|
position: initial;
|
|
|
|
}
|
|
|
|
|
2019-06-28 05:22:08 +02:00
|
|
|
.textLayer .highlight.begin {
|
2021-11-25 04:20:26 +01:00
|
|
|
border-radius: 4px 0 0 4px;
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.textLayer .highlight.end {
|
2021-11-25 04:20:26 +01:00
|
|
|
border-radius: 0 4px 4px 0;
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.textLayer .highlight.middle {
|
2021-11-25 04:20:26 +01:00
|
|
|
border-radius: 0;
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.textLayer .highlight.selected {
|
2021-11-25 04:20:26 +01:00
|
|
|
background-color: rgba(0, 100, 0, 1);
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|
|
|
|
|
2021-11-25 04:20:26 +01:00
|
|
|
.textLayer ::selection {
|
|
|
|
background: rgba(0, 0, 255, 1);
|
|
|
|
}
|
2019-06-28 05:22:08 +02:00
|
|
|
|
|
|
|
.textLayer .endOfContent {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2021-11-25 04:20:26 +01:00
|
|
|
left: 0;
|
2019-06-28 05:22:08 +02:00
|
|
|
top: 100%;
|
2021-11-25 04:20:26 +01:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2019-06-28 05:22:08 +02:00
|
|
|
z-index: -1;
|
|
|
|
cursor: default;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textLayer .endOfContent.active {
|
2021-11-25 04:20:26 +01:00
|
|
|
top: 0;
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|