.
[hacks/simpleWebSlides.git] / simpleWebSlides.css
index 3a56dd2..c2c72b7 100644 (file)
@@ -13,9 +13,10 @@ body {
 }
 
 .sws-canvas {
+    display:flex;
+    justify-content: center;
+    flex-direction:column;
     box-sizing: border-box;
-    text-align: center;
-    vertical-align:middle;
 }
 
 .sws-cover .sws-content {
@@ -44,15 +45,14 @@ body {
 }
 
 .sws-header, .sws-title, .sws-inner-canvas, .sws-footer{
-    display:inline-block;
+    display:block;
     margin:0;
     padding:0;
     width: 100%;
     box-sizing: border-box;
+    overflow:hidden;
 }
 
-
-
 body > h1, body > h2, body > h3, body > a.sws-previous {
     display: none;
 }
@@ -71,16 +71,16 @@ body > h1, body > h2, body > h3, body > a.sws-previous {
 }
 
 :root.sws-by-width body {
-    font-size: 4vh;
+    font-size: 3.5vh;
 }
 :root.sws-by-height.sws-aspect-4-3 body {
-    font-size: 3vw;
+    font-size: 2.625vw;
 }
 :root.sws-by-height.sws-aspect-16-9 body {
-    font-size: 2.25vw;
+    font-size: 1.96875vw;
 }
 :root.sws-by-height.sws-aspect-16-10 body {
-    font-size: 2.5vw;
+    font-size: 2.1875vw;
 }
 
 :root.sws-by-width.sws-aspect-4-3 .sws-canvas {
@@ -142,14 +142,14 @@ body > h1, body > h2, body > h3, body > a.sws-previous {
 /*                 Print Mode                 */
 /* ****************************************** */
 
-
 :root.sws-print body {
     background: white;
     width: 297mm;
-    padding: 0pt 0pt 0pt 0pt;
-    margin: 0pt 0pt 0pt 0pt;
-
+    padding: 0;
+    margin: 0;
+    font-size: 21pt; 
 }
+
 @media print {
 
     @page {
@@ -160,14 +160,12 @@ body > h1, body > h2, body > h3, body > a.sws-previous {
 }
 
 :root.sws-print .sws-canvas {
-    position: relative;
     width: 297mm;
-    height: 209mm;
+    height: 210mm;
     /* not 210mm to avoid rounding errors */
     page-break-after: always;
     padding: 0pt 0pt 0pt 0pt;
     margin: 0pt 0pt 0pt 0pt;
-    overflow: hidden;
 }
 
 :root.sws-print .sws-canvas:last {
@@ -178,7 +176,6 @@ body > h1, body > h2, body > h3, body > a.sws-previous {
     opacity: 1;
 }
 
-
 p { width: 100%; }
 
 /* counters for the toc */