X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=simpleWebSlides.css;h=a42c85e6ab4fc1629860f2b28c80a73529ed5fd7;hb=9262e1c26fe53f5c68167eadbda074c5ddbb2658;hp=3668572819867f2ce62184fb18733bf3c7884797;hpb=260077aa5e5437d055ea4aa249930c3a9653b6c6;p=hacks%2FsimpleWebSlides.git diff --git a/simpleWebSlides.css b/simpleWebSlides.css index 3668572..a42c85e 100644 --- a/simpleWebSlides.css +++ b/simpleWebSlides.css @@ -1,65 +1,95 @@ -/* default is 4:3 */ /* Common */ body { - margin: 0 0; - padding: 0 0; + margin: 0 0 0 0; + padding: 0 0 0 0; + -webkit-box-sizing: border-box; + box-sizing: border-box; + -moz-box-sizing: border-box; } -.sws-active-slide { - display: block; -} .sws-active-object { visibility: visible; } -.sws-canvas { - display: block; +.sws-inactive-object { + opacity: 0; } -.sws-title { - vertical-align:middle; + +.sws-canvas { + 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-cover { + justify-content: center; + -webkit-justify-content: center; + text-align:center; +} + +/* Layout of a canvas */ +.sws-header , .sws-title,{ + -webkit-box-align:start; + display:block; } + .sws-inner-canvas { - /* white-space: nowrap;*/ + 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:inline-block; + display:block; width: 100%; - vertical-align: middle; - max-height: 100%; - overflow:hidden; } -.sws-vertical-align { - display:inline-block; - height: 33%; - width: 0%; - vertical-align:text-bottom; + +.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 .sws-inactive-object { - visibility: hidden; -} :root.sws-display body { - background: black; + overflow:hidden; } :root.sws-display .sws-canvas { width:133.3vh; height:100vh; } -:root.sws-display .sws-inner-canvas { - display:inline-block; -} + + /* display mode */ /* Aspect is 4/3, 16/9, 16/10 (default is 4/3) */ @@ -90,6 +120,9 @@ body > h1, body > h2, body > h3 { :root.sws-display .sws-inactive-slide { display: none; } +:root.sws-display body { + background: black; +} /* Print Mode */ @@ -103,7 +136,7 @@ body > h1, body > h2, body > h3 { :root.sws-print body { width: 297mm; - overflow:auto; + height: 210mm; padding: 0pt 0pt 0pt 0pt; margin: 0pt 0pt 0pt 0pt; @@ -111,41 +144,26 @@ body > h1, body > h2, body > h3 { :root.sws-print .sws-canvas { position: relative; - display:inline-block; width: 297mm; height: 210mm; - page-break-after: auto; + 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 { +:root.sws-print .sws-canvas:last{ page-break-after: avoid; } - - - :root.sws-print .sws-inactive-slide { opacity: 1; - display: inline-block; } p { width: 100%; } -.sws-header, .sws-title, .sws-inner-canvas, .sws-footer { - position: absolute; - width: 100%; - padding: 0vh; - margin: 0vh; - border: 0vh; -} - -:root.sws-print .sws-inner-canvas { - display:block; -} - /* Control Panel */ @@ -155,11 +173,10 @@ p { width: 100%; } @font-face { font-family: 'entypo'; - font-style: 'normal'; - font-weight: 'normal'; + font-style: normal; + font-weight: normal; src: url('entypo.woff') format('woff'); } - /* entypo */ .sws-symbol { font-family: 'entypo'; @@ -176,6 +193,7 @@ p { width: 100%; } text-align: center; display:none; } + #sws-control-panel { /* visibility: hidden;*/ font-size:6vh; @@ -222,8 +240,8 @@ p { width: 100%; } #sws-control-panel a { color: black; text-decoration: none; - display:inline-block; - padding:0pt 1em; 0pt 1em; + display: inline-block; + padding: 0pt 1em 0pt 1em; vertical-align: middle; }