You are here

pdf.css in PDF 7

Same filename and directory in other branches
  1. 8 css/pdf.css
.pdf-canvas,
.pdf-content canvas {
  border: 1px solid black;
}

/* CSS classes used by TextLayerBuilder to style the text layer divs */

.textLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  color: #000;
  font-family: sans-serif;
  overflow: hidden;
}

.textLayer > div {
  color: transparent;
  position: absolute;
  line-height: 1;
  white-space: pre;
  cursor: text;
}

.textLayer .highlight {
  margin: -1px;
  padding: 1px;

  background-color: rgba(180, 0, 170, 0.2);
  border-radius: 4px;
}

.textLayer .highlight.begin {
  border-radius: 4px 0 0 4px;
}

.textLayer .highlight.end {
  border-radius: 0 4px 4px 0;
}

.textLayer .highlight.middle {
  border-radius: 0;
}

.textLayer .highlight.selected {
  background-color: rgba(0, 100, 0, 0.2);
}

File

css/pdf.css
View source
  1. .pdf-canvas,
  2. .pdf-content canvas {
  3. border: 1px solid black;
  4. }
  5. /* CSS classes used by TextLayerBuilder to style the text layer divs */
  6. .textLayer {
  7. position: absolute;
  8. left: 0;
  9. top: 0;
  10. right: 0;
  11. bottom: 0;
  12. color: #000;
  13. font-family: sans-serif;
  14. overflow: hidden;
  15. }
  16. .textLayer > div {
  17. color: transparent;
  18. position: absolute;
  19. line-height: 1;
  20. white-space: pre;
  21. cursor: text;
  22. }
  23. .textLayer .highlight {
  24. margin: -1px;
  25. padding: 1px;
  26. background-color: rgba(180, 0, 170, 0.2);
  27. border-radius: 4px;
  28. }
  29. .textLayer .highlight.begin {
  30. border-radius: 4px 0 0 4px;
  31. }
  32. .textLayer .highlight.end {
  33. border-radius: 0 4px 4px 0;
  34. }
  35. .textLayer .highlight.middle {
  36. border-radius: 0;
  37. }
  38. .textLayer .highlight.selected {
  39. background-color: rgba(0, 100, 0, 0.2);
  40. }