Ajout cours 3.
[hacks/simpleWebSlides.git] / simpleWebSlides.css
index 2caa258..794eed4 100644 (file)
-@media screen {
-    .sws-canvas {
-        position: absolute;
-        width:100%;
-        height:100%;
-        overflow:hidden;
-    }
-
-    .sws-active-slide {
-        display: block;
-    }
-
-    .sws-inactive-slide {
-        display: none;
-    }
-
-    .sws-active-object {
-        visibility: visible;
-    }
-
-    .sws-inactive-object {
-        visibility: hidden;
-    }
-
-}
-
-@media print {
-
-    body {
-        margin: 0pt 0pt 0pt 0pt;
-        padding: 0pt 0pt 0pt 0pt;
-        border-width: 0pt;
-    }
-
-    .sws-canvas {
-        overflow:hidden;
-        position:relative;
-        border-width: 0cm;
-        border-style: none;
-        margin:0pt 0pt 0pt 0pt;
-        page-break-after:always;
-        width: 297mm;
-        height: 209.8mm; /* not 210 due to rounding errors */
-        padding:0pt;
-        left:0pt;
-        top:0pt;
-        display: block;
-        visibility:visible;
-        opacity:1.0;
-    }
-    .sws-canvas:last {
-        page-break-after: avoid;
-    }
-    .sws-active-slide, .sws-inactive-slide {
-        display: block;
-        visibility:visible;
-        opacity:1.0;
-
-    }
-    .sws-active-object, .sws-inactive-object {
-        visibility:visible;
-        opacity:1.0;
-    }
 
+/*         Common           */
+body {
+    margin: 0 0 0 0;
+    padding: 0 0 0 0;
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+    -moz-box-sizing: border-box;
 }
 
-body {
-    overflow:hidden;
+.sws-active-object {
+    visibility: visible;
+}
+.sws-inactive-object {
+    opacity: 0;
 }
 
+
 .sws-canvas {
-   top: 0pt;
-   left:0pt;
-   right:0pt;
-   bottom:0pt;
+    display: -webkit-flex;
+    display: flex;
+    flex-direction: column;
+    -webkit-flex-direction: column;
+    /* We make the box sizing border-box so that the user can freely add
+       padding and borders to canvas without changing the overall
+       layout */
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+    -moz-box-sizing: border-box;
 }
 
-.sws-slide {
-    position:absolute;
+.sws-cover {
+    justify-content: center;
+    -webkit-justify-content: center;
+    text-align:center;
 }
 
-.sws-slide .sws-footer {
-    position: absolute;
-    left: 0pt;
-    right: 0pt;
-    bottom: 0pt;
+/* Layout of a canvas */
+.sws-header , .sws-title,{
+    -webkit-box-align:start;
+    display:block;
+}
+
+.sws-inner-canvas {
+    top-margin: auto;
+    bottom-margin: auto;
+    display:flex;
+    display:-webkit-flex;
+    flex: 3;
+    -webkit-flex: 3;
+    flex-direction: column;
+    -webkit-flex-direction: column;
+    justify-content: center;
+    -webkit-justify-content:center;
+}
+
+.sws-content {
+    margin: 0vh;
+    padding: 0vh;
+    display:block;
+    width: 100%;
+}
+
+.sws-footer{
+    display:block;
 }
 
+.sws-header, .sws-title, .sws-inner-canvas, .sws-footer{
+    margin: 0 0 0 0;
+    padding: 0 0 0 0;
+    width: 100%;
+}
+
+
+
 body > h1, body > h2, body > h3 {
     display: none;
 }
+/*             Display Mode             */
+/****************************************/
+
+
+:root.sws-display body {
+    overflow:hidden;
+}
+
+:root.sws-display .sws-canvas {
+    width:133.3vh;
+    height:100vh;
+}
+
+
+/* display mode */
+/* Aspect is 4/3, 16/9, 16/10 (default is 4/3) */
+
+:root.sws-aspect-4-3 .sws-canvas {
+    width:133.3vh;
+    height:100vh;
+}
+
+:root.sws-aspect-16-9 .sws-canvas {
+    width:177.7vh;
+    height:100vh;
+}
+
+:root.sws-aspect-16-10 .sws-canvas {
+    width:160vh;
+    height:100vh;
+}
+
+:root.sws-display .sws-canvas {
+    position: relative;
+    margin-left: auto;
+    margin-right: auto;
+    padding: 0vh;
+    margin-top: 0vh;
+    margin-bottom: 0vh;
+}
+
+:root.sws-display .sws-inactive-slide {
+    display: none;
+}
+:root.sws-display body {
+    background: black;
+}
+
+
+/*                 Print Mode                 */
+/* ****************************************** */
+
+@page { margin: 0pt 0pt 0pt 0pt; }
+
+:root.sws-print body {
+    background: white;
+}
+
+:root.sws-print body {
+    width: 297mm;
+    height: 210mm;
+    padding: 0pt 0pt 0pt 0pt;
+    margin: 0pt 0pt 0pt 0pt;
+
+}
+
+:root.sws-print .sws-canvas {
+    position: relative;
+    width: 297mm;
+    height: 210mm;
+    clear:both;
+    float:left;
+    page-break-after: always;
+    padding: 0pt 0pt 0pt 0pt;
+    margin: 0pt 0pt 0pt 0pt;
+    overflow: hidden;
+}
+
+:root.sws-print .sws-canvas:last{
+    page-break-after: avoid;
+}
+:root.sws-print .sws-inactive-slide {
+    opacity: 1;
+}
+
+
+p { width: 100%; }
+
+/* counters for the toc */
+
+.sws-toc ul {
+    counter-reset: list-item;
+}
+
+.sws-toc li {
+    counter-increment: list-item;
+
+}
+.sws-toc li::marker {
+    content : counters(list-item, '.');
+}
+
+
+/*             Control Panel             */
+/*****************************************/
+
+
+
+@font-face {
+  font-family: 'entypo';
+  font-style: normal;
+  font-weight: normal;
+  src: url('entypo.woff') format('woff');
+}
+/* entypo */
+.sws-symbol {
+    font-family: 'entypo';
+}
+
+#sws-control-panel-canvas {
+    position: fixed;
+    z-index: 100;
+    left: 0pt;
+    bottom: 0pt;
+    width: 100%;
+    height: 100%;
+    overflow:hidden;
+    text-align: center;
+    display:none;
+}
 
 #sws-control-panel {
 /*    visibility: hidden;*/
-    display:none;
-    position: absolute;
-    bottom: 60pt;
-    left: 60pt;
-    text-align: center;
-    font-size:30pt;
-    border-radius: 5pt;
-    background-color: #ffffff;
-    opacity: 0.8;
+    font-size:6vh;
+    width: 100vh;
+    bottom: 0vh;
+    display:inline-block;
+    border-radius: 1vh;
+    background-color: white;
+    opacity: 0.9;
     color: black;
     z-index: 100;
+    margin-left: auto;
+    margin-right:auto;
     vertical-align:middle;
-    height: 60pt;
-/*    width:100%;*/
 }
-#sws-control-panel:before  {
-    content : "";
-    display: inline-block;
+
+
+#sws-control-panel-canvas:after{
+    content:"";
+    display:inline-block;
+    width: 0vh;
     height: 100%;
-    width: 0pt;
-    vertical-align: middle;
+    background:pink;
+    vertical-align:bottom;
+}
+
+#sws-control-panel-title-bar {
+    width: 100%;
+    font-size: 3vh;
+    text-align:right;
+}
+
+#sws-control-panel select
+ {
+     display: inline-block;
+     vertical-align: middle;
+     font-size: 3vh;
+ }
+
+#sws-control-panel-navigation {
+    text-align: center;
 }
+
 #sws-control-panel a {
+    color: black;
     text-decoration: none;
-    display:inline-block;
-    padding:0pt 10pt 0pt 10pt;
+    display: inline-block;
+    padding: 0pt 1em 0pt 1em;
     vertical-align: middle;
 }
+
+#sws-control-panel-title-bar a {
+    padding:0vh 2vh 0vh 0vh;
+    margin: 0 0 0 0;
+}
+
 #sws-control-panel a:hover {
     cursor: pointer;
 }
+#sws-control-panel-slide-input
+{
+    font-size: 3vh;
+    width: 3em;
+    vertical-align:middle;
+}
+#sws-control-panel-total-slides {
+    font-size: 3vh;
+    vertical-align:middle;
+}
 
-@media print {
-    sws-control-panel {
-        display: none;
-    };
+#sws-control-panel-navigation-bar {
+    width: 50vh;
+}
+#sws-print-container {
+    top: 0;
+    left: 0;
+    width: 29.7cm;
+    overflow: auto;
+    border: 1px;
+    padding: 1px 1px 1px 1px;
 }
\ No newline at end of file