diff options
Diffstat (limited to 'css/viewer.css')
-rw-r--r-- | css/viewer.css | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/css/viewer.css b/css/viewer.css index eca5f53..9d4594c 100644 --- a/css/viewer.css +++ b/css/viewer.css @@ -21,3 +21,24 @@ html .doorHangerRight:after { html .doorHangerRight:before { right: 53px!important; } + +/* Prevent printing from the browser when the download of a share is hidden. */ +@media print { + .pdfViewer.disabledTextSelection { + visibility: hidden; + display: none; + } +} + +/* Prevent text selection when the download of a share is hidden. */ +.pdfViewer.disabledTextSelection .textLayer { + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + +/* Override text cursor in descendants. */ +.pdfViewer.disabledTextSelection .textLayer * { + cursor: default; +} |