Skip to content

Commit dcc2151

Browse files
authored
Merge pull request #1 from hakimel/master
update repo
2 parents 8a97ad5 + 16f6633 commit dcc2151

Some content is hidden

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

93 files changed

+11908
-14126
lines changed

.github/workflows/js.yml

+20-13
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
name: tests
22

3-
on: [push]
3+
on:
4+
- push
5+
6+
permissions:
7+
contents: read
48

59
jobs:
610
build:
7-
811
runs-on: ubuntu-latest
912

1013
strategy:
1114
matrix:
12-
node-version: [10.x, 14.x, 16.x]
15+
node-version:
16+
- 18
17+
- 20
1318

1419
steps:
15-
- uses: actions/checkout@v2
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- run: npm install
21-
- run: npm run build --if-present
22-
- run: npm test
23-
env:
24-
CI: true
20+
- uses: actions/checkout@v4
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- run: npm install
28+
- run: npm run build --if-present
29+
- run: npm test
30+
env:
31+
CI: true

.npmignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/test
22
/examples
33
.github
4-
.gulpfile
54
.sass-cache
65
gulpfile.js
7-
CONTRIBUTING.md

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2011-2022 Hakim El Hattab, http://hakim.se, and reveal.js contributors
1+
Copyright (C) 2011-2024 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

README.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@ Hakim's open source work is supported by <a href="https://github.com/sponsors/ha
3232
</div>
3333
</a>
3434
</td>
35-
<td align="center">
36-
<a href="https://www.doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=revealjs&utm_source=github">
37-
<div>
38-
<img src="https://user-images.githubusercontent.com/629429/151510865-9fd454f1-fd8c-4df4-b227-a54b87313db4.png" width="290" alt="Doppler">
39-
</div>
40-
<b>All your environment variables, in one place</b>
41-
<div>
42-
<sub>Stop struggling with scattered API keys, hacking together home-brewed tools, and avoiding access controls. Keep your team and servers in sync with Doppler.</sup>
43-
</div>
44-
</a>
45-
</td>
4635
</table>
4736
</div>
4837

@@ -57,5 +46,5 @@ Hakim's open source work is supported by <a href="https://github.com/sponsors/ha
5746

5847
---
5948
<div align="center">
60-
MIT licensed | Copyright © 2011-2022 Hakim El Hattab, https://hakim.se
49+
MIT licensed | Copyright © 2011-2024 Hakim El Hattab, https://hakim.se
6150
</div>

css/print/paper.scss

+27-39
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,30 @@
1-
/* Default Print Stylesheet Template
2-
by Rob Glazebrook of CSSnewbie.com
3-
Last Updated: June 4, 2008
4-
5-
Feel free (nay, compelled) to edit, append, and
6-
manipulate this file as you see fit. */
71

82
@media print {
93
html:not(.print-pdf) {
10-
11-
background: #fff;
4+
overflow: visible;
125
width: auto;
136
height: auto;
14-
overflow: visible;
157

168
body {
17-
background: #fff;
18-
font-size: 20pt;
19-
width: auto;
20-
height: auto;
21-
border: 0;
22-
margin: 0 5%;
9+
margin: 0;
2310
padding: 0;
2411
overflow: visible;
25-
float: none !important;
2612
}
13+
}
14+
15+
html:not(.print-pdf) .reveal {
16+
background: #fff;
17+
font-size: 20pt;
2718

28-
.nestedarrow,
2919
.controls,
30-
.fork-reveal,
31-
.share-reveal,
3220
.state-background,
33-
.reveal .progress,
34-
.reveal .backgrounds,
35-
.reveal .slide-number {
21+
.progress,
22+
.backgrounds,
23+
.slide-number {
3624
display: none !important;
3725
}
3826

39-
body, p, td, li {
27+
p, td, li {
4028
font-size: 20pt!important;
4129
color: #000;
4230
}
@@ -49,7 +37,6 @@
4937
letter-spacing: normal;
5038
}
5139

52-
/* Need to reduce the size of the fonts for printing */
5340
h1 { font-size: 28pt !important; }
5441
h2 { font-size: 24pt !important; }
5542
h3 { font-size: 22pt !important; }
@@ -74,18 +61,19 @@
7461
margin: 0;
7562
text-align: left !important;
7663
}
77-
.reveal pre,
78-
.reveal table {
64+
pre,
65+
table {
7966
margin-left: 0;
8067
margin-right: 0;
8168
}
82-
.reveal pre code {
69+
pre code {
8370
padding: 20px;
8471
}
85-
.reveal blockquote {
72+
blockquote {
8673
margin: 20px 0;
8774
}
88-
.reveal .slides {
75+
76+
.slides {
8977
position: static !important;
9078
width: auto !important;
9179
height: auto !important;
@@ -106,7 +94,7 @@
10694

10795
perspective-origin: 50% 50%;
10896
}
109-
.reveal .slides section {
97+
.slides section {
11098
visibility: visible !important;
11199
position: static !important;
112100
width: auto !important;
@@ -129,48 +117,48 @@
129117
transform: none !important;
130118
transition: none !important;
131119
}
132-
.reveal .slides section.stack {
120+
.slides section.stack {
133121
padding: 0 !important;
134122
}
135-
.reveal section:last-of-type {
123+
.slides section:last-of-type {
136124
page-break-after: avoid !important;
137125
}
138-
.reveal section .fragment {
126+
.slides section .fragment {
139127
opacity: 1 !important;
140128
visibility: visible !important;
141129

142130
transform: none !important;
143131
}
144132

145-
.reveal .r-fit-text {
133+
.r-fit-text {
146134
white-space: normal !important;
147135
}
148136

149-
.reveal section img {
137+
section img {
150138
display: block;
151139
margin: 15px 0px;
152140
background: rgba(255,255,255,1);
153141
border: 1px solid #666;
154142
box-shadow: none;
155143
}
156144

157-
.reveal section small {
145+
section small {
158146
font-size: 0.8em;
159147
}
160148

161-
.reveal .hljs {
149+
.hljs {
162150
max-height: 100%;
163151
white-space: pre-wrap;
164152
word-wrap: break-word;
165153
word-break: break-word;
166154
font-size: 15pt;
167155
}
168156

169-
.reveal .hljs .hljs-ln-numbers {
157+
.hljs .hljs-ln-numbers {
170158
white-space: nowrap;
171159
}
172160

173-
.reveal .hljs td {
161+
.hljs td {
174162
font-size: inherit !important;
175163
color: inherit !important;
176164
}

css/print/pdf.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* https://revealjs.com/pdf-export/
66
*/
77

8-
html.print-pdf {
8+
html.reveal-print {
99
* {
1010
-webkit-print-color-adjust: exact;
1111
}
@@ -36,7 +36,6 @@ html.print-pdf {
3636

3737
.reveal pre code {
3838
overflow: hidden !important;
39-
font-family: Courier, 'Courier New', monospace !important;
4039
}
4140

4241
.reveal {
@@ -71,6 +70,10 @@ html.print-pdf {
7170
page-break-after: always;
7271
}
7372

73+
.reveal .slides .pdf-page:last-of-type {
74+
page-break-after: avoid;
75+
}
76+
7477
.reveal .slides section {
7578
visibility: visible !important;
7679
display: block !important;
@@ -146,6 +149,7 @@ html.print-pdf {
146149
display: block;
147150
position: absolute;
148151
font-size: 14px;
152+
visibility: visible;
149153
}
150154

151155
/* This accessibility tool is not useful in PDF and breaks it visually */

0 commit comments

Comments
 (0)