.pdfp {
--pdfp-bg: #1b1c1f;
--pdfp-bar: #26272b;
--pdfp-fg: #f1f1f1;
--pdfp-accent: #5aa2ff;
position: relative;
display: flex;
flex-direction: column;
max-width: 100%;
margin: 1.5em 0;
border-radius: 8px;
overflow: hidden;
background: var(--pdfp-bg);
color: var(--pdfp-fg);
font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
outline: none;
}
.pdfp *,
.pdfp *::before,
.pdfp *::after {
box-sizing: border-box;
}
.pdfp:focus-visible {
box-shadow: 0 0 0 3px var(--pdfp-accent);
} .pdfp-fallback {
display: block;
padding: 1.2em;
color: var(--pdfp-accent);
} .pdfp button {
all: unset;
box-sizing: border-box;
cursor: pointer;
}
.pdfp button:focus-visible,
.pdfp a.pdfp-btn:focus-visible {
outline: 2px solid var(--pdfp-accent);
outline-offset: 2px;
} .pdfp-body {
position: relative;
display: flex;
min-height: 0;
max-height: 88vh;
aspect-ratio: var(--pdfp-ratio, 1.7778);
}
.pdfp-stage {
position: relative;
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
touch-action: pan-y;
}
.pdfp-canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.pdfp-msg {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
padding: 1em;
text-align: center;
background: var(--pdfp-bg);
}
.pdfp-msg[hidden] {
display: none;
} .pdfp .pdfp-nav {
position: absolute;
top: 50%;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.55);
color: #fff;
opacity: 0;
transform: translateY(-50%);
transition: opacity 0.15s;
}
.pdfp .pdfp-nav--prev {
left: 10px;
}
.pdfp .pdfp-nav--next {
right: 10px;
}
.pdfp-stage:hover .pdfp-nav,
.pdfp:focus-within .pdfp-nav {
opacity: 1;
}
.pdfp .pdfp-nav[disabled] {
display: none;
}
@media (hover: none) {
.pdfp .pdfp-nav {
opacity: 0.8;
}
} .pdfp-thumbs {
display: none;
flex: 0 0 140px;
position: relative;
overflow-y: auto;
padding: 10px 10px 0;
background: var(--pdfp-bar);
border-right: 1px solid rgba(255, 255, 255, 0.08);
scrollbar-width: thin;
}
.pdfp--thumbs .pdfp-thumbs {
display: block;
}
.pdfp .pdfp-thumb {
display: block;
position: relative;
width: 100%;
margin: 0 0 10px;
padding: 4px;
border: 2px solid transparent;
border-radius: 6px;
}
.pdfp .pdfp-thumb:hover {
border-color: rgba(255, 255, 255, 0.35);
}
.pdfp .pdfp-thumb[aria-current="true"] {
border-color: var(--pdfp-accent);
}
.pdfp-thumb canvas {
display: block;
width: 100%;
height: auto;
background: #fff;
}
.pdfp-thumb-n {
position: absolute;
left: 8px;
bottom: 8px;
padding: 0 5px;
border-radius: 3px;
background: rgba(0, 0, 0, 0.65);
font-size: 11px;
color: #fff;
} .pdfp-bar {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 6px;
padding: 6px 10px;
background: var(--pdfp-bar);
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pdfp-group {
display: flex;
align-items: center;
gap: 4px;
}
.pdfp-group--end {
justify-self: end;
}
.pdfp .pdfp-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 6px;
color: var(--pdfp-fg);
text-decoration: none;
cursor: pointer;
}
.pdfp .pdfp-btn:hover {
background: rgba(255, 255, 255, 0.12);
}
.pdfp .pdfp-btn[aria-pressed="true"] {
background: rgba(255, 255, 255, 0.18);
}
.pdfp .pdfp-btn[disabled] {
opacity: 0.35;
pointer-events: none;
}
.pdfp .pdfp-btn[hidden] {
display: none;
}
.pdfp-count {
min-width: 72px;
text-align: center;
font-variant-numeric: tabular-nums;
}
.pdfp svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
} @media (max-width: 640px) {
.pdfp-thumbs {
position: absolute;
top: 0;
bottom: 0;
left: 0;
z-index: 3;
width: 130px;
box-shadow: 4px 0 14px rgba(0, 0, 0, 0.4);
}
} .pdfp.pdfp--fs {
position: fixed;
inset: 0;
z-index: 999999;
width: 100%;
height: 100%;
max-width: none;
margin: 0;
border-radius: 0;
}
.pdfp--fs .pdfp-body {
flex: 1 1 auto;
max-height: none;
aspect-ratio: auto;
}
html.pdfp-lock {
overflow: hidden;
}