You are here

pdf.css in PDF 8

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

#pdf-page {
  position: relative;
}

/* 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 0px 0px 4px;
}

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

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

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

File

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