Skip to content

Commit d2f582a

Browse files
author
Yuri Valentini
committed
update reveal.js to 3.7.0 in order to address vulnerabilities in node packages
1 parent 8e3e693 commit d2f582a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+7007
-7417
lines changed

slides/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ out/
88
log/*.log
99
tmp/**
1010
node_modules/
11+
package-lock.json
1112
.sass-cache
1213
css/reveal.min.css
13-
js/reveal.min.js
14+
js/reveal.min.js

slides/.npmignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

slides/.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: node_js
22
node_js:
33
- 4
4-
before_script:
5-
- npm install -g grunt-cli
64
after_script:
7-
- grunt retire
5+
- npm run build -- retire

slides/Gruntfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function(grunt) {
1515
' * http://revealjs.com\n' +
1616
' * MIT licensed\n' +
1717
' *\n' +
18-
' * Copyright (C) 2017 Hakim El Hattab, http://hakim.se\n' +
18+
' * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n' +
1919
' */'
2020
},
2121

@@ -26,7 +26,7 @@ module.exports = function(grunt) {
2626
uglify: {
2727
options: {
2828
banner: '<%= meta.banner %>\n',
29-
screwIE8: false
29+
ie8: true
3030
},
3131
build: {
3232
src: 'js/reveal.js',
@@ -78,6 +78,7 @@ module.exports = function(grunt) {
7878
eqnull: true,
7979
browser: true,
8080
expr: true,
81+
loopfunc: true,
8182
globals: {
8283
head: false,
8384
module: false,
@@ -93,7 +94,6 @@ module.exports = function(grunt) {
9394
connect: {
9495
server: {
9596
options: {
96-
hostname: 'localhost',
9797
port: port,
9898
base: root,
9999
livereload: true,
@@ -165,7 +165,7 @@ module.exports = function(grunt) {
165165
grunt.loadNpmTasks( 'grunt-retire' );
166166
grunt.loadNpmTasks( 'grunt-sass' );
167167
grunt.loadNpmTasks( 'grunt-zip' );
168-
168+
169169
// Default task
170170
grunt.registerTask( 'default', [ 'css', 'js' ] );
171171

slides/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2017 Hakim El Hattab, http://hakim.se, and reveal.js contributors
1+
Copyright (C) 2018 Hakim El Hattab, http://hakim.se, and reveal.js contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

slides/README.md

Lines changed: 171 additions & 100 deletions
Large diffs are not rendered by default.

slides/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reveal.js",
3-
"version": "3.6.0",
3+
"version": "3.7.0",
44
"main": [
55
"js/reveal.js",
66
"css/reveal.css"

slides/css/print/pdf.css

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,8 @@ ul, ol, div, p {
7272
overflow: visible;
7373
display: block;
7474

75-
-webkit-perspective: none;
76-
-moz-perspective: none;
77-
-ms-perspective: none;
78-
perspective: none;
79-
80-
-webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
81-
-moz-perspective-origin: 50% 50%;
82-
-ms-perspective-origin: 50% 50%;
83-
perspective-origin: 50% 50%;
75+
perspective: none;
76+
perspective-origin: 50% 50%;
8477
}
8578

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

10497
opacity: 1 !important;
10598

106-
-webkit-transform-style: flat !important;
107-
-moz-transform-style: flat !important;
108-
-ms-transform-style: flat !important;
109-
transform-style: flat !important;
110-
111-
-webkit-transform: none !important;
112-
-moz-transform: none !important;
113-
-ms-transform: none !important;
114-
transform: none !important;
99+
transform-style: flat !important;
100+
transform: none !important;
115101
}
116102

117103
.reveal section.stack {

slides/css/reveal.css

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* http://revealjs.com
44
* MIT licensed
55
*
6-
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
6+
* Copyright (C) 2018 Hakim El Hattab, http://hakim.se
77
*/
88
/*********************************************
99
* RESET STYLES
@@ -127,13 +127,25 @@ body {
127127
-webkit-transform: translate(0, 0);
128128
transform: translate(0, 0); }
129129

130+
.reveal .slides section .fragment.fade-in-then-out,
130131
.reveal .slides section .fragment.current-visible {
131132
opacity: 0;
132133
visibility: hidden; }
134+
.reveal .slides section .fragment.fade-in-then-out.current-fragment,
133135
.reveal .slides section .fragment.current-visible.current-fragment {
134136
opacity: 1;
135137
visibility: inherit; }
136138

139+
.reveal .slides section .fragment.fade-in-then-semi-out {
140+
opacity: 0;
141+
visibility: hidden; }
142+
.reveal .slides section .fragment.fade-in-then-semi-out.visible {
143+
opacity: 0.5;
144+
visibility: inherit; }
145+
.reveal .slides section .fragment.fade-in-then-semi-out.current-fragment {
146+
opacity: 1;
147+
visibility: inherit; }
148+
137149
.reveal .slides section .fragment.highlight-red,
138150
.reveal .slides section .fragment.highlight-current-red,
139151
.reveal .slides section .fragment.highlight-green,
@@ -448,7 +460,7 @@ body {
448460
* SLIDE NUMBER
449461
*********************************************/
450462
.reveal .slide-number {
451-
position: fixed;
463+
position: absolute;
452464
display: block;
453465
right: 8px;
454466
bottom: 8px;
@@ -460,6 +472,9 @@ body {
460472
background-color: rgba(0, 0, 0, 0.4);
461473
padding: 5px; }
462474

475+
.reveal .slide-number a {
476+
color: currentColor; }
477+
463478
.reveal .slide-number-delimiter {
464479
margin: 0 3px; }
465480

@@ -528,7 +543,8 @@ body {
528543

529544
.reveal .slides > section.stack {
530545
padding-top: 0;
531-
padding-bottom: 0; }
546+
padding-bottom: 0;
547+
pointer-events: none; }
532548

533549
.reveal .slides > section.present,
534550
.reveal .slides > section > section.present {
@@ -948,6 +964,21 @@ body {
948964
z-index: 100;
949965
transition: all 1s ease; }
950966

967+
.reveal .pause-overlay .resume-button {
968+
position: absolute;
969+
bottom: 20px;
970+
right: 20px;
971+
color: #ccc;
972+
border-radius: 2px;
973+
padding: 6px 14px;
974+
border: 2px solid #ccc;
975+
font-size: 16px;
976+
background: transparent;
977+
cursor: pointer; }
978+
.reveal .pause-overlay .resume-button:hover {
979+
color: #fff;
980+
border-color: #fff; }
981+
951982
.reveal.paused .pause-overlay {
952983
visibility: visible;
953984
opacity: 1; }
@@ -1011,10 +1042,15 @@ body {
10111042
visibility: hidden;
10121043
overflow: hidden;
10131044
background-color: transparent;
1045+
transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
1046+
1047+
.reveal .slide-background-content {
1048+
position: absolute;
1049+
width: 100%;
1050+
height: 100%;
10141051
background-position: 50% 50%;
10151052
background-repeat: no-repeat;
1016-
background-size: cover;
1017-
transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
1053+
background-size: cover; }
10181054

10191055
.reveal .slide-background.stack {
10201056
display: block; }

slides/css/reveal.scss

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* http://revealjs.com
44
* MIT licensed
55
*
6-
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
6+
* Copyright (C) 2018 Hakim El Hattab, http://hakim.se
77
*/
88

99

@@ -160,6 +160,7 @@ body {
160160
}
161161
}
162162

163+
.reveal .slides section .fragment.fade-in-then-out,
163164
.reveal .slides section .fragment.current-visible {
164165
opacity: 0;
165166
visibility: hidden;
@@ -170,6 +171,21 @@ body {
170171
}
171172
}
172173

174+
.reveal .slides section .fragment.fade-in-then-semi-out {
175+
opacity: 0;
176+
visibility: hidden;
177+
178+
&.visible {
179+
opacity: 0.5;
180+
visibility: inherit;
181+
}
182+
183+
&.current-fragment {
184+
opacity: 1;
185+
visibility: inherit;
186+
}
187+
}
188+
173189
.reveal .slides section .fragment.highlight-red,
174190
.reveal .slides section .fragment.highlight-current-red,
175191
.reveal .slides section .fragment.highlight-green,
@@ -540,7 +556,7 @@ $controlsArrowAngleActive: 36deg;
540556
*********************************************/
541557

542558
.reveal .slide-number {
543-
position: fixed;
559+
position: absolute;
544560
display: block;
545561
right: 8px;
546562
bottom: 8px;
@@ -553,6 +569,10 @@ $controlsArrowAngleActive: 36deg;
553569
padding: 5px;
554570
}
555571

572+
.reveal .slide-number a {
573+
color: currentColor;
574+
}
575+
556576
.reveal .slide-number-delimiter {
557577
margin: 0 3px;
558578
}
@@ -636,6 +656,7 @@ $controlsArrowAngleActive: 36deg;
636656
.reveal .slides>section.stack {
637657
padding-top: 0;
638658
padding-bottom: 0;
659+
pointer-events: none;
639660
}
640661

641662
.reveal .slides>section.present,
@@ -1013,6 +1034,25 @@ $controlsArrowAngleActive: 36deg;
10131034
z-index: 100;
10141035
transition: all 1s ease;
10151036
}
1037+
1038+
.reveal .pause-overlay .resume-button {
1039+
position: absolute;
1040+
bottom: 20px;
1041+
right: 20px;
1042+
color: #ccc;
1043+
border-radius: 2px;
1044+
padding: 6px 14px;
1045+
border: 2px solid #ccc;
1046+
font-size: 16px;
1047+
background: transparent;
1048+
cursor: pointer;
1049+
1050+
&:hover {
1051+
color: #fff;
1052+
border-color: #fff;
1053+
}
1054+
}
1055+
10161056
.reveal.paused .pause-overlay {
10171057
visibility: visible;
10181058
opacity: 1;
@@ -1086,11 +1126,18 @@ $controlsArrowAngleActive: 36deg;
10861126
overflow: hidden;
10871127

10881128
background-color: rgba( 0, 0, 0, 0 );
1129+
1130+
transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
1131+
}
1132+
1133+
.reveal .slide-background-content {
1134+
position: absolute;
1135+
width: 100%;
1136+
height: 100%;
1137+
10891138
background-position: 50% 50%;
10901139
background-repeat: no-repeat;
10911140
background-size: cover;
1092-
1093-
transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
10941141
}
10951142

10961143
.reveal .slide-background.stack {

0 commit comments

Comments
 (0)