Skip to content

Instantly share code, notes, and snippets.

@opicron
Created September 17, 2024 09:45
Show Gist options
  • Save opicron/79e9267a493c41ee0d211f340fef4b09 to your computer and use it in GitHub Desktop.
Save opicron/79e9267a493c41ee0d211f340fef4b09 to your computer and use it in GitHub Desktop.
PDF embedder custom CSS
/*pdf hide mobile notices*/
.pdfemb-wantmobile, .pdfemb-wantmobile-fsarea {
display:none;
}
.pdfemb-pagescontainer {
top:31px !important;
}
.pdfemb-toolbar {
display:block !important;
}
/*manga contain*/
/* PREV PAGE BUTTON IMAGE CSS */
.pdfemb-zoomout,
.pdfemb-zoomin
/*.pdfemb-fs*/ {
display: none !important;
}
div.pdfemb-toolbar button.pdfemb-prev::before {
content: "Vorige" !important;
color:black;
padding:1em;
}
/* NEXT PAGE BUTTON IMAGE CSS */
div.pdfemb-toolbar button.pdfemb-next::before {
content: "Volgende" !important;
color:black;
padding:1em;
}
div.pdfemb-inner-div {
background: white !important;
/*border-bottom: 1px dashed lightgray !important;*/
}
.pdfembTextLayer {
opacity: 1 !important;
}
div.pdfemb-inner-div ::after {
position: absolute;
/*content:"*" !important;*/
color:black !important;
left: calc(50% - 5px) !important;
font-family: 'Font Awesome 6 Sharp' !important;
font-weight:900 !important;
content: '\f70b' !important;
color: var(--accent) !important;
opacity:0.9 !important;
font-size:1.5em;
top:77vh;
}
.pdfemb-pagescontainer {
background: white !important;
}
.pdfemb-viewer {
border: 0 !important;
background: white !important;
}
.pdfemb-toolbar {
/*display:none !important;*/
/*width:90% !important;*/
background:white !important;
}
.pdfemb-pagescontainer {
/*top:0 !important;*/
}
.manga.wp-block-wpe-slider .swiper-main .swiper-slide img {
object-fit: contain;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment