Skip to content

Commit

Permalink
Merge remote-tracking branch 'hakimel/master'
Browse files Browse the repository at this point in the history
* hakimel/master: (140 commits)
  fix unclosed code block
  3.4.0
  fragments inherit visibility to avoid conflicts with parent slide visibility
  don't show error message while iframe fades in hakimel#1577
  always use lowercase reveal.js
  Add note about head.js to readme.
  Enable passing options for parsing Markdown.
  Reduce required Node.js version to 4.0.0.
  Reduce required Node.js version to 4.0.0.
  update dependencies to work with latest node hakimel#1743
  correct copyright message to include contributors
  Better version of data-trim on code snippets
  Update README.md to reflect current defaults in js/reveal.js
  add pdf-ready event; dispatched when the presentation is laid out and ready to print
  Bump node engine in packages.json
  Don't remove slide-number in pdf view
  Hide slide number when in paper or pdf print view
  remove debug code
  fixes ff overview rendering bug hakimel#1649
  remove unused dom lookup
  ...
  • Loading branch information
truist committed Jan 11, 2017
2 parents 68be5da + 568c751 commit 4109615
Show file tree
Hide file tree
Showing 49 changed files with 2,322 additions and 672 deletions.
27 changes: 19 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* global module:false */
module.exports = function(grunt) {
var port = grunt.option('port') || 8000;
var base = grunt.option('webdir') || grunt.option('base') || '.';
var root = grunt.option('webdir') || grunt.option('base') || '.';

if (!Array.isArray(root)) root = ['.', root];

// Project configuration
grunt.initConfig({
Expand Down Expand Up @@ -69,6 +71,7 @@ module.exports = function(grunt) {
curly: false,
eqeqeq: true,
immed: true,
esnext: true,
latedef: true,
newcap: true,
noarg: true,
Expand All @@ -95,11 +98,12 @@ module.exports = function(grunt) {
hostname: '127.0.0.1',
port: port,
useAvailablePort: true,
base: ['.', base],
base: root,
livereload: true,
open: true
}
}
},

},

zip: {
Expand All @@ -115,9 +119,6 @@ module.exports = function(grunt) {
},

watch: {
options: {
livereload: true
},
js: {
files: [ 'Gruntfile.js', 'js/reveal.js' ],
tasks: 'js'
Expand All @@ -131,11 +132,20 @@ module.exports = function(grunt) {
tasks: 'css-core'
},
html: {
files: [ 'index.html']
files: root.map(path => path + '/*.html')
},
markdown: {
files: [ './*.md' ]
files: root.map(path => path + '/*.md')
},
options: {
livereload: true
}
},

retire: {
js: ['js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js'],
node: ['.'],
options: {}
}

});
Expand All @@ -150,6 +160,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-contrib-connect' );
grunt.loadNpmTasks( 'grunt-autoprefixer' );
grunt.loadNpmTasks( 'grunt-zip' );
grunt.loadNpmTasks( 'grunt-retire' );

// 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) 2016 Hakim El Hattab, http://hakim.se
Copyright (C) 2016 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
230 changes: 177 additions & 53 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.2.0",
"version": "3.4.0",
"main": [
"js/reveal.js",
"css/reveal.css"
Expand Down
5 changes: 3 additions & 2 deletions css/print/paper.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
.share-reveal,
.state-background,
.reveal .progress,
.reveal .backgrounds {
.reveal .backgrounds,
.reveal .slide-number {
display: none !important;
}

Expand Down Expand Up @@ -199,4 +200,4 @@
font-size: 0.8em;
}

}
}
34 changes: 22 additions & 12 deletions css/print/pdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ ul, ol, div, p {
}
.reveal .slides {
position: static;
width: 100%;
height: auto;
width: 100% !important;
height: auto !important;
zoom: 1 !important;

left: auto;
top: auto;
Expand All @@ -82,11 +83,16 @@ ul, ol, div, p {
perspective-origin: 50% 50%;
}

.reveal .slides .pdf-page {
position: relative;
overflow: hidden;
z-index: 1;
}

.reveal .slides section {
page-break-after: always !important;

visibility: visible !important;
position: relative !important;
display: block !important;
position: relative !important;

Expand Down Expand Up @@ -132,29 +138,33 @@ ul, ol, div, p {
top: 0;
left: 0;
width: 100%;
z-index: -1;
}

/* All elements should be above the slide-background */
.reveal section>* {
position: relative;
z-index: 1;
height: 100%;
}

/* Display slide speaker notes when 'showNotes' is enabled */
.reveal .speaker-notes-pdf {
display: block;
width: 100%;
max-height: none;
left: auto;
top: auto;
right: auto;
bottom: auto;
left: auto;
z-index: 100;
}

/* Layout option which makes notes appear on a separate page */
.reveal .speaker-notes-pdf[data-layout="separate-page"] {
position: relative;
color: inherit;
background-color: transparent;
padding: 20px;
page-break-after: always;
}

/* Display slide numbers when 'slideNumber' is enabled */
.reveal .slide-number-pdf {
display: block;
position: absolute;
font-size: 14px;
}

Loading

0 comments on commit 4109615

Please sign in to comment.