From a77cc7bcd83a3fe80420c96b4c1362a71a23a1fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Fri, 14 Jun 2013 15:58:14 +0200 Subject: [PATCH] Fix the theme, restaure print mode. --- simpleWebSlides.css | 41 ++++++++++++++++++++++++++++++++++------- themes/webTwoPointO.css | 34 +++++++++++++++++++--------------- 2 files changed, 53 insertions(+), 22 deletions(-) diff --git a/simpleWebSlides.css b/simpleWebSlides.css index 3821e30..39249a2 100644 --- a/simpleWebSlides.css +++ b/simpleWebSlides.css @@ -1,4 +1,11 @@ /* default is 4:3 */ + +@media print { + body { + width: 4cm; + height: 3cm; + } +} .sws-canvas { width:133.3vh; height:100vh; @@ -10,15 +17,18 @@ } :root.sws-aspect-16-9 .sws-canvas { - width:177.7vh; - height:100vh; + width:177.7vh; + height:100vh; } :root.sws-aspect-16-10 .sws-canvas { - width:160vh; - height:100vh; + width:160vh; + height:100vh; } + + + .sws-canvas { position: relative; margin-left: auto; @@ -33,16 +43,33 @@ display: block; } -.sws-inactive-slide { +@media print { + .sws-inactive-slide { + display: block; + } +} + +@media screen { + + .sws-inactive-slide { display: none; + } } .sws-active-object { visibility: visible; } -.sws-inactive-object { - visibility: hidden; +@media print { + .sws-inactive-object { + visibility: visible; + } +} + +@media screen { + .sws-inactive-object { + visibility: hidden; + } } .sws-header, .sws-title, .sws-inner-canvas, .sws-footer { diff --git a/themes/webTwoPointO.css b/themes/webTwoPointO.css index 9a8ba9b..4dd0c78 100644 --- a/themes/webTwoPointO.css +++ b/themes/webTwoPointO.css @@ -7,28 +7,36 @@ and is horizontally centered. The .sws-canvas has an aspect ratio of 4/3 or 16/9 */ - +/* No header in this theme */ .sws-header { - top: 0vh; - height: 5vh; + display: none; } + +/* Title of the slide */ .sws-title { - top: 5vh; - height: 15vh; + top: 0vh; + height: 10vh; +} +.sws-title h1 { + color: #f14a29; + font-size: 5vh; + text-align:center; } +/* The inner canvas and content */ .sws-inner-canvas { - top: 20vh; - height: 75vh; + top: 10vh; + height: 85vh; +} +.sws-content { + padding: 3vh; } + .sws-footer { top: 95vh; height: 5vh; text-align: right; } -.sws-content { - padding: 3vh; -} .sws-slide-num-sep:after { content: "/"; @@ -36,7 +44,7 @@ body { font-family: 'Armata',sans-serif; - font-size: 4vh; + font-size: 3vh; background-color: black; color: white; } @@ -50,10 +58,6 @@ ul { } -h1 { color: #f14a29; - font-size: 6vh; - text-align:center; - } em { color: #f14a29; font-style:normal; -- 2.17.1