1
0
Hakim El Hattab 8 сар өмнө
parent
commit
41cca8e576

+ 2 - 2
css/theme/beige.scss

@@ -11,8 +11,8 @@
 // ---------------------------------------------
 
 // Include theme-specific fonts
-@import url(./fonts/league-gothic/league-gothic.css);
-@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
+@import url("/theme/fonts/league-gothic/league-gothic.css");
+@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic");
 
 // Override theme settings (see ../template/settings.scss)
 $mainColor: #333;

+ 1 - 1
css/theme/black-contrast.scss

@@ -14,7 +14,7 @@
 // ---------------------------------------------
 
 // 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)
 $backgroundColor: #000000;

+ 1 - 1
css/theme/blood.scss

@@ -18,7 +18,7 @@
 
 // Include theme-specific fonts
 
-@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
+@import url("https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic");
 
 // Colors used in the theme
 $blood: #a23;

+ 1 - 0
css/theme/dracula.scss

@@ -5,6 +5,7 @@
 
 
 // Default mixins and settings -----------------
+@use "sass:color";
 @import "./template/mixins";
 @import "./template/settings";
 // ---------------------------------------------

+ 3 - 2
css/theme/league.scss

@@ -8,6 +8,7 @@
 
 
 // Default mixins and settings -----------------
+@use "sass:color";
 @import "./template/mixins";
 @import "./template/settings";
 // ---------------------------------------------
@@ -15,8 +16,8 @@
 
 
 // Include theme-specific fonts
-@import url(./fonts/league-gothic/league-gothic.css);
-@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
+@import url("/theme/fonts/league-gothic/league-gothic.css");
+@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic");
 
 // Override theme settings (see ../template/settings.scss)
 $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);

+ 2 - 2
css/theme/moon.scss

@@ -10,8 +10,8 @@
 // ---------------------------------------------
 
 // Include theme-specific fonts
-@import url(./fonts/league-gothic/league-gothic.css);
-@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
+@import url("/theme/fonts/league-gothic/league-gothic.css");
+@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic");
 
 /**
  * Solarized colors by Ethan Schoonover

+ 2 - 2
css/theme/night.scss

@@ -11,8 +11,8 @@
 // ---------------------------------------------
 
 // Include theme-specific fonts
-@import url(https://fonts.googleapis.com/css?family=Montserrat:700);
-@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
+@import url("https://fonts.googleapis.com/css?family=Montserrat:700");
+@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic");
 
 // Override theme settings (see ../template/settings.scss)
 $backgroundColor: #111;

+ 2 - 2
css/theme/simple.scss

@@ -13,8 +13,8 @@
 // ---------------------------------------------
 
 // Include theme-specific fonts
-@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
-@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
+@import url("https://fonts.googleapis.com/css?family=News+Cycle:400,700");
+@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic");
 
 // Override theme settings (see ../template/settings.scss)
 $mainFont: "Lato", sans-serif;

+ 2 - 2
css/theme/sky.scss

@@ -11,8 +11,8 @@
 // ---------------------------------------------
 
 // Include theme-specific fonts
-@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
-@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
+@import url("https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic");
+@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700");
 
 // Override theme settings (see ../template/settings.scss)
 $mainFont: "Open Sans", sans-serif;

+ 2 - 2
css/theme/solarized.scss

@@ -10,8 +10,8 @@
 // ---------------------------------------------
 
 // Include theme-specific fonts
-@import url(./fonts/league-gothic/league-gothic.css);
-@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
+@import url("/theme/fonts/league-gothic/league-gothic.css");
+@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic");
 
 /**
  * Solarized colors by Ethan Schoonover

+ 1 - 1
css/theme/white-contrast.scss

@@ -14,7 +14,7 @@
 // ---------------------------------------------
 
 // 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)
 $backgroundColor: #fff;

+ 1 - 1
css/theme/white.scss

@@ -11,7 +11,7 @@
 // ---------------------------------------------
 
 // 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)
 $backgroundColor: #fff;

+ 3 - 3
demo.html

@@ -14,9 +14,9 @@
 
 		<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-		<link rel="stylesheet" href="dist/reset.css">
-		<link rel="stylesheet" href="dist/reveal.css">
-		<link rel="stylesheet" href="dist/theme/black.css" id="theme">
+		<link rel="stylesheet" href="css/reset.css">
+		<link rel="stylesheet" href="css/reveal.scss">
+		<link rel="stylesheet" href="css/theme/black.scss" id="theme">
 
 		<!-- Theme used for syntax highlighting of code -->
 		<link rel="stylesheet" href="plugin/highlight/monokai.css">

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/plugin/highlight.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 12 - 24
dist/plugin/highlight.mjs


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/plugin/markdown.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 291 - 296
dist/plugin/markdown.mjs


+ 1 - 1
dist/plugin/notes.js

@@ -1,4 +1,4 @@
-(function(z,T){typeof exports=="object"&&typeof module<"u"?module.exports=T():typeof define=="function"&&define.amd?define(T):(z=typeof globalThis<"u"?globalThis:z||self,z.RevealNotes=T())})(this,function(){"use strict";var kt=Object.defineProperty;var wt=(z,T,_)=>T in z?kt(z,T,{enumerable:!0,configurable:!0,writable:!0,value:_}):z[T]=_;var G=(z,T,_)=>(wt(z,typeof T!="symbol"?T+"":T,_),_);const z=`<!--
+(function(z,T){typeof exports=="object"&&typeof module<"u"?module.exports=T():typeof define=="function"&&define.amd?define(T):(z=typeof globalThis<"u"?globalThis:z||self,z.RevealNotes=T())})(this,function(){"use strict";var kt=Object.defineProperty;var wt=(z,T,_)=>T in z?kt(z,T,{enumerable:!0,configurable:!0,writable:!0,value:_}):z[T]=_;var G=(z,T,_)=>wt(z,typeof T!="symbol"?T+"":T,_);const z=`<!--
 	NOTE: You need to build the notes plugin after making changes to this file.
 -->
 <html lang="en">

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 291 - 296
dist/plugin/notes.mjs


+ 2 - 1
dist/reveal.d.mts → dist/reveal.d.ts

@@ -1,3 +1,4 @@
-export * from './index'
+export {}
 import Reveal from './index'
 export default Reveal
+export {}

+ 43 - 69
dist/reveal.mjs

@@ -1,6 +1,6 @@
 var vi = Object.defineProperty;
 var mi = (h, e, t) => e in h ? vi(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
-var Pt = (h, e, t) => (mi(h, typeof e != "symbol" ? e + "" : e, t), t);
+var Pt = (h, e, t) => mi(h, typeof e != "symbol" ? e + "" : e, t);
 const ue = (h, e) => {
   for (let t in e)
     h[t] = e[t];
@@ -9,14 +9,10 @@ const ue = (h, e) => {
   t ? h.classList.add(e) : h.classList.remove(e);
 }, he = (h) => {
   if (typeof h == "string") {
-    if (h === "null")
-      return null;
-    if (h === "true")
-      return !0;
-    if (h === "false")
-      return !1;
-    if (h.match(/^-?[\d\.]+$/))
-      return parseFloat(h);
+    if (h === "null") return null;
+    if (h === "true") return !0;
+    if (h === "false") return !1;
+    if (h.match(/^-?[\d\.]+$/)) return parseFloat(h);
   }
   return h;
 }, ie = (h, e) => {
@@ -926,8 +922,7 @@ class Fi {
    * by—among other things—wrapping each slide in a page element.
    */
   activate() {
-    if (this.active)
-      return;
+    if (this.active) return;
     const e = this.Reveal.getState();
     this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
     const t = E(this.Reveal.getRevealElement(), te), i = E(this.Reveal.getRevealElement(), ki);
@@ -946,8 +941,7 @@ class Fi {
         if (A.className = "scroll-page", n.push(A), w && i.length > v) {
           const V = i[v], O = window.getComputedStyle(V);
           O && O.background ? A.style.background = O.background : s && (A.style.background = s);
-        } else
-          s && (A.style.background = s);
+        } else s && (A.style.background = s);
         const T = document.createElement("div");
         T.className = "scroll-page-sticky", A.appendChild(T), r = document.createElement("div"), r.className = "scroll-page-content", T.appendChild(r);
       }
@@ -964,8 +958,7 @@ class Fi {
    * presentation.
    */
   deactivate() {
-    if (!this.active)
-      return;
+    if (!this.active) return;
     const e = this.Reveal.getState();
     this.active = !1, this.viewportElement.removeEventListener("scroll", this.onScroll), this.viewportElement.classList.remove("reveal-scroll"), this.removeProgressBar(), this.Reveal.getSlidesElement().innerHTML = this.slideHTMLBeforeActivation, this.Reveal.sync(), this.Reveal.setState(e), this.slideHTMLBeforeActivation = null;
   }
@@ -1731,8 +1724,7 @@ class Ui {
     let i = e.keyCode, s = !this.Reveal.isAutoSliding();
     this.Reveal.onUserInput(e);
     let d = document.activeElement && document.activeElement.isContentEditable === !0, n = document.activeElement && document.activeElement.tagName && /input|textarea/i.test(document.activeElement.tagName), o = document.activeElement && document.activeElement.className && /speaker-notes/i.test(document.activeElement.className), f = !([32, 37, 38, 39, 40, 78, 80, 191].indexOf(e.keyCode) !== -1 && e.shiftKey || e.altKey) && (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey);
-    if (d || n || o || f)
-      return;
+    if (d || n || o || f) return;
     let g = [66, 86, 190, 191, 112], v;
     if (typeof t.keyboard == "object")
       for (v in t.keyboard)
@@ -2189,11 +2181,9 @@ class Xi {
    * swipe navigation.
    */
   isSwipePrevented(e) {
-    if (Pe(e, "video[controls], audio[controls]"))
-      return !0;
+    if (Pe(e, "video[controls], audio[controls]")) return !0;
     for (; e && typeof e.hasAttribute == "function"; ) {
-      if (e.hasAttribute("data-prevent-swipe"))
-        return !0;
+      if (e.hasAttribute("data-prevent-swipe")) return !0;
       e = e.parentNode;
     }
     return !1;
@@ -2205,8 +2195,7 @@ class Xi {
    * @param {object} event
    */
   onTouchStart(e) {
-    if (this.touchCaptured = !1, this.isSwipePrevented(e.target))
-      return !0;
+    if (this.touchCaptured = !1, this.isSwipePrevented(e.target)) return !0;
     this.touchStartX = e.touches[0].clientX, this.touchStartY = e.touches[0].clientY, this.touchStartCount = e.touches.length;
   }
   /**
@@ -2215,8 +2204,7 @@ class Xi {
    * @param {object} event
    */
   onTouchMove(e) {
-    if (this.isSwipePrevented(e.target))
-      return !0;
+    if (this.isSwipePrevented(e.target)) return !0;
     let t = this.Reveal.getConfig();
     if (this.touchCaptured)
       zt && e.preventDefault();
@@ -2674,10 +2662,8 @@ function Ot(h, e) {
     hasNavigatedVertically: !1
   }, v = [], y = 1, w = { layout: "", overview: "" }, r = {}, A = "idle", T = 0, V, O = 0, se = -1, z = !1, k = new Ri(t), I = new xi(t), U = new Ti(t), W = new Mi(t), P = new Ni(t), R = new Fi(t), D = new Vi(t), L = new Oi(t), u = new qi(t), S = new Ui(t), N = new Wi(t), $ = new ji(t), j = new _i(t), Z = new Ki(t), H = new $i(t), ae = new Yi(t), xe = new Xi(t), K = new Gi(t);
   function Ut(a) {
-    if (!h)
-      throw 'Unable to find presentation root (<div class="reveal">).';
-    if (s = !0, r.wrapper = h, r.slides = h.querySelector(".slides"), !r.slides)
-      throw 'Unable to find slides container (<div class="slides">).';
+    if (!h) throw 'Unable to find presentation root (<div class="reveal">).';
+    if (s = !0, r.wrapper = h, r.slides = h.querySelector(".slides"), !r.slides) throw 'Unable to find slides container (<div class="slides">).';
     return i = { ...Qi, ...i, ...e, ...a, ...xt() }, /print-pdf/gi.test(window.location.search) && (i.view = "print"), Wt(), window.addEventListener("load", le, !1), H.load(i.plugins, i.dependencies).then(jt), new Promise((l) => t.on("ready", l));
   }
   function Wt() {
@@ -2740,8 +2726,7 @@ function Ot(h, e) {
   }
   function Ke(a) {
     const l = { ...i };
-    if (typeof a == "object" && ue(i, a), t.isReady() === !1)
-      return;
+    if (typeof a == "object" && ue(i, a), t.isReady() === !1) return;
     const p = r.wrapper.querySelectorAll(re).length;
     r.wrapper.classList.remove(l.transition), r.wrapper.classList.add(i.transition), r.wrapper.setAttribute("data-transition-speed", i.transitionSpeed), r.wrapper.setAttribute("data-background-transition", i.backgroundTransition), r.viewport.style.setProperty("--slide-width", typeof i.width == "string" ? i.width : i.width + "px"), r.viewport.style.setProperty("--slide-height", typeof i.height == "string" ? i.height : i.height + "px"), i.shuffle && He(), qe(r.wrapper, "embedded", i.embedded), qe(r.wrapper, "rtl", i.rtl), qe(r.wrapper, "center", i.center), i.pause === !1 && pe(), i.previewLinks ? (Qe(), Ne("[data-preview-link=false]")) : (Ne(), Qe("[data-preview-link]:not([data-preview-link=false])")), W.reset(), V && (V.destroy(), V = null), p > 1 && i.autoSlide && i.autoSlideStoppable && (V = new Ji(r.wrapper, () => Math.min(Math.max((Date.now() - se) / T, 0), 1)), V.on("click", gi), z = !1), i.navigationMode !== "default" ? r.wrapper.setAttribute("data-navigation-mode", i.navigationMode) : r.wrapper.removeAttribute("data-navigation-mode"), K.configure(i, l), ae.configure(i, l), Z.configure(i, l), $.configure(i, l), j.configure(i, l), S.configure(i, l), L.configure(i, l), I.configure(i, l), lt();
   }
@@ -2958,8 +2943,7 @@ function Ot(h, e) {
         indexv: l === void 0 ? o : l,
         origin: m
       }
-    }).defaultPrevented)
-      return;
+    }).defaultPrevented) return;
     c = f;
     const C = r.wrapper.querySelectorAll(te);
     if (R.isActive()) {
@@ -2967,8 +2951,7 @@ function Ot(h, e) {
       Y && R.scrollToSlide(Y);
       return;
     }
-    if (C.length === 0)
-      return;
+    if (C.length === 0) return;
     l === void 0 && !u.isActive() && (l = st(C[a])), c && c.parentNode && c.parentNode.classList.contains("stack") && it(c.parentNode, o);
     const x = v.concat();
     v.length = 0;
@@ -2984,15 +2967,14 @@ function Ot(h, e) {
         it(Y, 0);
       });
     }, 0));
-    e:
-      for (let Y = 0, pi = v.length; Y < pi; Y++) {
-        for (let Le = 0; Le < x.length; Le++)
-          if (x[Le] === v[Y]) {
-            x.splice(Le, 1);
-            continue e;
-          }
-        r.viewport.classList.add(v[Y]), _({ type: v[Y] });
-      }
+    e: for (let Y = 0, pi = v.length; Y < pi; Y++) {
+      for (let Le = 0; Le < x.length; Le++)
+        if (x[Le] === v[Y]) {
+          x.splice(Le, 1);
+          continue e;
+        }
+      r.viewport.classList.add(v[Y]), _({ type: v[Y] });
+    }
     for (; x.length; )
       r.viewport.classList.remove(x.pop());
     Q && Ge(m), (Q || !c) && (k.stopEmbeddedContent(c), k.startEmbeddedContent(f)), requestAnimationFrame(() => {
@@ -3104,18 +3086,17 @@ function Ot(h, e) {
   }
   function ut(a = f) {
     let l = ee(), p = 0;
-    e:
-      for (let m = 0; m < l.length; m++) {
-        let b = l[m], C = b.querySelectorAll("section");
-        for (let x = 0; x < C.length; x++) {
-          if (C[x] === a)
-            break e;
-          C[x].dataset.visibility !== "uncounted" && p++;
-        }
-        if (b === a)
-          break;
-        b.classList.contains("stack") === !1 && b.dataset.visibility !== "uncounted" && p++;
+    e: for (let m = 0; m < l.length; m++) {
+      let b = l[m], C = b.querySelectorAll("section");
+      for (let x = 0; x < C.length; x++) {
+        if (C[x] === a)
+          break e;
+        C[x].dataset.visibility !== "uncounted" && p++;
       }
+      if (b === a)
+        break;
+      b.classList.contains("stack") === !1 && b.dataset.visibility !== "uncounted" && p++;
+    }
     return p;
   }
   function li() {
@@ -3221,28 +3202,23 @@ function Ot(h, e) {
     T && z && (z = !1, _({ type: "autoslideresumed" }), de());
   }
   function Ae({ skipFragments: a = !1 } = {}) {
-    if (g.hasNavigatedHorizontally = !0, R.isActive())
-      return R.prev();
+    if (g.hasNavigatedHorizontally = !0, R.isActive()) return R.prev();
     i.rtl ? (u.isActive() || a || L.next() === !1) && J().left && X(n + 1, i.navigationMode === "grid" ? o : void 0) : (u.isActive() || a || L.prev() === !1) && J().left && X(n - 1, i.navigationMode === "grid" ? o : void 0);
   }
   function Re({ skipFragments: a = !1 } = {}) {
-    if (g.hasNavigatedHorizontally = !0, R.isActive())
-      return R.next();
+    if (g.hasNavigatedHorizontally = !0, R.isActive()) return R.next();
     i.rtl ? (u.isActive() || a || L.prev() === !1) && J().right && X(n - 1, i.navigationMode === "grid" ? o : void 0) : (u.isActive() || a || L.next() === !1) && J().right && X(n + 1, i.navigationMode === "grid" ? o : void 0);
   }
   function Fe({ skipFragments: a = !1 } = {}) {
-    if (R.isActive())
-      return R.prev();
+    if (R.isActive()) return R.prev();
     (u.isActive() || a || L.prev() === !1) && J().up && X(n, o - 1);
   }
   function Ve({ skipFragments: a = !1 } = {}) {
-    if (g.hasNavigatedVertically = !0, R.isActive())
-      return R.next();
+    if (g.hasNavigatedVertically = !0, R.isActive()) return R.next();
     (u.isActive() || a || L.next() === !1) && J().down && X(n, o + 1);
   }
   function wt({ skipFragments: a = !1 } = {}) {
-    if (R.isActive())
-      return R.prev();
+    if (R.isActive()) return R.prev();
     if (a || L.prev() === !1)
       if (J().up)
         Fe({ skipFragments: a });
@@ -3251,13 +3227,11 @@ function Ot(h, e) {
         if (i.rtl ? l = E(r.wrapper, te + ".future").pop() : l = E(r.wrapper, te + ".past").pop(), l && l.classList.contains("stack")) {
           let p = l.querySelectorAll("section").length - 1 || void 0, m = n - 1;
           X(m, p);
-        } else
-          i.rtl ? Re({ skipFragments: a }) : Ae({ skipFragments: a });
+        } else i.rtl ? Re({ skipFragments: a }) : Ae({ skipFragments: a });
       }
   }
   function Oe({ skipFragments: a = !1 } = {}) {
-    if (g.hasNavigatedHorizontally = !0, g.hasNavigatedVertically = !0, R.isActive())
-      return R.next();
+    if (g.hasNavigatedHorizontally = !0, g.hasNavigatedVertically = !0, R.isActive()) return R.next();
     if (a || L.next() === !1) {
       let l = J();
       l.down && l.right && i.loop && at() && (l.down = !1), l.down ? Ve({ skipFragments: a }) : i.rtl ? Ae({ skipFragments: a }) : Re({ skipFragments: a });

+ 56 - 13
dist/theme/beige.css

@@ -5,7 +5,13 @@
  */
 @import url(./fonts/league-gothic/league-gothic.css);
 @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
-section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+section.has-dark-background,
+section.has-dark-background h1,
+section.has-dark-background h2,
+section.has-dark-background h3,
+section.has-dark-background h4,
+section.has-dark-background h5,
+section.has-dark-background h6 {
   color: #fff;
 }
 
@@ -26,7 +32,11 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   --r-heading-text-transform: uppercase;
   --r-heading-text-shadow: none;
   --r-heading-font-weight: normal;
-  --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15);
+  --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,
+    0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1),
+    0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3),
+    0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25),
+    0 20px 20px rgba(0, 0, 0, 0.15);
   --r-heading1-size: 3.77em;
   --r-heading2-size: 2.11em;
   --r-heading3-size: 1.55em;
@@ -43,12 +53,45 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
 
 .reveal-viewport {
   background: rgb(247, 242, 211);
-  background: -moz-radial-gradient(center, circle cover, rgb(255, 255, 255) 0%, rgb(247, 242, 211) 100%);
-  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgb(255, 255, 255)), color-stop(100%, rgb(247, 242, 211)));
-  background: -webkit-radial-gradient(center, circle cover, rgb(255, 255, 255) 0%, rgb(247, 242, 211) 100%);
-  background: -o-radial-gradient(center, circle cover, rgb(255, 255, 255) 0%, rgb(247, 242, 211) 100%);
-  background: -ms-radial-gradient(center, circle cover, rgb(255, 255, 255) 0%, rgb(247, 242, 211) 100%);
-  background: radial-gradient(center, circle cover, rgb(255, 255, 255) 0%, rgb(247, 242, 211) 100%);
+  background: -moz-radial-gradient(
+    center,
+    circle cover,
+    rgb(255, 255, 255) 0%,
+    rgb(247, 242, 211) 100%
+  );
+  background: -webkit-gradient(
+    radial,
+    center center,
+    0px,
+    center center,
+    100%,
+    color-stop(0%, rgb(255, 255, 255)),
+    color-stop(100%, rgb(247, 242, 211))
+  );
+  background: -webkit-radial-gradient(
+    center,
+    circle cover,
+    rgb(255, 255, 255) 0%,
+    rgb(247, 242, 211) 100%
+  );
+  background: -o-radial-gradient(
+    center,
+    circle cover,
+    rgb(255, 255, 255) 0%,
+    rgb(247, 242, 211) 100%
+  );
+  background: -ms-radial-gradient(
+    center,
+    circle cover,
+    rgb(255, 255, 255) 0%,
+    rgb(247, 242, 211) 100%
+  );
+  background: radial-gradient(
+    center,
+    circle cover,
+    rgb(255, 255, 255) 0%,
+    rgb(247, 242, 211) 100%
+  );
   background-color: var(--r-background-color);
 }
 
@@ -264,13 +307,13 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -363,4 +406,4 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 12 - 6
dist/theme/black-contrast.css

@@ -7,7 +7,13 @@
  * - $mainFontSize controls code blocks, too (although under some ratio).
  */
 @import url(./fonts/source-sans-pro/source-sans-pro.css);
-section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
+section.has-light-background,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4,
+section.has-light-background h5,
+section.has-light-background h6 {
   color: #000;
 }
 
@@ -260,13 +266,13 @@ section.has-light-background, section.has-light-background h1, section.has-light
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -359,4 +365,4 @@ section.has-light-background, section.has-light-background h1, section.has-light
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 22 - 8
dist/theme/blood.css

@@ -10,7 +10,13 @@
  *
  */
 @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
-section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
+section.has-light-background,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4,
+section.has-light-background h5,
+section.has-light-background h6 {
   color: #222;
 }
 
@@ -31,7 +37,11 @@ section.has-light-background, section.has-light-background h1, section.has-light
   --r-heading-text-transform: uppercase;
   --r-heading-text-shadow: 2px 2px 2px #222;
   --r-heading-font-weight: normal;
-  --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15);
+  --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,
+    0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1),
+    0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3),
+    0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25),
+    0 20px 20px rgba(0, 0, 0, 0.15);
   --r-heading1-size: 3.77em;
   --r-heading2-size: 2.11em;
   --r-heading3-size: 1.55em;
@@ -263,13 +273,13 @@ section.has-light-background, section.has-light-background h1, section.has-light
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -368,7 +378,11 @@ section.has-light-background, section.has-light-background h1, section.has-light
   text-shadow: 1px 1px #222;
 }
 
-section.has-light-background p, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4 {
+section.has-light-background p,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4 {
   text-shadow: none;
 }
 
@@ -389,4 +403,4 @@ section.has-light-background p, section.has-light-background h1, section.has-lig
 
 .reveal small code {
   vertical-align: baseline;
-}
+}

+ 36 - 23
dist/theme/dracula.css

@@ -13,22 +13,30 @@ html * {
   rendering-intent: auto;
 }
 
-section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
-  color: #282A36;
+section.has-light-background,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4,
+section.has-light-background h5,
+section.has-light-background h6 {
+  color: #282a36;
 }
 
 /*********************************************
  * GLOBAL STYLES
  *********************************************/
 :root {
-  --r-background-color: #282A36;
-  --r-main-font: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
+  --r-background-color: #282a36;
+  --r-main-font: -apple-system, BlinkMacSystemFont, avenir next, avenir,
+    segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial,
+    sans-serif;
   --r-main-font-size: 40px;
-  --r-main-color: #F8F8F2;
+  --r-main-color: #f8f8f2;
   --r-block-margin: 20px;
   --r-heading-margin: 0 0 20px 0;
   --r-heading-font: League Gothic, Impact, sans-serif;
-  --r-heading-color: #BD93F9;
+  --r-heading-color: #bd93f9;
   --r-heading-line-height: 1.2;
   --r-heading-letter-spacing: normal;
   --r-heading-text-transform: none;
@@ -39,18 +47,19 @@ section.has-light-background, section.has-light-background h1, section.has-light
   --r-heading2-size: 2.11em;
   --r-heading3-size: 1.55em;
   --r-heading4-size: 1em;
-  --r-code-font: Fira Code, Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
-  --r-link-color: #FF79C6;
+  --r-code-font: Fira Code, Menlo, Consolas, Monaco, Liberation Mono,
+    Lucida Console, monospace;
+  --r-link-color: #ff79c6;
   --r-link-color-dark: rgb(255, 64.6, 174.0089552239);
-  --r-link-color-hover: #8BE9FD;
-  --r-selection-background-color: #44475A;
+  --r-link-color-hover: #8be9fd;
+  --r-selection-background-color: #44475a;
   --r-selection-color: #fff;
   --r-overlay-element-bg-color: 240, 240, 240;
   --r-overlay-element-fg-color: 0, 0, 0;
 }
 
 .reveal-viewport {
-  background: #282A36;
+  background: #282a36;
   background-color: var(--r-background-color);
 }
 
@@ -266,13 +275,13 @@ section.has-light-background, section.has-light-background h1, section.has-light
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -367,21 +376,25 @@ section.has-light-background, section.has-light-background h1, section.has-light
   }
 }
 :root {
-  --r-bold-color: #FFB86C;
-  --r-italic-color: #F1FA8C;
-  --r-inline-code-color: #50FA7B;
-  --r-list-bullet-color: #8BE9FD;
+  --r-bold-color: #ffb86c;
+  --r-italic-color: #f1fa8c;
+  --r-inline-code-color: #50fa7b;
+  --r-list-bullet-color: #8be9fd;
 }
 
-.reveal strong, .reveal b {
+.reveal strong,
+.reveal b {
   color: var(--r-bold-color);
 }
-.reveal em, .reveal i, .reveal blockquote {
+.reveal em,
+.reveal i,
+.reveal blockquote {
   color: var(--r-italic-color);
 }
 .reveal code {
   color: var(--r-inline-code-color);
 }
-.reveal ul li::marker, .reveal ol li::marker {
+.reveal ul li::marker,
+.reveal ol li::marker {
   color: var(--r-list-bullet-color);
-}
+}

+ 58 - 15
dist/theme/league.css

@@ -7,7 +7,13 @@
  */
 @import url(./fonts/league-gothic/league-gothic.css);
 @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
-section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
+section.has-light-background,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4,
+section.has-light-background h5,
+section.has-light-background h6 {
   color: #222;
 }
 
@@ -28,16 +34,20 @@ section.has-light-background, section.has-light-background h1, section.has-light
   --r-heading-text-transform: uppercase;
   --r-heading-text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
   --r-heading-font-weight: normal;
-  --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15);
+  --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,
+    0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1),
+    0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3),
+    0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25),
+    0 20px 20px rgba(0, 0, 0, 0.15);
   --r-heading1-size: 3.77em;
   --r-heading2-size: 2.11em;
   --r-heading3-size: 1.55em;
   --r-heading4-size: 1em;
   --r-code-font: monospace;
-  --r-link-color: #13DAEC;
+  --r-link-color: #13daec;
   --r-link-color-dark: rgb(16.15, 185.3, 200.6);
   --r-link-color-hover: rgb(66.2, 225.4, 239.8);
-  --r-selection-background-color: #FF5E99;
+  --r-selection-background-color: #ff5e99;
   --r-selection-color: #fff;
   --r-overlay-element-bg-color: 240, 240, 240;
   --r-overlay-element-fg-color: 0, 0, 0;
@@ -45,12 +55,45 @@ section.has-light-background, section.has-light-background h1, section.has-light
 
 .reveal-viewport {
   background: rgb(28, 30, 32);
-  background: -moz-radial-gradient(center, circle cover, rgb(85, 90, 95) 0%, rgb(28, 30, 32) 100%);
-  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgb(85, 90, 95)), color-stop(100%, rgb(28, 30, 32)));
-  background: -webkit-radial-gradient(center, circle cover, rgb(85, 90, 95) 0%, rgb(28, 30, 32) 100%);
-  background: -o-radial-gradient(center, circle cover, rgb(85, 90, 95) 0%, rgb(28, 30, 32) 100%);
-  background: -ms-radial-gradient(center, circle cover, rgb(85, 90, 95) 0%, rgb(28, 30, 32) 100%);
-  background: radial-gradient(center, circle cover, rgb(85, 90, 95) 0%, rgb(28, 30, 32) 100%);
+  background: -moz-radial-gradient(
+    center,
+    circle cover,
+    rgb(85, 90, 95) 0%,
+    rgb(28, 30, 32) 100%
+  );
+  background: -webkit-gradient(
+    radial,
+    center center,
+    0px,
+    center center,
+    100%,
+    color-stop(0%, rgb(85, 90, 95)),
+    color-stop(100%, rgb(28, 30, 32))
+  );
+  background: -webkit-radial-gradient(
+    center,
+    circle cover,
+    rgb(85, 90, 95) 0%,
+    rgb(28, 30, 32) 100%
+  );
+  background: -o-radial-gradient(
+    center,
+    circle cover,
+    rgb(85, 90, 95) 0%,
+    rgb(28, 30, 32) 100%
+  );
+  background: -ms-radial-gradient(
+    center,
+    circle cover,
+    rgb(85, 90, 95) 0%,
+    rgb(28, 30, 32) 100%
+  );
+  background: radial-gradient(
+    center,
+    circle cover,
+    rgb(85, 90, 95) 0%,
+    rgb(28, 30, 32) 100%
+  );
   background-color: var(--r-background-color);
 }
 
@@ -266,13 +309,13 @@ section.has-light-background, section.has-light-background h1, section.has-light
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -365,4 +408,4 @@ section.has-light-background, section.has-light-background h1, section.has-light
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 12 - 6
dist/theme/moon.css

@@ -7,7 +7,13 @@
 /**
  * Solarized colors by Ethan Schoonover
  */
-section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
+section.has-light-background,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4,
+section.has-light-background h5,
+section.has-light-background h6 {
   color: #222;
 }
 
@@ -260,13 +266,13 @@ section.has-light-background, section.has-light-background h1, section.has-light
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -359,4 +365,4 @@ section.has-light-background, section.has-light-background h1, section.has-light
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 12 - 6
dist/theme/night.css

@@ -5,7 +5,13 @@
  */
 @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
 @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
-section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
+section.has-light-background,
+section.has-light-background h1,
+section.has-light-background h2,
+section.has-light-background h3,
+section.has-light-background h4,
+section.has-light-background h5,
+section.has-light-background h6 {
   color: #222;
 }
 
@@ -258,13 +264,13 @@ section.has-light-background, section.has-light-background h1, section.has-light
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -357,4 +363,4 @@ section.has-light-background, section.has-light-background h1, section.has-light
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 17 - 11
dist/theme/serif.css

@@ -8,7 +8,13 @@
   line-height: 1.3em;
 }
 
-section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+section.has-dark-background,
+section.has-dark-background h1,
+section.has-dark-background h2,
+section.has-dark-background h3,
+section.has-dark-background h4,
+section.has-dark-background h5,
+section.has-dark-background h6 {
   color: #fff;
 }
 
@@ -16,14 +22,14 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
  * GLOBAL STYLES
  *********************************************/
 :root {
-  --r-background-color: #F0F1EB;
+  --r-background-color: #f0f1eb;
   --r-main-font: Palatino Linotype, Book Antiqua, Palatino, FreeSerif, serif;
   --r-main-font-size: 40px;
   --r-main-color: #000;
   --r-block-margin: 20px;
   --r-heading-margin: 0 0 20px 0;
   --r-heading-font: Palatino Linotype, Book Antiqua, Palatino, FreeSerif, serif;
-  --r-heading-color: #383D3D;
+  --r-heading-color: #383d3d;
   --r-heading-line-height: 1.2;
   --r-heading-letter-spacing: normal;
   --r-heading-text-transform: none;
@@ -35,17 +41,17 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   --r-heading3-size: 1.55em;
   --r-heading4-size: 1em;
   --r-code-font: monospace;
-  --r-link-color: #51483D;
+  --r-link-color: #51483d;
   --r-link-color-dark: rgb(68.85, 61.2, 51.85);
   --r-link-color-hover: rgb(122.9830985915, 109.3183098592, 92.6169014085);
-  --r-selection-background-color: #26351C;
+  --r-selection-background-color: #26351c;
   --r-selection-color: #fff;
   --r-overlay-element-bg-color: 0, 0, 0;
   --r-overlay-element-fg-color: 240, 240, 240;
 }
 
 .reveal-viewport {
-  background: #F0F1EB;
+  background: #f0f1eb;
   background-color: var(--r-background-color);
 }
 
@@ -261,13 +267,13 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -360,4 +366,4 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 13 - 7
dist/theme/simple.css

@@ -7,7 +7,13 @@
  */
 @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
 @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
-section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+section.has-dark-background,
+section.has-dark-background h1,
+section.has-dark-background h2,
+section.has-dark-background h3,
+section.has-dark-background h4,
+section.has-dark-background h5,
+section.has-dark-background h6 {
   color: #fff;
 }
 
@@ -34,7 +40,7 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   --r-heading3-size: 1.55em;
   --r-heading4-size: 1em;
   --r-code-font: monospace;
-  --r-link-color: #00008B;
+  --r-link-color: #00008b;
   --r-link-color-dark: rgb(0, 0, 118.15);
   --r-link-color-hover: rgb(0, 0, 213.2);
   --r-selection-background-color: rgba(0, 0, 0, 0.99);
@@ -260,13 +266,13 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -359,4 +365,4 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 45 - 11
dist/theme/sky.css

@@ -9,7 +9,13 @@
   line-height: 1.3em;
 }
 
-section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+section.has-dark-background,
+section.has-dark-background h1,
+section.has-dark-background h2,
+section.has-dark-background h3,
+section.has-dark-background h4,
+section.has-dark-background h5,
+section.has-dark-background h6 {
   color: #fff;
 }
 
@@ -47,11 +53,39 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
 
 .reveal-viewport {
   background: #add9e4;
-  background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
-  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4));
-  background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
-  background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
-  background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
+  background: -moz-radial-gradient(
+    center,
+    circle cover,
+    #f7fbfc 0%,
+    #add9e4 100%
+  );
+  background: -webkit-gradient(
+    radial,
+    center center,
+    0px,
+    center center,
+    100%,
+    color-stop(0%, #f7fbfc),
+    color-stop(100%, #add9e4)
+  );
+  background: -webkit-radial-gradient(
+    center,
+    circle cover,
+    #f7fbfc 0%,
+    #add9e4 100%
+  );
+  background: -o-radial-gradient(
+    center,
+    circle cover,
+    #f7fbfc 0%,
+    #add9e4 100%
+  );
+  background: -ms-radial-gradient(
+    center,
+    circle cover,
+    #f7fbfc 0%,
+    #add9e4 100%
+  );
   background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
   background-color: var(--r-background-color);
 }
@@ -268,13 +302,13 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -367,4 +401,4 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 5 - 5
dist/theme/solarized.css

@@ -261,13 +261,13 @@ html * {
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -360,4 +360,4 @@ html * {
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 12 - 6
dist/theme/white-contrast.css

@@ -7,7 +7,13 @@
  * - $mainFontSize controls code blocks, too (although under some ratio).
  */
 @import url(./fonts/source-sans-pro/source-sans-pro.css);
-section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+section.has-dark-background,
+section.has-dark-background h1,
+section.has-dark-background h2,
+section.has-dark-background h3,
+section.has-dark-background h4,
+section.has-dark-background h5,
+section.has-dark-background h6 {
   color: #fff;
 }
 
@@ -260,13 +266,13 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -359,4 +365,4 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 12 - 6
dist/theme/white.css

@@ -4,7 +4,13 @@
  * By Hakim El Hattab, http://hakim.se
  */
 @import url(./fonts/source-sans-pro/source-sans-pro.css);
-section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+section.has-dark-background,
+section.has-dark-background h1,
+section.has-dark-background h2,
+section.has-dark-background h3,
+section.has-dark-background h4,
+section.has-dark-background h5,
+section.has-dark-background h6 {
   color: #fff;
 }
 
@@ -257,13 +263,13 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   border-bottom: 1px solid;
 }
 
-.reveal table th[align=center],
-.reveal table td[align=center] {
+.reveal table th[align="center"],
+.reveal table td[align="center"] {
   text-align: center;
 }
 
-.reveal table th[align=right],
-.reveal table td[align=right] {
+.reveal table th[align="right"],
+.reveal table td[align="right"] {
   text-align: right;
 }
 
@@ -356,4 +362,4 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
   .backgrounds {
     background-color: var(--r-background-color);
   }
-}
+}

+ 6 - 4
package.json

@@ -7,6 +7,8 @@
   "license": "MIT",
   "main": "dist/reveal.js",
   "module": "dist/reveal.mjs",
+  "types": "dist/reveal.d.ts",
+  "type": "module",
   "exports": {
     ".": {
       "import": "./dist/reveal.mjs",
@@ -42,11 +44,11 @@
     }
   },
   "scripts": {
-    "dev": "vite",
+    "dev": "vite --port 8000",
     "build:core": "tsc && vite build && vite build -c vite.config.styles.ts",
     "build": "tsc && vite build && vite build -c vite.config.styles.ts && vite build -c plugin/highlight/vite.config.ts && vite build -c plugin/markdown/vite.config.ts && vite build -c plugin/math/vite.config.ts && vite build -c plugin/notes/vite.config.ts && vite build -c plugin/search/vite.config.ts && vite build -c plugin/zoom/vite.config.ts",
     "test": "gulp test",
-    "start": "vite"
+    "start": "vite --port 8000"
   },
   "author": {
     "name": "Hakim El Hattab",
@@ -93,8 +95,8 @@
     "rollup": "^4.1.5",
     "sass": "^1.69.5",
     "typescript": "^5.2.2",
-    "vite": "^5.2.0",
-    "vite-plugin-dts": "^3.8.0",
+    "vite": "^5.4.8",
+    "vite-plugin-dts": "^4.2.4",
     "yargs": "^17.7.2"
   },
   "overrides": {

+ 9 - 1
vite.config.styles.ts

@@ -1,5 +1,13 @@
 import { resolve } from 'path'
 import { defineConfig } from 'vite'
+import fs from 'fs';
+
+// List all theme files in the css/theme directory
+const themeFiles = fs.readdirSync(resolve(__dirname, 'css/theme')).filter(file => file.endsWith('.scss'));
+const themeEntries = themeFiles.reduce((acc, file) => {
+  acc[`theme/${file.replace('.scss', '')}`] = resolve(__dirname, `css/theme/${file}`);
+  return acc;
+}, {});
 
 export default defineConfig({
   root: './',
@@ -12,7 +20,7 @@ export default defineConfig({
         'reveal': resolve(__dirname, 'css/reveal.scss'),
         'reset': resolve(__dirname, 'css/reset.css'),
 
-        'theme/black': resolve(__dirname, 'css/theme/black.scss'),
+        ...themeEntries,
       },
     }
   },

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно