Make the presentation have the correct aspect ratio even when the window has a smalle...
[hacks/simpleWebSlides.git] / themes / uPsud.css
index eb41dbb..f08cea5 100644 (file)
 @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);
 
+/**** structure of the slide in this theme:
+      no-header
+      title : 10%
+      text : 80% == 20 lines of text.
+      footer :10%
+
+
+
+*/
+
+
 /* No header in this theme */
 .sws-header {
     display: none;
 }
 
-/* Title of the slide */
-.sws-title {
-    padding: 2vh 0 2vh 0;
-    height: 5vh;
-}
 
 h1 {
     color: #00486c;
-    font-size: 5vh;
-    text-align:center;
+    font-size: larger;
+    text-align: center;
+}
+
+.sws-title > h1 {
+    margin:0;
+    padding:0;
 }
 
+.sws-cover { display:flex;
+            flex-direction:column;
+            justify-content: center;
+          }
+
+
+.sws-toc { position: absolute;
+          left: 0;
+          bottom: 0;
+          right: 0;
+          top:0;
+        }
+
+.sws-toc > .sws-content {
+    position:absolute;
+    top: 20%;
+    width:100%;
+}
+
+
 .sws-canvas {
     color: #696968;
-    background: white;
-    padding: 0 0 0 0;
-    margin: 0 0 0 0;
-    /* allows the canvas to cover the logo needed */
-    z-index:2;
+    background: #fff;
+    padding:0;
+    margin: 0;
+    position:relative;
+    z-index:0;
 }
 
-.sws-footer {
-    height: 5vh;
-    text-align: right;
+.sws-inner-canvas {
+    height: 88%;
+    z-index: 2;
+    position: relative; /* to make z-index work */
+    margin:0;
 }
 
-.sws-canvas:after {
+/* Title of the slide */
+.sws-title {
+    height: 7%;
+    z-index:2;
+
+}
+
+.sws-footer {
+    margin:0;
+    height: 5%;
+    text-align:right;
+    padding-right:1ex;
+    vertical-align: middle;
+    z-index: 2;
+}
+
+.sws-footer::before {
+    display:inline-block;
+    height:12%;
+    width: 12%;
+    left: 0.5ch;
+    bottom:0.5ch;
     position:absolute;
-    bottom: 1vh;
-    left:1vh;
-    display:block;
-    width:10vh;
-    height:10vh;
-    color:red;
     content:"";
-    background-size: 10vh;
-    background-image: url("upsud.png");
+    background-size: contain;
+    background-image: url("logo_psud_psay.png");
     background-repeat: no-repeat;
-    z-index: -1;
+    z-index: 1;
 }
 
+
 .sws-slide-num-sep:after {
     content: "/";
 }
 
+
 @font-face {
   src: url("DIN-Medium.ttf") format("truetype");
   font-family: "DIN";
@@ -68,11 +118,22 @@ h1 {
 
 body {
     font-family: 'DIN',sans-serif;
-    font-size: 3.5vh;
     background-color: white;
     color: #696968;
 }
 
+/*
+:root.sws-print body {
+    font-size: 21pt;
+}
+
+
+
+@media print {
+    body { font-size: 21pt; }
+}
+*/
+
 p {
     display:block;
     width:92%;
@@ -84,9 +145,11 @@ p {
 
 code, pre, tt {
     font-family: 'Inconsolata', monospace;
-    color: #494948;
+    /*color: #494948;*/
 }
+
 code {
+    display: block;
     white-space: pre;
 }
 
@@ -94,7 +157,7 @@ ul  {
     list-style-type: square;
 }
 
-ul,il {
+ul, ol {
     list-style-position: inside;
     width: 92%;
     padding: 0 4% 0 4%;
@@ -108,12 +171,12 @@ ul.empty {
     color:    #92b938;
 }
 
-.done:after {
+.done::after {
     content: " ✔";
 }
 
 li {
-    margin-top:0.5vh;
+    margin-top:0.5vmin;
 }
 
 tt em, code em {
@@ -124,6 +187,12 @@ em { color: #92b938;
      font-style:normal;
    }
 
+s {
+    color: #ff1111;
+    font-style: normal;
+    text-decoration: none;
+}
+
 a {
     color: #92b938;
     text-decoration:none;
@@ -190,11 +259,12 @@ table.btable {
 }
 
 dl {
-    padding: 1vh 1vh 1vh 1vh;
+    padding: 1vmin 1em 1vmin 1em;
 }
 
 dt { display: inline;
      color: #92b938;
+     float:left;
    }
 
 dt:after {
@@ -202,9 +272,9 @@ dt:after {
     content: " : ";
 }
 
-dd { display:inline-block;
-     padding: 0 0 0 0;
-     text-indent: 0;
+dd { display: block;
+     padding: 0 0 0 4em;
+     text-indent: 1em;
      margin: 0 0 0 0;
    }
 
@@ -232,4 +302,57 @@ table.simple tr {
     font-size:small;
     margin: 0.25em;
     padding:0.1em;
+}
+
+div.twocol {
+    width:99%;
+    position:absolute;
+    top:5em;
+}
+
+div.twocol > div:first-child {
+    display:inline-block;width:47%;
+    position:absolute;
+    box-sizing:border-box;
+    padding: 0 1em;
+    border-style:dashed;
+    border-width: 0 1pt 0 0;
+    border-color:gray;
+    left: 0pt;
+    top:0pt;
+}
+
+div.twocol > div:last-child {
+    display:inline-block;
+    width:47%;
+    position:absolute;
+    box-sizing:border-box;
+    padding: 0 0em 0 5em;
+    vertical-align:text-top;
+    right: 0pt;
+    top:0pt;
+}
+table.withborder {
+    border-collapse: collapse;
+}
+table.withborder td {
+    border-style: solid;
+    border-width: 1pt;
+    min-width:20pt;
+    height: 20pt;
+}
+
+mark {
+    color: #ff6612;
+    background: none;
+}
+u {
+    color: #00486c;
+    background: none;
+    text-decoration: none;
+}
+
+kbd {
+    color: #393938;
+    font-family:inherit;
 }
\ No newline at end of file