update themes and transitions
to match reveal.js 3.0.0
diff --git a/R/revealjs_presentation.R b/R/revealjs_presentation.R
index 61cda17..e67149c 100644
--- a/R/revealjs_presentation.R
+++ b/R/revealjs_presentation.R
@@ -182,22 +182,25 @@
"beige",
"serif",
"solarized",
- "dark",
"blood",
"moon",
- "night")
+ "night",
+ "black",
+ "league",
+ "white")
}
revealjs_transitions <- function() {
- c("default",
- "cube",
- "page",
- "concave",
- "zoom",
- "linear",
+ c(
+ "default",
+ "none",
"fade",
- "none")
+ "slide",
+ "convex",
+ "concave",
+ "zoom"
+ )
}
diff --git a/inst/rmarkdown/templates/revealjs_presentation/default.html b/inst/rmarkdown/templates/revealjs_presentation/default.html
index f1a473f..7cf650f 100644
--- a/inst/rmarkdown/templates/revealjs_presentation/default.html
+++ b/inst/rmarkdown/templates/revealjs_presentation/default.html
@@ -12,7 +12,7 @@
<title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="$revealjs-url$/css/reveal.min.css"/>
<!-- some tweaks to reveal css -->
@@ -96,15 +96,13 @@
<link rel="stylesheet" href="$css$"/>
$endfor$
$endif$
- <!-- If the query includes 'print-pdf', include the PDF print sheet -->
+ <!-- Printing and PDF exports -->
<script>
- if( window.location.search.match( /print-pdf/gi ) ) {
- var link = document.createElement( 'link' );
- link.rel = 'stylesheet';
- link.type = 'text/css';
- link.href = '$revealjs-url$/css/print/pdf.css';
- document.getElementsByTagName( 'head' )[0].appendChild( link );
- }
+ var link = document.createElement( 'link' );
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
+ document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="$revealjs-url$/lib/js/html5shiv.js"></script>