-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pulling in the latest changes from the scholar repo
- Loading branch information
Showing
48 changed files
with
1,302 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@import 'colors.less'; | ||
@import 'links.less'; | ||
@import 'text-layer.less'; | ||
@import 'styles.less'; | ||
@import 'zindex.less'; | ||
@import 'print.less'; | ||
@import "colors.less"; | ||
@import "links.less"; | ||
@import "text-layer.less"; | ||
@import "styles.less"; | ||
@import "zindex.less"; | ||
@import "print.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,42 @@ | ||
@media print { | ||
::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
html, body { height: auto, } | ||
|
||
@page{ | ||
size: auto; | ||
margin: 0; | ||
overflow:hidden; | ||
} | ||
|
||
html, body { | ||
margin: 0 !important; | ||
padding: 0 !important; | ||
} | ||
|
||
.no-break{ page-break-before: always; } | ||
|
||
.reader__page { | ||
margin: 0; | ||
} | ||
|
||
.reader .reader__main { | ||
margin-top: 0px; | ||
} | ||
|
||
.reader__header { | ||
display: none; | ||
} | ||
|
||
hypothesis-sidebar { | ||
display: none; | ||
} | ||
::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
html, | ||
body { | ||
height: auto; | ||
} | ||
|
||
@page { | ||
size: auto; | ||
margin: 0; | ||
overflow: hidden; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0 !important; | ||
padding: 0 !important; | ||
} | ||
|
||
.no-break { | ||
page-break-before: always; | ||
} | ||
|
||
.reader__page { | ||
margin: 0; | ||
} | ||
|
||
.reader .reader__main { | ||
margin-top: 0px; | ||
} | ||
|
||
.reader__header { | ||
display: none; | ||
} | ||
|
||
hypothesis-sidebar { | ||
display: none; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,79 @@ | ||
|
||
|
||
// this was taken directly from the react-pdf file at: 'react-pdf/dist/esm/Page/TextLayer.css'; | ||
// me and other users experienced issues with bundling this file with webpack. | ||
// me and other users experienced issues with bundling this file with webpack. | ||
// since this is a requirement of the latest beta version of 6.0.0-beta.2, we should monitor this and remove if these issues are resolved | ||
|
||
.textLayer { | ||
position: absolute; | ||
text-align: initial; | ||
left: 0; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
overflow: hidden; | ||
line-height: 1; | ||
text-size-adjust: none; | ||
} | ||
.textLayer span, | ||
.textLayer br { | ||
// color: transparent; // we are removing this because we show the text layer until the background image is rendered | ||
position: absolute; | ||
white-space: pre; | ||
cursor: text; | ||
transform-origin: 0% 0%; | ||
} | ||
/* Only necessary in Google Chrome, see issue 14205, and most unfortunately | ||
position: absolute; | ||
text-align: initial; | ||
left: 0; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
overflow: hidden; | ||
line-height: 1; | ||
text-size-adjust: none; | ||
} | ||
|
||
.textLayer span, | ||
.textLayer br { | ||
// color: transparent; // we are removing this because we show the text layer until the background image is rendered | ||
position: absolute; | ||
white-space: pre; | ||
cursor: default; | ||
transform-origin: 0% 0%; | ||
} | ||
|
||
/* Only necessary in Google Chrome, see issue 14205, and most unfortunately | ||
* the problem doesn't show up in "text" reference tests. */ | ||
.textLayer span.markedContent { | ||
top: 0; | ||
height: 0; | ||
} | ||
|
||
.textLayer .highlight { | ||
margin: -1px; | ||
padding: 1px; | ||
background-color: rgba(180, 0, 170, 1); | ||
border-radius: 4px; | ||
} | ||
|
||
.textLayer .highlight.appended { | ||
position: initial; | ||
} | ||
|
||
.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, 1); | ||
} | ||
|
||
/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */ | ||
.textLayer br::selection { | ||
background: transparent; | ||
} | ||
|
||
.textLayer .endOfContent { | ||
display: block; | ||
position: absolute; | ||
left: 0; | ||
top: 100%; | ||
right: 0; | ||
bottom: 0; | ||
z-index: -1; | ||
cursor: default; | ||
user-select: none; | ||
} | ||
|
||
.textLayer .endOfContent.active { | ||
top: 0; | ||
} | ||
|
||
.textLayer span.markedContent { | ||
top: 0; | ||
height: 0; | ||
} | ||
|
||
.textLayer .highlight { | ||
margin: -1px; | ||
padding: 1px; | ||
background-color: rgba(180, 0, 170, 1); | ||
border-radius: 4px; | ||
} | ||
|
||
.textLayer .highlight.appended { | ||
position: initial; | ||
} | ||
|
||
.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, 1); | ||
} | ||
|
||
/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */ | ||
.textLayer br::selection { | ||
background: transparent; | ||
} | ||
|
||
.textLayer .endOfContent { | ||
display: block; | ||
position: absolute; | ||
left: 0; | ||
top: 100%; | ||
right: 0; | ||
bottom: 0; | ||
z-index: -1; | ||
cursor: default; | ||
user-select: none; | ||
} | ||
|
||
.textLayer .endOfContent.active { | ||
top: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@allenai/pdf-components", | ||
"version": "0.0.1", | ||
"version": "1.0.2", | ||
"license": "Apache-2.0", | ||
"author": "[email protected]", | ||
"scripts": { | ||
|
Oops, something went wrong.