diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-09-09 17:33:52 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-09-09 17:33:52 +0200 |
commit | 2479883d3cdec0a810f95e4fe80696877e5ae227 (patch) | |
tree | 4763ef4c8385bbe64422e1ed978952f5ebf5d590 | |
parent | 5e585ddbf2f3f9514f1db11ccb250eca02fb6878 (diff) | |
download | perl-software-in-gnu-guix-2479883d3cdec0a810f95e4fe80696877e5ae227.tar perl-software-in-gnu-guix-2479883d3cdec0a810f95e4fe80696877e5ae227.tar.gz |
is-light-background -> has-light-background, doesn't apply to background itself
-rw-r--r-- | js/reveal.js | 3 | ||||
-rw-r--r-- | test/examples/slide-backgrounds.html | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js index 24093e4..ca0dde6 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -720,8 +720,7 @@ // signals if it is light var computedBackgroundColor = window.getComputedStyle( element ).backgroundColor; if( computedBackgroundColor && colorBrightness( computedBackgroundColor ) > 128 ) { - slide.classList.add( 'is-background-light' ); - element.classList.add( 'is-background-light' ); + slide.classList.add( 'has-light-background' ); } return element; diff --git a/test/examples/slide-backgrounds.html b/test/examples/slide-backgrounds.html index b3820d8..702a746 100644 --- a/test/examples/slide-backgrounds.html +++ b/test/examples/slide-backgrounds.html @@ -15,7 +15,8 @@ .slides section h2 { color: #fff; } - .slides .is-background-light h2 { + .slides section.has-light-background, + .slides section.has-light-background h2 { color: #222; } </style> |