From d15280c6ce6c6094c996736afe11f855da48c130 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Tue, 8 Aug 2017 11:52:16 +0200 Subject: [PATCH] prevent pdfs from being huge --- www/code/code.less | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/code/code.less b/www/code/code.less index 6c620fff8..79ec0af11 100644 --- a/www/code/code.less +++ b/www/code/code.less @@ -59,8 +59,13 @@ body { box-sizing: border-box; font-family: Calibri,Ubuntu,sans-serif; word-wrap: break-word; - media-tag * { - max-width:100%; + media-tag { + * { + max-width:100%; + } + iframe[type="application/pdf"] { + max-height:50vh; + } } }