Files
cours/.obsidian/snippets/dark_pdf.css
2026-04-01 00:33:54 +02:00

35 lines
952 B
CSS

/* ╺┳┓┏━┓┏━┓╻┏ ┏┳┓┏━┓╺┳┓┏━╸ */
/* ┃┃┣━┫┣┳┛┣┻┓┃┃┃┃ ┃ ┃┃┣╸ */
/* ╺┻┛╹ ╹╹┗╸╹ ╹╹ ╹┗━┛╺┻┛┗━╸ */
/* for all sorts of ui elements : */
/* pdfs, figures... */
.theme-dark .pdf-cropped-embed, /* PDF++ rectangle highlights embeds */
.theme-dark .pdfViewer > .page,
.pdf-thumbnail-view .thumbnail,
.pdf-thumbnail-view .thumbnail::after
{
filter: invert(0.7)
/* brightness(0.85) */
/* contrast(1.6) */
brightness(1.2)
contrast(2.5)
hue-rotate(180deg)
saturate(100%)
/* blur(0.5px) /1* blur makes the white text less agressive *1/ */
;
}
.pdf-thumbnail-view .thumbnail::after {
filter: invert(1)
brightness(1)
contrast(1.5)
blur(0.5px) /* blur for better antialiasing */
;
}