pluralize background classname to match '.slides'

This commit is contained in:
Hakim El Hattab 2013-06-10 08:49:53 +02:00
parent 7e50404ad7
commit 8e348af8b8
4 changed files with 13 additions and 13 deletions

View File

@ -1304,7 +1304,7 @@ body {
* *
*********************************************/ *********************************************/
.reveal>.background { .reveal>.backgrounds {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -1338,7 +1338,7 @@ body {
} }
/* Linear sliding transition style */ /* Linear sliding transition style */
.reveal[data-background-transition=linear]>.background .slide-background { .reveal[data-background-transition=linear]>.backgrounds .slide-background {
opacity: 1; opacity: 1;
-webkit-backface-visibility: hidden; -webkit-backface-visibility: hidden;
@ -1346,14 +1346,14 @@ body {
-ms-backface-visibility: hidden; -ms-backface-visibility: hidden;
backface-visibility: hidden; backface-visibility: hidden;
} }
.reveal[data-background-transition=linear]>.background .slide-background.past { .reveal[data-background-transition=linear]>.backgrounds .slide-background.past {
-webkit-transform: translate(-100%, 0); -webkit-transform: translate(-100%, 0);
-moz-transform: translate(-100%, 0); -moz-transform: translate(-100%, 0);
-ms-transform: translate(-100%, 0); -ms-transform: translate(-100%, 0);
-o-transform: translate(-100%, 0); -o-transform: translate(-100%, 0);
transform: translate(-100%, 0); transform: translate(-100%, 0);
} }
.reveal[data-background-transition=linear]>.background .slide-background.future { .reveal[data-background-transition=linear]>.backgrounds .slide-background.future {
-webkit-transform: translate(100%, 0); -webkit-transform: translate(100%, 0);
-moz-transform: translate(100%, 0); -moz-transform: translate(100%, 0);
-ms-transform: translate(100%, 0); -ms-transform: translate(100%, 0);
@ -1361,14 +1361,14 @@ body {
transform: translate(100%, 0); transform: translate(100%, 0);
} }
.reveal[data-background-transition=linear]>.background .slide-background>.slide-background.past { .reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.past {
-webkit-transform: translate(0, -100%); -webkit-transform: translate(0, -100%);
-moz-transform: translate(0, -100%); -moz-transform: translate(0, -100%);
-ms-transform: translate(0, -100%); -ms-transform: translate(0, -100%);
-o-transform: translate(0, -100%); -o-transform: translate(0, -100%);
transform: translate(0, -100%); transform: translate(0, -100%);
} }
.reveal[data-background-transition=linear]>.background .slide-background>.slide-background.future { .reveal[data-background-transition=linear]>.backgrounds .slide-background>.slide-background.future {
-webkit-transform: translate(0, 100%); -webkit-transform: translate(0, 100%);
-moz-transform: translate(0, 100%); -moz-transform: translate(0, 100%);
-ms-transform: translate(0, 100%); -ms-transform: translate(0, 100%);
@ -1378,13 +1378,13 @@ body {
/* Global transition speed settings */ /* Global transition speed settings */
.reveal[data-transition-speed="fast"]>.background .slide-background { .reveal[data-transition-speed="fast"]>.backgrounds .slide-background {
-webkit-transition-duration: 300ms; -webkit-transition-duration: 300ms;
-moz-transition-duration: 300ms; -moz-transition-duration: 300ms;
-ms-transition-duration: 300ms; -ms-transition-duration: 300ms;
transition-duration: 300ms; transition-duration: 300ms;
} }
.reveal[data-transition-speed="slow"]>.background .slide-background { .reveal[data-transition-speed="slow"]>.backgrounds .slide-background {
-webkit-transition-duration: 900ms; -webkit-transition-duration: 900ms;
-moz-transition-duration: 900ms; -moz-transition-duration: 900ms;
-ms-transition-duration: 900ms; -ms-transition-duration: 900ms;

2
css/reveal.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -190,9 +190,9 @@ var Reveal = (function(){
dom.slides = document.querySelector( '.reveal .slides' ); dom.slides = document.querySelector( '.reveal .slides' );
// Background element // Background element
if( !document.querySelector( '.reveal .background' ) ) { if( !document.querySelector( '.reveal .backgrounds' ) ) {
dom.background = document.createElement( 'div' ); dom.background = document.createElement( 'div' );
dom.background.classList.add( 'background' ); dom.background.classList.add( 'backgrounds' );
dom.wrapper.appendChild( dom.background ); dom.wrapper.appendChild( dom.background );
} }

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long