libpdfviewer/app/src/main/assets/viewer.css

78 lines
1.2 KiB
CSS
Raw Normal View History

body, canvas, #padding {
padding: 0;
margin: 0;
}
#padding {
min-width: 100%;
background: black;
}
.textLayer {
position: absolute;
2021-11-25 04:20:26 +01:00
text-align: initial;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
opacity: 0.2;
2021-11-25 04:20:26 +01:00
line-height: 1;
}
2021-11-25 04:20:26 +01:00
.textLayer span,
.textLayer br {
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);
border-radius: 4px;
}
2021-11-25 04:20:26 +01:00
.textLayer .highlight.appended {
position: initial;
}
.textLayer .highlight.begin {
2021-11-25 04:20:26 +01:00
border-radius: 4px 0 0 4px;
}
.textLayer .highlight.end {
2021-11-25 04:20:26 +01:00
border-radius: 0 4px 4px 0;
}
.textLayer .highlight.middle {
2021-11-25 04:20:26 +01:00
border-radius: 0;
}
.textLayer .highlight.selected {
2021-11-25 04:20:26 +01:00
background-color: rgba(0, 100, 0, 1);
}
2021-11-25 04:20:26 +01:00
.textLayer ::selection {
background: rgba(0, 0, 255, 1);
}
.textLayer .endOfContent {
display: block;
position: absolute;
2021-11-25 04:20:26 +01:00
left: 0;
top: 100%;
2021-11-25 04:20:26 +01:00
right: 0;
bottom: 0;
z-index: -1;
cursor: default;
user-select: none;
}
.textLayer .endOfContent.active {
2021-11-25 04:20:26 +01:00
top: 0;
}