Skip to content

Commit

Permalink
switch from gulp to vite to build, add types for reveal.js config
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Mar 28, 2024
1 parent 6410c75 commit 9fe6d8d
Show file tree
Hide file tree
Showing 113 changed files with 59,696 additions and 6,096 deletions.
30 changes: 30 additions & 0 deletions css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* http://meyerweb.com/eric/tools/css/reset/
v4.0 | 20180602
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
display: block;
}
6 changes: 3 additions & 3 deletions css/theme/source/beige.scss → css/theme/beige.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -40,5 +40,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -45,5 +45,5 @@ $heading4Size: 1.0em;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
8 changes: 4 additions & 4 deletions css/theme/source/black.scss → css/theme/black.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


// Include theme-specific fonts
@import url(./fonts/source-sans-pro/source-sans-pro.css);
@import url("/theme/fonts/source-sans-pro/source-sans-pro.css");


// Override theme settings (see ../template/settings.scss)
Expand Down Expand Up @@ -42,5 +42,5 @@ $heading4Size: 1.0em;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/blood.scss → css/theme/blood.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------

// Include theme-specific fonts
Expand Down Expand Up @@ -51,7 +51,7 @@ $selectionColor: #fff;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------

// some overrides after theme template import
Expand Down
6 changes: 3 additions & 3 deletions css/theme/source/dracula.scss → css/theme/dracula.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -74,7 +74,7 @@ $codeFont: "Fira Code", $systemFontsMono;
@include light-bg-text-color($background);

// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------

// Define additional color effects based on Dracula spec
Expand Down
6 changes: 3 additions & 3 deletions css/theme/source/league.scss → css/theme/league.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand All @@ -32,5 +32,5 @@ $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/moon.scss → css/theme/moon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -50,5 +50,5 @@ $selectionBackgroundColor: $magenta;
@include light-bg-text-color(#222);

// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/night.scss → css/theme/night.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand All @@ -33,5 +33,5 @@ $selectionBackgroundColor: #e7ad52;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/serif.scss → css/theme/serif.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -37,5 +37,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/simple.scss → css/theme/simple.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -39,5 +39,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/sky.scss → css/theme/sky.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -48,5 +48,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/solarized.scss → css/theme/solarized.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -62,5 +62,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -48,5 +48,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
6 changes: 3 additions & 3 deletions css/theme/source/white.scss → css/theme/white.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
@import "./template/mixins";
@import "./template/settings";
// ---------------------------------------------


Expand Down Expand Up @@ -45,5 +45,5 @@ $overlayElementFgColor: 240, 240, 240;


// Theme template ------------------------------
@import "../template/theme";
@import "./template/theme";
// ---------------------------------------------
12 changes: 9 additions & 3 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,19 @@ <h1>THE END</h1>

</div>

<script src="dist/reveal.js"></script>
<!-- <script src="dist/reveal.js"></script>
<script src="plugin/zoom/zoom.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/search/search.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script>
<script src="plugin/highlight/highlight.js"></script> -->
<script type="module">
import Reveal from 'reveal.js';
import RevealZoom from 'reveal.js/plugin/zoom';
import RevealNotes from 'reveal.js/plugin/notes';
import RevealSearch from 'reveal.js/plugin/search';
import RevealMarkdown from 'reveal.js/plugin/markdown';
import RevealHighlight from 'reveal.js/plugin/highlight';

// Also available as an ES module, see:
// https://revealjs.com/initialization/
Expand Down
Loading

0 comments on commit 9fe6d8d

Please sign in to comment.