Sanitize the generic CSS.
}
.sws-canvas {
+ display:flex;
+ flex-direction:column;
box-sizing: border-box;
- text-align: center;
- vertical-align:middle;
}
.sws-cover .sws-content {
}
.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;
}
}
: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 {
/* 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 {
}
+
+
+
+
p { width: 100%; }
/* counters for the toc */
SWS.Effects = new function () {
var self = this;
-
+
self.objectDeactivateFadeOut = function (o) {
if (o.is("embed")) return;
o.animate({'opacity': '0'}, 200,
};
all.find("*").addBack().promise().done(function() {
//wait for all elements to finish transitionning, in case a callback animate something
- //an denable _input_events again.
+ //and enable _input_events again.
_disable_input_events = false;
});
});
self.printMode = function () {
_print_mode = true;
+
+ var old_fx_status = $.fx.off;
+ //disable animation while printing.
+
+ $.fx.off = true;
var progress = $("<div style='position:fixed;top:0pt;left:0pt;background:white;color:black;width:100%;height:100vh;z-index:200;' id='sws-print-progress'>Rendering presentation: <span id='sws-percent-progress'></span>%</div>");
$("body").append(progress);
$("#sws-percent-progress").text(100);
progress.remove();
window.status = 'Ready';
- window.print();
+ $.fx.off = old_fx_status;
+ if (SWS.Utils.getParameterByName("dialog") != "off") window.print();
}
};
loop();
display: none;
}
-/* Title of the slide */
-.sws-title {
- padding: 2vmin 0 2vmin 0;
- height: 10%;
- z-index:2;
- vertical-align: middle;
-}
h1 {
color: #00486c;
font-size: larger;
text-align: center;
}
-.sws-title h1 {
- display:inline-block;
+
+.sws-title > h1 {
margin:0;
+ padding:0;
}
.sws-cover { display:flex;
}
.sws-inner-canvas {
- height: 85%;
+ height: 88%;
z-index: 2;
position: relative; /* to make z-index work */
+ margin:0;
+}
+
+/* Title of the slide */
+.sws-title {
+ height: 7%;
+ z-index:2;
+
}
.sws-footer {
+ margin:0;
height: 5%;
text-align:right;
padding-right:1ex;
color: #696968;
}
-:root.sws-display .sws-canvas {
- font-size: 2.2vw;
-}
-
+/*
:root.sws-print body {
font-size: 21pt;
}
@media print {
body { font-size: 21pt; }
}
+*/
p {
display:block;