242 lines
6.5 KiB
CSS
242 lines
6.5 KiB
CSS
.pdfemb-viewer {
|
|
overflow: hidden;
|
|
line-height: 1;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 1px solid black;
|
|
position: relative;
|
|
text-align: left;
|
|
direction: ltr;
|
|
background-color: lightGrey;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar {
|
|
padding: 0;
|
|
margin: 0;
|
|
border: none;
|
|
position: absolute;
|
|
background-color: grey;
|
|
width: 100%;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar.pdfemb-toolbar-fixed {
|
|
display: block;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar.pdfemb-toolbar-hover {
|
|
display: none;
|
|
z-index: 1;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar.pdfemb-toolbar-top {
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar.pdfemb-toolbar-bottom {
|
|
bottom: 0;
|
|
left: 0;
|
|
/* padding-top: 1px; */
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar div {
|
|
margin: 6px 15px 6px 2px;
|
|
font-family: sans-serif;
|
|
font-size: 12px;
|
|
padding: 2px;
|
|
text-align: center;
|
|
letter-spacing: normal;
|
|
word-spacing: normal;
|
|
line-height: 14px;
|
|
text-transform: none;
|
|
text-indent: 0;
|
|
text-shadow: none;
|
|
font-weight: normal;
|
|
display: inline;
|
|
color: lightgray;
|
|
float: left;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button,
|
|
.pdfemb-viewer .pdfemb-toolbar button[disabled] {
|
|
background-color: hsla(0, 0%, 0%, 0.12);
|
|
background-image: linear-gradient(hsla(0, 0%, 100%, 0.05), hsla(0, 0%, 100%, 0));
|
|
background-clip: padding-box;
|
|
border: 1px solid;
|
|
border-color: hsla(0, 0%, 0%, 0.32) hsla(0, 0%, 0%, 0.38) hsla(0, 0%, 0%, 0.42);
|
|
box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.05) inset, 0 0 1px hsla(0, 0%, 100%, 0.15) inset, 0 1px 0 hsla(0, 0%, 100%, 0.05);
|
|
-webkit-transition-property: background-color, border-color, box-shadow;
|
|
-webkit-transition-duration: 150ms;
|
|
-webkit-transition-timing-function: ease;
|
|
transition-property: background-color, border-color, box-shadow;
|
|
transition-duration: 150ms;
|
|
transition-timing-function: ease;
|
|
min-width: 16px;
|
|
padding: 2px 6px 0;
|
|
width: auto;
|
|
border-radius: 2px;
|
|
color: hsla(0, 0%, 100%, 0.8);
|
|
font-size: 12px;
|
|
line-height: 14px;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
cursor: default;
|
|
margin: 4px 2px 4px 0;
|
|
float: left;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button:hover {
|
|
background-color: hsla(0, 0%, 0%, 0.2);
|
|
box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.05) inset, 0 0 1px hsla(0, 0%, 100%, 0.15) inset, 0 0 1px hsla(0, 0%, 0%, 0.05);
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button:first-child {
|
|
margin-left: 4px;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-toggled {
|
|
background-color: hsla(0, 0%, 0%, 0.3);
|
|
background-image: linear-gradient(hsla(0, 0%, 100%, 0.05), hsla(0, 0%, 100%, 0));
|
|
border-color: hsla(0, 0%, 0%, 0.4) hsla(0, 0%, 0%, 0.45) hsla(0, 0%, 0%, 0.5);
|
|
box-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.1) inset, 0 0 1px hsla(0, 0%, 0%, 0.2) inset, 0 1px 0 hsla(0, 0%, 100%, 0.05);
|
|
-webkit-transition-property: background-color, border-color, box-shadow;
|
|
-webkit-transition-duration: 10ms;
|
|
-webkit-transition-timing-function: linear;
|
|
transition-property: background-color, border-color, box-shadow;
|
|
transition-duration: 10ms;
|
|
transition-timing-function: linear;
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-toggled:hover {
|
|
background-color: hsla(0, 0%, 0%, 0.4);
|
|
border-color: hsla(0, 0%, 0%, 0.4) hsla(0, 0%, 0%, 0.5) hsla(0, 0%, 0%, 0.55);
|
|
box-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.2) inset, 0 0 1px hsla(0, 0%, 0%, 0.3) inset, 0 1px 0 hsla(0, 0%, 100%, 0.05);
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-prev::before {
|
|
content: url("../img/toolbarButton-pageUp.png");
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-next::before {
|
|
content: url("../img/toolbarButton-pageDown.png");
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-zoomout::before {
|
|
content: url("../img/toolbarButton-zoomOut.png");
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-zoomin::before {
|
|
content: url("../img/toolbarButton-zoomIn.png");
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-fs::before {
|
|
content: url("../img/toolbarButton-presentationMode.png");
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-download::before {
|
|
content: url("../img/toolbarButton-download.png");
|
|
}
|
|
.pdfemb-viewer .pdfemb-toolbar button.pdfemb-btndisabled {
|
|
color: lightGray;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer {
|
|
overflow: hidden;
|
|
display: block;
|
|
position: relative;
|
|
background-color: lightGrey;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer.grab-to-pan-grab {
|
|
cursor: grab;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
|
|
cursor: inherit;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer.grab-to-pan-grab:active, .pdfemb-viewer .pdfemb-pagescontainer.grab-to-pan-grabbing {
|
|
cursor: grabbing;
|
|
z-index: 50000; /* should be higher than anything else in PDF.js! */
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer .pdfemb-inner-div {
|
|
overflow: hidden;
|
|
line-height: 1;
|
|
margin: auto;
|
|
padding: 0;
|
|
border: none;
|
|
position: relative;
|
|
background-color: lightGrey;
|
|
display: block;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer .pdfemb-inner-div canvas {
|
|
position: relative;
|
|
top: 0;
|
|
bottom: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline-block;
|
|
background-color: white;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer .pdfemb-inner-div-wantmobile {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 50;
|
|
background-color: lightgray;
|
|
opacity: 0.5;
|
|
}
|
|
.pdfemb-viewer .pdfemb-pagescontainer .pdfemb-inner-div-wantmobile-fswrap {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 100;
|
|
}
|
|
|
|
.pdfemb-loadingmsg {
|
|
text-align: center;
|
|
padding: 5px;
|
|
background-color: white;
|
|
}
|
|
|
|
div.pdfemb-errormsg {
|
|
padding: 5px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
background-color: #faa;
|
|
}
|
|
|
|
.pdfemb-fsp-wrapper {
|
|
background: white;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 4000;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
display: none;
|
|
}
|
|
|
|
.pdfemb-fsp-content {
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
input.pdfemb-page-num {
|
|
display: inline;
|
|
font-family: sans-serif;
|
|
width: 30px;
|
|
height: 15px;
|
|
vertical-align: middle;
|
|
font-size: 10px;
|
|
padding: 0 2px;
|
|
color: black;
|
|
text-align: center;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Safari 6.1+ (9.0 is the latest version of Safari at this time) */
|
|
@media screen and (min-color-index: 0) and (-webkit-min-device-pixel-ratio: 0) {
|
|
.pdfemb-pagescontainer {
|
|
margin-left: 1px;
|
|
}
|
|
}
|
|
.scrollbar-none {
|
|
overflow: scroll;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.scrollbar-none::-webkit-scrollbar {
|
|
display: none;
|
|
} |