type-on-strap 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/default/head.liquid +6 -4
- data/_layouts/default.html +1 -1
- data/_sass/base/_global.scss +11 -6
- data/_sass/external/_katex.scss +1 -1
- data/_sass/external/katex/katex.scss +159 -164
- data/_sass/type-on-strap.scss +5 -3
- data/assets/js/main.min.js +1 -1
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/mermaid.min.js +766 -584
- metadata +2 -2
data/_sass/type-on-strap.scss
CHANGED
|
@@ -15,15 +15,17 @@
|
|
|
15
15
|
@import 'base/variables';
|
|
16
16
|
|
|
17
17
|
/* External */
|
|
18
|
-
// CSS from external sources
|
|
19
|
-
|
|
18
|
+
// CSS from external sources. normalize.css goes in @layer reset (below Bootstrap, together
|
|
19
|
+
// with the global `*` reset in base/global) so Bootstrap components render correctly.
|
|
20
|
+
@layer reset {
|
|
21
|
+
@import 'external/reset';
|
|
22
|
+
}
|
|
20
23
|
@import 'external/font-awesome';
|
|
21
24
|
@import 'external/pacifico';
|
|
22
25
|
@import 'external/katex';
|
|
23
26
|
@import 'external/source-sans-pro';
|
|
24
27
|
|
|
25
28
|
/* Base */
|
|
26
|
-
// For general CSS in the theme
|
|
27
29
|
@import 'base/global';
|
|
28
30
|
@import 'base/highlight';
|
|
29
31
|
@import 'base/utility';
|
data/assets/js/main.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/* @preserve Cookie Consent Init */function createCookie(t,e,o){var i="";if(o){var n=new Date;n.setTime(n.getTime()+o*24*60*60*1e3),i="; expires="+n.toUTCString()}document.cookie=`${t}=${e}${i}; path=/`}function readCookie(t){for(var e=t+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var n=o[i];n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return null}function addCookieConsentListener(){document.getElementById("cookie-notice-accept").addEventListener("click",function(){createCookie(cookieName,"true",31),document.getElementById("cookie-notice").style.display="none",location.reload()})}function googleAnalytics(){if(analyticsName.toLowerCase()!==""){let e=function(){dataLayer.push(arguments)};var t=e;window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName,{anonymize_ip:!0}),analyticsNameGA4&&e("config",analyticsNameGA4,{anonymize_ip:!0})}}isCookieConsent.toLowerCase()==="true"?(addCookieConsentListener(),readCookie(cookieName)==="true"?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics();/* @preserve Dark mode Init */const themeButton={light:`<i class="fas fa-adjust" aria-hidden="true"></i><span class="navbar-label-with-icon"> ${
|
|
1
|
+
/* @preserve Cookie Consent Init */function createCookie(t,e,o){var i="";if(o){var n=new Date;n.setTime(n.getTime()+o*24*60*60*1e3),i="; expires="+n.toUTCString()}document.cookie=`${t}=${e}${i}; path=/`}function readCookie(t){for(var e=t+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var n=o[i];n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return null}function addCookieConsentListener(){document.getElementById("cookie-notice-accept").addEventListener("click",function(){createCookie(cookieName,"true",31),document.getElementById("cookie-notice").style.display="none",location.reload()})}function googleAnalytics(){if(analyticsName.toLowerCase()!==""){let e=function(){dataLayer.push(arguments)};var t=e;window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName,{anonymize_ip:!0}),analyticsNameGA4&&e("config",analyticsNameGA4,{anonymize_ip:!0})}}isCookieConsent.toLowerCase()==="true"?(addCookieConsentListener(),readCookie(cookieName)==="true"?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics();/* @preserve Dark mode Init */const darkLabel=typeof darkBtn<"u"?darkBtn:"Dark",lightLabel=typeof lightBtn<"u"?lightBtn:"Light",autoTheme=typeof isAutoTheme<"u"?isAutoTheme:!0,themeButton={light:`<i class="fas fa-adjust" aria-hidden="true"></i><span class="navbar-label-with-icon"> ${darkLabel}</span>`,dark:`<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i><span class="navbar-label-with-icon"> ${lightLabel}</span>`};function currentTheme(){return localStorage.getItem("theme")}function setMode(t){document.documentElement.setAttribute("data-theme",t),localStorage.setItem("theme",t);const e=document.getElementById("theme-toggle");e&&(e.innerHTML=themeButton[t])}function themeToggle(){let t=currentTheme();setMode(t==="light"?"dark":"light")}function bootstrapTheme(){if(autoTheme){if(!currentTheme()){let e=window.matchMedia("(prefers-color-scheme: dark)");e.matches&&localStorage.setItem("theme","dark"),e.addEventListener("change",()=>{e.matches&&localStorage.setItem("theme","dark")})}let t=currentTheme();setMode(t||"light")}}(function(){bootstrapTheme()})(),(function(){var t=document.querySelector(".grid");if(!t)return;var e=[],o=[],i=[],n;function s(){return Array.from(t.querySelectorAll(".grid-col")).filter(function(a){return getComputedStyle(a).display!=="none"})}function l(){e=s(),o=e.map(function(){return 0}),i=Array.from(t.querySelectorAll(".grid-item")),i.forEach(function(a){var c=Math.min.apply(Math,o),r=o.indexOf(c);e[r].appendChild(a),o[r]+=a.offsetHeight||1})}function d(a){var c=t.getBoundingClientRect();e.forEach(function(r,m){if(!a||r.contains(a)){var u=r.lastElementChild;u&&(o[m]=u.getBoundingClientRect().bottom-c.top)}})}function f(){clearTimeout(n),n=setTimeout(function(){var a=s();(a.length!==e.length||a.some(function(c,r){return c!==e[r]}))&&(e=a,l())},100)}l(),window.addEventListener("resize",f),t.addEventListener("load",function(a){d(a.target)},!0)})();/* @preserve Navbar */document.addEventListener("DOMContentLoaded",function(t){const e=document.getElementById("pull"),o=document.querySelector("nav ul");["click","touch"].forEach(function(i){e?.addEventListener(i,function(){o.classList.toggle("hide")},!1)}),window.addEventListener("scroll",function(){const i=-(window.scrollY||window.pageYOffset||document.body.scrollTop)/3,n=document.getElementById("main");n&&(n.style.backgroundPosition="100% "+(i-50)+"px, 0%, center top")})});
|