From efbd3731c986a8555869c184cda69ff9b910ce9f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 23 Dec 2017 15:52:22 -0500 Subject: pdf support --- src/main.scss | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/main.scss') diff --git a/src/main.scss b/src/main.scss index be00d49..cdbc200 100644 --- a/src/main.scss +++ b/src/main.scss @@ -287,3 +287,29 @@ body.dnd { font-weight:bold; } } } + +/* D&D-style pages ************************************************************/ + +body.pdf { + position: absolute; + width: 100%; + height: 100%; + bottom: 0; + + display: flex; + flex-direction: column; + + article { + flex-grow: 2; + padding: 0; + + h1 { + text-align: center; + margin: 0.25em 0; + } + iframe { + width: 100%; + height: 100%; + } + } +} -- cgit v1.2.3 From bdb62265c5e0f8cbaa647479e10549f324e0712c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 23 Dec 2017 21:40:58 -0500 Subject: CSS: Improve display of tags on PDF pages --- src/main.scss | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.scss') diff --git a/src/main.scss b/src/main.scss index cdbc200..fadd75b 100644 --- a/src/main.scss +++ b/src/main.scss @@ -303,6 +303,10 @@ body.pdf { flex-grow: 2; padding: 0; + p { + float: left; + margin: 0.25em -100% 0.25em 0.25em; + } h1 { text-align: center; margin: 0.25em 0; -- cgit v1.2.3