Make the style as resolution independent as possible.
[hacks/simpleWebSlides.git] / themes / webTwoPointO.css
index f110830..9a8ba9b 100644 (file)
@@ -1,69 +1,70 @@
 @import url(https://fonts.googleapis.com/css?family=Armata&subset=latin,latin-ext);
 @import url(https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin,latin-ext);
 
-/* Default document properties */
-body {
-    font-family: 'Armata',sans-serif;
+/* Slide layout
+   .sws-{header,inner-canvas,footer} are in
+   a .sws-canvas which fills the whole viewport vertically
+   and is horizontally centered.
+   The .sws-canvas has an aspect ratio of 4/3 or 16/9
+*/
+
+.sws-header {
+    top: 0vh;
+    height: 5vh;
 }
-code, pre, tt {
-    font-family: 'Inconsolata', monospace;
+.sws-title {
+    top: 5vh;
+    height: 15vh;
 }
-
 .sws-inner-canvas {
-    top:0vh;
-    width:127vh;
-    height:93vh;
-    padding-left:3vh;
-    padding-right:3vh;
-    overflow:hidden;
+    top: 20vh;
+    height: 75vh;
+}
+.sws-footer {
+    top: 95vh;
+    height: 5vh;
+    text-align: right;
 }
 
-.sws-cover {
-    text-align:center;
+.sws-content {
+    padding: 3vh;
 }
 
-a { text-decoration: none; }
-ul {
-    list-style-type: square;
+.sws-slide-num-sep:after {
+    content: "/";
 }
-@media screen {
-    body, .sws-slide {
-        background-color: black;
-        color: white;
-    }
-    h1 {
-        color: #f14a29;
 
-    }
-    em {
-        color: #f14a29;
-        font-style:normal;
-    }
-    a {
-        color: #0092bf;
-        text-decoration:none;
-        font-style:normal;
-    }
+body {
+    font-family: 'Armata',sans-serif;
+    font-size: 4vh;
+    background-color: black;
+    color: white;
 }
-@media print {
-    body, .sws-slide {
-        background-color: white;
-        color: black;
-    }
-    em {
-        font-style:italic;
-    }
+
+code, pre, tt {
+    font-family: 'Inconsolata', monospace;
 }
 
-/* slide title */
-h1 {
-    font-weight: bolder;
-    text-align: center;
+ul {
+    list-style-type: square;
 }
 
-span.sws-slide-num-sep:after {
-    content : "⋯";
+
+h1 { color: #f14a29;
+     font-size: 6vh;
+     text-align:center;
+   }
+
+em { color: #f14a29;
+     font-style:normal;
+   }
+
+a {
+    color: #1092bf;
+    text-decoration:none;
+    font-style:normal;
 }
-.sws-footer {
+
+.centerbox {
     text-align: center;
-}
+}
\ No newline at end of file