Skip to content

Commit

Permalink
Merge branch 'release/3.7.0' into custom
Browse files Browse the repository at this point in the history
* release/3.7.0: (77 commits)
  3.7.0
  add 'resume presentation' button to pause overlay
  use absolute positioning for slide number
  rename new fragment style
  refactor fragment pdf exporting to support multiple fragments with same index hakimel#1955
  merge hakimel#1955 with minor changes
  add 'fade-in-then-half-out' fragment style, 'current-visible' was renamed to 'fade-in-then-out'
  add a full list of transitions to readme
  new syncFragments api method
  flatten slide number when there are only vertical slides
  Fixed notes timer when speaker notes window opened via RevealNotes.open()
  refactor code to match new background dom structure
  add Reveal.syncSlide
  data-background-content-opacity -> data-background-opacity
  add , adds wrapper element around background images/videos/iframes
  smaller font size for sub/sup
  speaker view has visible connection status, times out with error after 5s
  support interactive iframe backgrounds in vertical stacks
  revise readURL to handle one-based indices
  prevent linked slide numbers from changing color
  ...
  • Loading branch information
infotexture committed Jan 25, 2019
2 parents 10ec548 + 2c5396b commit ed3ec7c
Show file tree
Hide file tree
Showing 51 changed files with 7,001 additions and 3,228 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ out/
log/*.log
tmp/**
node_modules/
package-lock.json
.sass-cache
css/reveal.min.css
js/reveal.min.js
js/reveal.min.js
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: node_js
node_js:
- 4
before_script:
- npm install -g grunt-cli
after_script:
- grunt retire
- npm run build -- retire
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(grunt) {
' * http://revealjs.com\n' +
' * MIT licensed\n' +
' *\n' +
' * Copyright (C) 2017 Hakim El Hattab, http://hakim.se\n' +
' * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n' +
' */'
},

Expand All @@ -26,7 +26,7 @@ module.exports = function(grunt) {
uglify: {
options: {
banner: '<%= meta.banner %>\n',
screwIE8: false
ie8: true
},
build: {
src: 'js/reveal.js',
Expand Down Expand Up @@ -78,6 +78,7 @@ module.exports = function(grunt) {
eqnull: true,
browser: true,
expr: true,
loopfunc: true,
globals: {
head: false,
module: false,
Expand Down Expand Up @@ -164,7 +165,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-retire' );
grunt.loadNpmTasks( 'grunt-sass' );
grunt.loadNpmTasks( 'grunt-zip' );

// Default task
grunt.registerTask( 'default', [ 'css', 'js' ] );

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2017 Hakim El Hattab, http://hakim.se, and reveal.js contributors
Copyright (C) 2018 Hakim El Hattab, http://hakim.se, and reveal.js contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
271 changes: 171 additions & 100 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reveal.js",
"version": "3.6.0",
"version": "3.7.0",
"main": [
"js/reveal.js",
"css/reveal.css"
Expand Down
22 changes: 4 additions & 18 deletions css/print/pdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,8 @@ ul, ol, div, p {
overflow: visible;
display: block;

-webkit-perspective: none;
-moz-perspective: none;
-ms-perspective: none;
perspective: none;

-webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
-moz-perspective-origin: 50% 50%;
-ms-perspective-origin: 50% 50%;
perspective-origin: 50% 50%;
perspective: none;
perspective-origin: 50% 50%;
}

.reveal .slides .pdf-page {
Expand All @@ -103,15 +96,8 @@ ul, ol, div, p {

opacity: 1 !important;

-webkit-transform-style: flat !important;
-moz-transform-style: flat !important;
-ms-transform-style: flat !important;
transform-style: flat !important;

-webkit-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
transform: none !important;
transform-style: flat !important;
transform: none !important;
}

.reveal section.stack {
Expand Down
46 changes: 41 additions & 5 deletions css/reveal.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* http://revealjs.com
* MIT licensed
*
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
* Copyright (C) 2018 Hakim El Hattab, http://hakim.se
*/
/*********************************************
* RESET STYLES
Expand Down Expand Up @@ -127,13 +127,25 @@ body {
-webkit-transform: translate(0, 0);
transform: translate(0, 0); }

.reveal .slides section .fragment.fade-in-then-out,
.reveal .slides section .fragment.current-visible {
opacity: 0;
visibility: hidden; }
.reveal .slides section .fragment.fade-in-then-out.current-fragment,
.reveal .slides section .fragment.current-visible.current-fragment {
opacity: 1;
visibility: inherit; }

.reveal .slides section .fragment.fade-in-then-semi-out {
opacity: 0;
visibility: hidden; }
.reveal .slides section .fragment.fade-in-then-semi-out.visible {
opacity: 0.5;
visibility: inherit; }
.reveal .slides section .fragment.fade-in-then-semi-out.current-fragment {
opacity: 1;
visibility: inherit; }

.reveal .slides section .fragment.highlight-red,
.reveal .slides section .fragment.highlight-current-red,
.reveal .slides section .fragment.highlight-green,
Expand Down Expand Up @@ -448,7 +460,7 @@ body {
* SLIDE NUMBER
*********************************************/
.reveal .slide-number {
position: fixed;
position: absolute;
display: block;
right: 8px;
bottom: 8px;
Expand All @@ -460,6 +472,9 @@ body {
background-color: rgba(0, 0, 0, 0.4);
padding: 5px; }

.reveal .slide-number a {
color: currentColor; }

.reveal .slide-number-delimiter {
margin: 0 3px; }

Expand Down Expand Up @@ -528,7 +543,8 @@ body {

.reveal .slides > section.stack {
padding-top: 0;
padding-bottom: 0; }
padding-bottom: 0;
pointer-events: none; }

.reveal .slides > section.present,
.reveal .slides > section > section.present {
Expand Down Expand Up @@ -948,6 +964,21 @@ body {
z-index: 100;
transition: all 1s ease; }

.reveal .pause-overlay .resume-button {
position: absolute;
bottom: 20px;
right: 20px;
color: #ccc;
border-radius: 2px;
padding: 6px 14px;
border: 2px solid #ccc;
font-size: 16px;
background: transparent;
cursor: pointer; }
.reveal .pause-overlay .resume-button:hover {
color: #fff;
border-color: #fff; }

.reveal.paused .pause-overlay {
visibility: visible;
opacity: 1; }
Expand Down Expand Up @@ -1011,10 +1042,15 @@ body {
visibility: hidden;
overflow: hidden;
background-color: transparent;
transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }

.reveal .slide-background-content {
position: absolute;
width: 100%;
height: 100%;
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
background-size: cover; }

.reveal .slide-background.stack {
display: block; }
Expand Down
55 changes: 51 additions & 4 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* http://revealjs.com
* MIT licensed
*
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
* Copyright (C) 2018 Hakim El Hattab, http://hakim.se
*/


Expand Down Expand Up @@ -160,6 +160,7 @@ body {
}
}

.reveal .slides section .fragment.fade-in-then-out,
.reveal .slides section .fragment.current-visible {
opacity: 0;
visibility: hidden;
Expand All @@ -170,6 +171,21 @@ body {
}
}

.reveal .slides section .fragment.fade-in-then-semi-out {
opacity: 0;
visibility: hidden;

&.visible {
opacity: 0.5;
visibility: inherit;
}

&.current-fragment {
opacity: 1;
visibility: inherit;
}
}

.reveal .slides section .fragment.highlight-red,
.reveal .slides section .fragment.highlight-current-red,
.reveal .slides section .fragment.highlight-green,
Expand Down Expand Up @@ -540,7 +556,7 @@ $controlsArrowAngleActive: 36deg;
*********************************************/

.reveal .slide-number {
position: fixed;
position: absolute;
display: block;
right: 8px;
bottom: 8px;
Expand All @@ -553,6 +569,10 @@ $controlsArrowAngleActive: 36deg;
padding: 5px;
}

.reveal .slide-number a {
color: currentColor;
}

.reveal .slide-number-delimiter {
margin: 0 3px;
}
Expand Down Expand Up @@ -636,6 +656,7 @@ $controlsArrowAngleActive: 36deg;
.reveal .slides>section.stack {
padding-top: 0;
padding-bottom: 0;
pointer-events: none;
}

.reveal .slides>section.present,
Expand Down Expand Up @@ -1013,6 +1034,25 @@ $controlsArrowAngleActive: 36deg;
z-index: 100;
transition: all 1s ease;
}

.reveal .pause-overlay .resume-button {
position: absolute;
bottom: 20px;
right: 20px;
color: #ccc;
border-radius: 2px;
padding: 6px 14px;
border: 2px solid #ccc;
font-size: 16px;
background: transparent;
cursor: pointer;

&:hover {
color: #fff;
border-color: #fff;
}
}

.reveal.paused .pause-overlay {
visibility: visible;
opacity: 1;
Expand Down Expand Up @@ -1086,11 +1126,18 @@ $controlsArrowAngleActive: 36deg;
overflow: hidden;

background-color: rgba( 0, 0, 0, 0 );

transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
}

.reveal .slide-background-content {
position: absolute;
width: 100%;
height: 100%;

background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;

transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
}

.reveal .slide-background.stack {
Expand Down
2 changes: 1 addition & 1 deletion css/theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Themes are written using Sass to keep things modular and reduce the need for rep

## Creating a Theme

To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`.
To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `npm run build -- css-themes`.

Each theme file does four things in the following order:

Expand Down
17 changes: 13 additions & 4 deletions css/theme/beige.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ body {
background: rgba(79, 64, 28, 0.99);
text-shadow: none; }

.reveal .slides > section,
.reveal .slides > section > section {
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }

Expand Down Expand Up @@ -193,10 +193,12 @@ body {
border-bottom: none; }

.reveal sup {
vertical-align: super; }
vertical-align: super;
font-size: smaller; }

.reveal sub {
vertical-align: sub; }
vertical-align: sub;
font-size: smaller; }

.reveal small {
display: inline-block;
Expand Down Expand Up @@ -266,3 +268,10 @@ body {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }

/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #f7f3de; } }
Loading

0 comments on commit ed3ec7c

Please sign in to comment.