Update dzslides template from source.

This commit is contained in:
Andrew Dunning 2015-10-22 17:13:25 -04:00
parent 06fe6706f1
commit 7733b15c8d

View file

@ -1,14 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="generator" content="pandoc">
$for(author-meta)$ $for(author-meta)$
<meta name="author" content="$author-meta$" /> <meta name="author" content="$author-meta$">
$endfor$ $endfor$
$if(date-meta)$ $if(date-meta)$
<meta name="dcterms.date" content="$date-meta$" /> <meta name="dcterms.date" content="$date-meta$">
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
$endif$ $endif$
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title> <title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style> <style type="text/css">code{white-space: pre;}</style>
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "" ""; }</style>
$endif$
$if(highlighting-css)$ $if(highlighting-css)$
<style type="text/css"> <style type="text/css">
$highlighting-css$ $highlighting-css$
@ -16,40 +23,87 @@ $highlighting-css$
$endif$ $endif$
$if(css)$ $if(css)$
$for(css)$ $for(css)$
<link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/> <link rel="stylesheet" href="$css$">
$endfor$ $endfor$
$else$ $else$
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet'>
<style> <style>
html { background-color: black; } html, .view body { background-color: black; counter-reset: slideidx; }
body { background-color: white; border-radius: 12px} body, .view section { background-color: white; border-radius: 12px }
/* A section is a slide. It's size is 800x600, and this will never change */ /* A section is a slide. It's size is 800x600, and this will never change */
section { section, .view head > title {
font-family: Arial, serif; /* The font from Google */
font-size: 20pt; font-family: 'Oswald', arial, serif;
} font-size: 30px;
address, blockquote, dl, fieldset, form, h1, h2, h3, h4, h5, h6, hr, ol, p, pre, table, ul, dl { padding: 10px 20px 10px 20px; } }
h1, h2, h3 {
.view section:after {
counter-increment: slideidx;
content: counter(slideidx, decimal-leading-zero);
position: absolute; bottom: -80px; right: 100px;
color: white;
}
.view head > title {
color: white;
text-align: center; text-align: center;
margin: 10pt 10pt 20pt 10pt; margin: 1em 0 1em 0;
} }
ul, ol {
margin: 10px 10px 10px 50px; h1, h2 {
margin-top: 200px;
text-align: center;
font-size: 80px;
} }
section.titleslide h1 { margin-top: 200px; } h3 {
h1.title { margin-top: 150px; } margin: 100px 0 50px 100px;
h1 { font-size: 180%; } }
h2 { font-size: 120%; }
h3 { font-size: 100%; } ul {
q { quotes: "“" "”" "" ""; } margin: 50px 200px;
blockquote { font-style: italic } }
/* Figures are displayed full-page, with the caption on li > ul {
top of the image/video */ margin: 15px 50px;
}
p {
margin: 75px;
font-size: 50px;
}
blockquote {
height: 100%;
background-color: black;
color: white;
font-size: 60px;
padding: 50px;
}
blockquote:before {
content: open-quote;
}
blockquote:after {
content: close-quote;
}
/* Figures are displayed full-page, with the caption
on top of the image/video */
figure { figure {
background-color: black; background-color: black;
width: 100%;
height: 100%;
}
figure > * {
position: absolute;
}
figure > img, figure > video {
width: 100%; height: 100%;
} }
figcaption { figcaption {
margin: 70px; margin: 70px;
font-size: 50px;
} }
footer { footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -66,10 +120,20 @@ $else$
https://developer.mozilla.org/en/CSS/CSS_transitions https://developer.mozilla.org/en/CSS/CSS_transitions
How to use CSS3 Transitions: */ How to use CSS3 Transitions: */
section { section {
-moz-transition: left 400ms linear 0s; -moz-transition: left 400ms linear 0s;
-webkit-transition: left 400ms linear 0s; -webkit-transition: left 400ms linear 0s;
-ms-transition: left 400ms linear 0s; -ms-transition: left 400ms linear 0s;
transition: left 400ms linear 0s; transition: left 400ms linear 0s;
}
.view section {
-moz-transition: none;
-webkit-transition: none;
-ms-transition: none;
transition: none;
}
.view section[aria-selected] {
border: 5px red solid;
} }
/* Before */ /* Before */
@ -85,10 +149,17 @@ $else$
.incremental > * { opacity: 1; } .incremental > * { opacity: 1; }
/* The current item */ /* The current item */
.incremental > *[aria-selected] { color: red; opacity: 1; } .incremental > *[aria-selected] { opacity: 1; }
/* The items to-be-selected */ /* The items to-be-selected */
.incremental > *[aria-selected] ~ * { opacity: 0.2; } .incremental > *[aria-selected] ~ * { opacity: 0; }
/* The progressbar, at the bottom of the slides, show the global
progress of the presentation. */
#progress-bar {
height: 2px;
background: #AAA;
}
</style> </style>
$endif$ $endif$
$if(math)$ $if(math)$
@ -105,10 +176,9 @@ $if(title)$
$if(subtitle)$ $if(subtitle)$
<h1 class="subtitle">$subtitle$</h1> <h1 class="subtitle">$subtitle$</h1>
$endif$ $endif$
$for(author)$ <footer>
<h2 class="author">$author$</h2> $if(author)$<span class="author">$for(author)$$author$$sep$, $endfor$</span>$endif$ · $if(date)$<span class="date">$date$</span>$endif$
$endfor$ </footer>
<h3 class="date">$date$</h3>
</section> </section>
$endif$ $endif$
$for(include-before)$ $for(include-before)$