The previous max-width-only fix let the <select> auto-size to an exact hug of the longest label (text width == content width), which can still clip the final glyph across fonts. Add min-width:140px so localized labels like PL 'Dopasuj wysokosc' render with visible slack; max-width raised to 170px so the longest (RU) labels still fit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
617 lines
19 KiB
CSS
617 lines
19 KiB
CSS
/* ── Reset ─────────────────────────────────────────────────────────────── */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
/* ── Scrollbars — slim, dark, to match the app chrome ──────────────────── */
|
|
* { scrollbar-width: thin; scrollbar-color: #5e5e5e transparent; }
|
|
::-webkit-scrollbar { width: 11px; height: 11px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb {
|
|
background: #5a5a5a;
|
|
border: 3px solid transparent; /* breathing room → a slimmer-looking thumb */
|
|
border-radius: 8px;
|
|
background-clip: padding-box;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover { background: #787878; background-clip: padding-box; }
|
|
::-webkit-scrollbar-corner { background: transparent; }
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
font-size: 13px;
|
|
background: #525659;
|
|
color: #fff;
|
|
}
|
|
|
|
/* ── Outer layout ───────────────────────────────────────────────────────── */
|
|
#outerContainer {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* ── Sidebar ────────────────────────────────────────────────────────────── */
|
|
#sidebarContainer {
|
|
width: 0;
|
|
min-width: 0;
|
|
background: #3a3a3a;
|
|
border-right: 1px solid #111;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
transition: width 0.25s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#outerContainer.sidebar-open #sidebarContainer { width: 200px; }
|
|
|
|
#sidebarToolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 14px;
|
|
background: #2e2e2e;
|
|
border-bottom: 1px solid #111;
|
|
flex-shrink: 0;
|
|
min-height: 42px; /* match the main toolbar height */
|
|
color: #90caf9; /* header icon colour */
|
|
}
|
|
.sidebar-title {
|
|
color: #bbb;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: .05em;
|
|
text-transform: uppercase;
|
|
}
|
|
.thumbs-empty {
|
|
color: #777;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
padding: 24px 8px;
|
|
}
|
|
|
|
#sidebarContent {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* Thumbnails */
|
|
.thumb {
|
|
cursor: pointer;
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
opacity: 0.65;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.thumb:hover, .thumb.active { opacity: 1; }
|
|
.thumb canvas, .thumb img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
max-width: 100%;
|
|
height: auto;
|
|
box-shadow: 0 1px 4px rgba(0,0,0,.5);
|
|
}
|
|
.thumb-label {
|
|
color: #aaa;
|
|
font-size: 11px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* ── Main container ─────────────────────────────────────────────────────── */
|
|
#mainContainer {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Toolbar ────────────────────────────────────────────────────────────── */
|
|
#toolbarContainer {
|
|
background: #474747;
|
|
border-bottom: 1px solid #1a1a1a;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,.45);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 4px 6px;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
min-height: 42px;
|
|
z-index: 10;
|
|
}
|
|
|
|
#toolbarLeft { display: flex; align-items: center; gap: 4px; }
|
|
#toolbarMiddle { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
|
|
#toolbarRight { display: flex; align-items: center; gap: 4px; }
|
|
|
|
.toolbar-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
padding: 5px 6px;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 28px;
|
|
height: 28px;
|
|
flex-shrink: 0;
|
|
transition: background 0.1s;
|
|
user-select: none;
|
|
}
|
|
.toolbar-btn:hover:not(:disabled) { background: #666; }
|
|
.toolbar-btn:active:not(:disabled) { background: #555; }
|
|
.toolbar-btn:disabled { opacity: 0.35; cursor: default; }
|
|
|
|
.toolbar-separator {
|
|
width: 1px;
|
|
height: 22px;
|
|
background: #666;
|
|
margin: 0 3px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Page number group */
|
|
#pageNumberGroup {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
color: #ddd;
|
|
font-size: 13px;
|
|
}
|
|
|
|
#pageNumber {
|
|
width: 48px;
|
|
height: 21px;
|
|
padding: 0 5px;
|
|
background: #636363;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 3px;
|
|
color: #fff;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
-moz-appearance: textfield;
|
|
}
|
|
#pageNumber::-webkit-inner-spin-button,
|
|
#pageNumber::-webkit-outer-spin-button { -webkit-appearance: none; }
|
|
#pageNumber:focus { outline: none; border-color: #90caf9; }
|
|
|
|
.page-sep { color: #888; }
|
|
|
|
/* Zoom */
|
|
#scaleSelect, #langSelect {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
background-color: #636363;
|
|
/* slim stroked chevron-down, replacing the chunky native arrow */
|
|
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
|
|
background-repeat: no-repeat;
|
|
background-position: right 6px center;
|
|
background-size: 12px;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 3px;
|
|
color: #fff;
|
|
padding: 3px 22px 3px 7px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
max-width: 110px;
|
|
}
|
|
/* The scale dropdown holds longer localized labels (e.g. PL "Dopasuj wysokość",
|
|
RU "По размеру страницы"); give it room so the selected value isn't clipped.
|
|
min-width guarantees comfortable slack (not an exact hug of the text), and
|
|
max-width lets the longest labels grow while keeping it from getting silly. */
|
|
#scaleSelect { min-width: 140px; max-width: 170px; }
|
|
#scaleSelect:focus, #langSelect:focus { outline: none; }
|
|
|
|
/* Format badge */
|
|
#formatBadge {
|
|
padding: 2px 9px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .5px;
|
|
}
|
|
#formatBadge.badge-pdf { background: #e53935; color: #fff; }
|
|
#formatBadge.badge-odf { background: #43a047; color: #fff; }
|
|
#formatBadge.badge-rtf { background: #1e88e5; color: #fff; }
|
|
#formatBadge.badge-docx { background: #5e35b1; color: #fff; }
|
|
#formatBadge.badge-doc { background: #2b6cb0; color: #fff; }
|
|
#formatBadge.badge-md { background: #d81b60; color: #fff; }
|
|
#formatBadge.badge-comic { background: #f4511e; color: #fff; }
|
|
#formatBadge.badge-epub { background: #00897b; color: #fff; }
|
|
#formatBadge.badge-txt { background: #6d4c41; color: #fff; }
|
|
#formatBadge.badge-image { background: #00acc1; color: #fff; }
|
|
#formatBadge.badge-pptx { background: #d24726; color: #fff; }
|
|
#formatBadge.badge-xlsx { background: #217346; color: #fff; }
|
|
#formatBadge.badge-csv { background: #7cb342; color: #fff; }
|
|
#formatBadge.badge-code { background: #546e7a; color: #fff; }
|
|
#formatBadge.badge-djvu { background: #3949ab; color: #fff; }
|
|
|
|
/* File input — hidden, triggered by label */
|
|
#fileInput { display: none; }
|
|
|
|
/* ── Loading bar ────────────────────────────────────────────────────────── */
|
|
#loadingBar {
|
|
height: 3px;
|
|
background: #3a3a3a;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
#loadingBarProgress {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(90deg, #90caf9 0%, #42a5f5 50%, #90caf9 100%);
|
|
background-size: 200% 100%;
|
|
animation: loading-sweep 1.4s linear infinite;
|
|
}
|
|
@keyframes loading-sweep {
|
|
0% { background-position: 200% 0; }
|
|
100% { background-position: -200% 0; }
|
|
}
|
|
|
|
/* ── Error bar ──────────────────────────────────────────────────────────── */
|
|
#errorBar {
|
|
background: #b71c1c;
|
|
color: #fff;
|
|
padding: 6px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
#errorBar span { flex: 1; }
|
|
#errorClose {
|
|
background: transparent;
|
|
border: none;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-size: 17px;
|
|
line-height: 1;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
flex-shrink: 0;
|
|
}
|
|
#errorClose:hover { background: rgba(255,255,255,.15); }
|
|
|
|
/* ── Viewer container ───────────────────────────────────────────────────── */
|
|
#viewerContainer {
|
|
flex: 1;
|
|
overflow: auto;
|
|
background: #525659;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* ── Drop zone ──────────────────────────────────────────────────────────── */
|
|
#dropzone {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: min(90%, 620px);
|
|
min-height: 360px;
|
|
border: 2px dashed #666;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: border-color .2s, background .2s;
|
|
align-self: center;
|
|
flex-shrink: 0;
|
|
}
|
|
#dropzone.drag-over {
|
|
border-color: #90caf9;
|
|
background: rgba(144,202,249,.07);
|
|
}
|
|
|
|
#dropzoneContent {
|
|
text-align: center;
|
|
padding: 40px 24px;
|
|
color: #aaa;
|
|
pointer-events: none;
|
|
}
|
|
#dropzoneContent label { pointer-events: auto; }
|
|
|
|
#dropzoneIcon { margin-bottom: 16px; }
|
|
|
|
#dropzoneContent h2 {
|
|
font-size: 22px;
|
|
font-weight: 300;
|
|
color: #ddd;
|
|
margin-bottom: 8px;
|
|
}
|
|
#dropzoneContent p { font-size: 14px; }
|
|
#dropzoneContent label {
|
|
color: #90caf9;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.format-tags {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin-top: 20px;
|
|
}
|
|
.format-tag {
|
|
padding: 3px 11px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .5px;
|
|
}
|
|
.tag-pdf { background: #e53935; color: #fff; }
|
|
.tag-odf { background: #43a047; color: #fff; }
|
|
.tag-rtf { background: #1e88e5; color: #fff; }
|
|
.tag-docx { background: #5e35b1; color: #fff; }
|
|
.tag-doc { background: #2b6cb0; color: #fff; }
|
|
.tag-md { background: #d81b60; color: #fff; }
|
|
.tag-comic { background: #f4511e; color: #fff; }
|
|
.tag-epub { background: #00897b; color: #fff; }
|
|
.tag-txt { background: #6d4c41; color: #fff; }
|
|
.tag-image { background: #00acc1; color: #fff; }
|
|
.tag-pptx { background: #d24726; color: #fff; }
|
|
.tag-xlsx { background: #217346; color: #fff; }
|
|
.tag-csv { background: #7cb342; color: #fff; }
|
|
.tag-code { background: #546e7a; color: #fff; }
|
|
.tag-djvu { background: #3949ab; color: #fff; }
|
|
|
|
.powered-by {
|
|
margin-top: 22px;
|
|
font-size: 11px;
|
|
color: #666;
|
|
}
|
|
.powered-by a { color: #777; }
|
|
.powered-by a:hover { color: #aaa; }
|
|
|
|
/* ── Document container ─────────────────────────────────────────────────── */
|
|
#docContainer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 14px;
|
|
width: 100%;
|
|
padding-bottom: 40px;
|
|
align-self: flex-start; /* don't vertically center pages — stack from top */
|
|
}
|
|
|
|
/* ── PDF pages ──────────────────────────────────────────────────────────── */
|
|
.pdf-page {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
line-height: 0;
|
|
}
|
|
.pdf-page canvas { display: block; }
|
|
|
|
/* ── DjVu pages (DejaView) ─────────────────────────────────────────────── */
|
|
.djvu-page {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
flex-shrink: 0;
|
|
line-height: 0;
|
|
}
|
|
.djvu-page canvas { display: block; width: 100%; height: 100%; }
|
|
|
|
/* ── Comic pages (CBZ / CBR / CBT) ─────────────────────────────────────── */
|
|
.comic-page {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
flex-shrink: 0;
|
|
line-height: 0;
|
|
}
|
|
.comic-page img { display: block; width: 100%; height: auto; }
|
|
|
|
/* ── Images (PNG / JPEG / TIFF / … + EXIF) ─────────────────────────────── */
|
|
.image-page {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
flex-shrink: 0;
|
|
line-height: 0;
|
|
}
|
|
.image-page img, .image-page canvas { display: block; width: 100%; height: auto; }
|
|
|
|
/* ── PowerPoint slides (PptxViewJS) ────────────────────────────────────── */
|
|
.pptx-slide {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
flex-shrink: 0;
|
|
line-height: 0;
|
|
}
|
|
.pptx-slide canvas { display: block; }
|
|
|
|
.image-info {
|
|
background: #fff;
|
|
color: #222;
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
padding: 14px 18px;
|
|
width: min(90%, 460px);
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
.image-info h3 {
|
|
font-size: 11px; font-weight: 700; letter-spacing: .05em;
|
|
text-transform: uppercase; color: #888; margin-bottom: 8px;
|
|
}
|
|
.image-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
|
|
.image-info dt { color: #666; }
|
|
.image-info dd { color: #111; word-break: break-word; }
|
|
|
|
/* ── EPUB / MOBI (foliate-js) ──────────────────────────────────────────── */
|
|
.epub-view {
|
|
display: block;
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ── HTML document pages (RTF, DOCX) ───────────────────────────────────── */
|
|
.doc-page {
|
|
background: #fff;
|
|
color: #000;
|
|
width: 816px; /* ~8.5 in at 96 dpi */
|
|
min-height: 1056px; /* ~11 in at 96 dpi */
|
|
padding: 82px 90px; /* ~0.85 in margins */
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
font-size: 12pt;
|
|
line-height: 1.6;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.doc-page img { max-width: 100%; height: auto; }
|
|
.doc-page table { border-collapse: collapse; max-width: 100%; }
|
|
.doc-page td, .doc-page th { border: 1px solid #ccc; padding: 4px 8px; }
|
|
.doc-page h1,h2,h3,h4,h5,h6 { line-height: 1.3; margin: .8em 0 .4em; }
|
|
.doc-page p { margin-bottom: .6em; }
|
|
|
|
/* Tabular data (CSV / TSV / spreadsheets) */
|
|
.doc-page .data-table-wrap { overflow-x: auto; max-width: 100%; margin-bottom: 12px; }
|
|
.doc-page .data-table {
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
.doc-page .data-table th, .doc-page .data-table td {
|
|
border: 1px solid #ddd;
|
|
padding: 4px 9px;
|
|
text-align: left;
|
|
}
|
|
.doc-page .data-table th { background: #f1f3f5; font-weight: 700; position: sticky; top: 0; }
|
|
.doc-page .data-table tr:nth-child(even) td { background: rgba(0,0,0,.025); }
|
|
.doc-page .sheet-title {
|
|
font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
|
|
color: #888; margin: 16px 0 6px;
|
|
}
|
|
|
|
/* Source code (.js, .json, .xml, .yaml, …) */
|
|
.doc-page .code-content {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
margin: 0;
|
|
}
|
|
.doc-page .code-content code.hljs { padding: 0; background: transparent; }
|
|
|
|
/* Plain-text (.txt) rendering */
|
|
.doc-page .txt-content {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 13.5px;
|
|
line-height: 1.55;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: break-word;
|
|
margin: 0;
|
|
color: #000;
|
|
}
|
|
|
|
/* Styles used by doc-renderer (JSDoc output) */
|
|
.doc-page .doc-table { border-collapse: collapse; width: 100%; margin: 6px 0 14px; font-size: 13.5px; }
|
|
.doc-page .doc-table th, .doc-page .doc-table td { border: 1px solid #ccc; padding: 6px 9px; text-align: left; vertical-align: top; }
|
|
.doc-page .doc-table th { background: #f1f3f5; font-weight: 700; }
|
|
.doc-page .doc-table tr:nth-child(even) td { background: rgba(0,0,0,.03); }
|
|
.doc-page .doc-table.sized { table-layout: fixed; }
|
|
.doc-page .doc-table.sized td { overflow-wrap: break-word; }
|
|
.doc-page .docimg { max-width: 100%; max-height: 400px; height: auto; vertical-align: top; }
|
|
.doc-page .ftnref { color: #1e88e5; font-weight: 600; padding: 0 1px; }
|
|
.doc-page .comref { color: #d08000; font-weight: 600; padding: 0 1px; cursor: help; }
|
|
.doc-page .docprops { font-size: 12px; color: #666; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; margin-bottom: 14px; }
|
|
.doc-page .docbox { float: left; border: 1px solid #ccc; border-radius: 4px; padding: 4px 10px; margin: 2px 14px 6px 0; background: rgba(0,0,0,.04); max-width: 260px; }
|
|
.doc-page .docbox p { margin: 0; }
|
|
.doc-page h3.sec { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #888; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid #e0e0e0; }
|
|
|
|
/* ── ODF iframe wrapper ─────────────────────────────────────────────────── */
|
|
.odf-frame {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,.5);
|
|
width: 816px;
|
|
height: 1056px;
|
|
border: none;
|
|
display: block;
|
|
}
|
|
|
|
/* ── Utilities ──────────────────────────────────────────────────────────── */
|
|
.hidden { display: none !important; }
|
|
|
|
/* ── Print layer ────────────────────────────────────────────────────────── */
|
|
#printLayer { display: none; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════════════════
|
|
PRINT STYLES
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
@media print {
|
|
html, body {
|
|
background: #fff;
|
|
overflow: visible;
|
|
height: auto;
|
|
}
|
|
|
|
#outerContainer { display: block; height: auto; }
|
|
#sidebarContainer,
|
|
#toolbarContainer,
|
|
#loadingBar,
|
|
#errorBar,
|
|
#dropzone { display: none !important; }
|
|
|
|
#mainContainer { display: block; }
|
|
#viewerContainer { background: #fff; padding: 0; display: block; overflow: visible; }
|
|
#docContainer { gap: 0; padding: 0; }
|
|
|
|
/* PDF pages */
|
|
.pdf-page {
|
|
box-shadow: none;
|
|
page-break-after: always;
|
|
break-after: page;
|
|
margin: 0;
|
|
}
|
|
|
|
/* HTML pages */
|
|
.doc-page {
|
|
box-shadow: none;
|
|
page-break-after: always;
|
|
break-after: page;
|
|
margin: 0;
|
|
width: 100%;
|
|
min-height: auto;
|
|
}
|
|
|
|
/* Comic pages */
|
|
.comic-page {
|
|
box-shadow: none;
|
|
width: 100% !important;
|
|
margin: 0;
|
|
page-break-after: always;
|
|
break-after: page;
|
|
}
|
|
|
|
/* ODF iframe */
|
|
.odf-frame {
|
|
box-shadow: none;
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* PDF print layer takes over */
|
|
#printLayer {
|
|
display: block;
|
|
}
|
|
#printLayer .print-page {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
page-break-after: always;
|
|
break-after: page;
|
|
}
|
|
/* Hide regular PDF canvases when printing via print layer */
|
|
body.pdf-printing #docContainer { display: none; }
|
|
}
|