jekyll-bhautiki 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0baa7c07ae4b009845957ec10d4129b564608e177a6a7721eb54aa381dbdfd6c
4
- data.tar.gz: cc095691ac1ea707568ad391fe8525c88869458c51c416b8626d558c1713f239
3
+ metadata.gz: dd861cff9c21d90a103312190ba2a7fd46191ddbf0d23183ed5699bbd20e6b1b
4
+ data.tar.gz: 8d8289c42a7f93edc089f88f81272cdd500869d3adc8eeaa05e43e606916da38
5
5
  SHA512:
6
- metadata.gz: 7c56c4e6ced96edf2c25a13db61bf86ff6ca8843cf8a2ffc0a2a1952df6192fa01ca6b5c784701d195b7b3bdc20fefb777e4113d12acdb917ce4ca0a50846a7d
7
- data.tar.gz: b6e1e66d1eaf9c3f0951f7df16b49c3cb6be78576ca55dc5d0d16f2ce319105cad5f87e01d53a6e752767c935f4811d7ac56b7b1f911ecf0f342808d794ce371
6
+ metadata.gz: d3dd58f394564e82b0b13869b016cd6f0fd17f77b87cbaa613858b82665d7d99859db72c74c0e725479110eb3ced9e091c49ba26cbe4fc19915a38389b886fe9
7
+ data.tar.gz: 55a75bcc198639aeff4cd4357524a94794463ebdd0b0922d1a125fda44cb9f1e5c965a5ccfd995ddba87b5bdf999e22d391bbd58e57dd7b91c5f337cfa97bf6b
@@ -4,7 +4,7 @@
4
4
  <div class="grid-x grid-padding-x grid-padding-y align-center">
5
5
  <div class="cell small-1 text-left">
6
6
  <div data-sticky-container>
7
- <div class="sticky" data-stick-to="bottom" data-sticky>
7
+ <div class="sticky" data-stick-to="bottom" data-sticky data-sticky-on="small">
8
8
  <button id="mode" type="button">
9
9
  <i data-feather="moon"></i>
10
10
  </button>
@@ -39,7 +39,7 @@
39
39
  <div class="cell small-1 text-right">
40
40
  <a href="#top" data-smooth-scroll>
41
41
  <div data-sticky-container>
42
- <div class="sticky" data-stick-to="bottom" data-sticky>
42
+ <div class="sticky" data-stick-to="bottom" data-sticky data-sticky-on="small">
43
43
  <button type="button" data-toggle="up">
44
44
  <i data-feather="arrow-up-circle"></i>
45
45
  </button>
@@ -4,7 +4,7 @@
4
4
  <div class="grid-x grid-padding-x grid-padding-y align-center">
5
5
  <div class="cell small-1 text-left">
6
6
  <div data-sticky-container>
7
- <div class="sticky" data-sticky>
7
+ <div class="sticky" data-sticky data-sticky-on="small">
8
8
  <button class="hide-for-large" type="button" data-toggle="nav">
9
9
  <i data-feather="sidebar"></i>
10
10
  </button>
@@ -22,7 +22,7 @@
22
22
 
23
23
  <div class="cell small-1 text-right">
24
24
  <div data-sticky-container>
25
- <div class="sticky" data-sticky>
25
+ <div class="sticky" data-sticky data-sticky-on="small">
26
26
  <button class="hide-for-large" type="button" data-toggle="side">
27
27
  <i data-feather="menu"></i>
28
28
  </button>
@@ -4,6 +4,10 @@
4
4
  stroke-linecap: round
5
5
  stroke-linejoin: round
6
6
 
7
+ @media screen and (max-width: 556px)
8
+ width: 14px
9
+ height: 14px
10
+
7
11
  @mixin feather-text
8
12
  width: 12px
9
13
  height: 12px
data/assets/js/main.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{let e,t;let o=()=>{feather.replace()},s="data-theme",a="dark",n="light",i="mode";function m(){document.documentElement.setAttribute(s,a),$("#mode").find("svg").replaceWith('<i data-feather="sun"></i>'),o()}function d(){document.documentElement.setAttribute(s,n),$("#mode").find("svg").replaceWith('<i data-feather="moon"></i>'),o()}o(),$(document).foundation(),e=window.matchMedia("(prefers-color-scheme: dark)"),(t=sessionStorage.getItem(i))==a?m():t==n?d():(e.matches?m():d(),sessionStorage.setItem(i,"")),$("#mode").on("click",()=>{$("#mode").find("svg").hasClass("feather-moon")?(m(),sessionStorage.setItem(i,a)):(d(),sessionStorage.setItem(i,n))})})();
1
+ (()=>{let e,t;let o=()=>{feather.replace()},s="data-theme",a="dark",n="light",i="mode";function m(){document.documentElement.setAttribute(s,a),$("#mode").find("svg").replaceWith('<i data-feather="sun"></i>'),o()}function d(){document.documentElement.setAttribute(s,n),$("#mode").find("svg").replaceWith('<i data-feather="moon"></i>'),o()}$(document).foundation(),o(),e=window.matchMedia("(prefers-color-scheme: dark)"),(t=sessionStorage.getItem(i))==a?m():t==n?d():(e.matches?m():d(),sessionStorage.setItem(i,"")),$("#mode").on("click",()=>{$("#mode").find("svg").hasClass("feather-moon")?(m(),sessionStorage.setItem(i,a)):(d(),sessionStorage.setItem(i,n))})})();
2
2
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"mappings":"A,C,SIgCQ,EACA,EFjCD,IAAM,EAAQ,KACjB,QAAQ,OAAO,EACnB,EEEM,EAAY,aACZ,EAAO,OACP,EAAQ,QACR,EAAO,OAEb,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CATnB,8BAUf,AAAA,GACJ,CAEA,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CAdpB,+BAed,AAAA,GACJ,CHfA,AAAA,IEHI,EAAE,UAAU,UAAU,GC+BlB,EAAoB,OAAO,UAAU,CAAC,gCAGtC,CAFA,EAAO,eAAe,OAAO,CAAC,KAEtB,EACR,IACO,GAAQ,EACf,KAhBA,AAkBgB,EAlBE,OAAO,CACzB,IAEA,IAGJ,eAAe,OAAO,CAAC,EAAM,KAiB7B,EAAE,SAAS,EAAE,CAAC,QAAS,KACf,EAAE,SAAS,IAAI,CAAC,OAAO,QAAQ,CAAC,iBAChC,IACA,eAAe,OAAO,CAAC,EAAM,KAE7B,IACA,eAAe,OAAO,CAAC,EAAM,GAErC,E,C","sources":["<anon>","_scripts/main.js","_scripts/common/feather.js","_scripts/common/foundation.js","_scripts/common/theme.js"],"sourcesContent":["(() => {\nconst $0abaf8754d6d68dc$export$df03f54e09e486fa = ()=>{\n feather.replace();\n};\n\n\nconst $88ef8f78f6164e41$export$aa72436c99aff8fd = ()=>{\n $(document).foundation();\n};\n\n\n\nconst $77af9af8a83584ec$var$LIGHT_ICON = '<i data-feather=\"sun\"></i>';\nconst $77af9af8a83584ec$var$DARK_ICON = '<i data-feather=\"moon\"></i>';\nconst $77af9af8a83584ec$var$ATTRIBUTE = \"data-theme\";\nconst $77af9af8a83584ec$var$DARK = \"dark\";\nconst $77af9af8a83584ec$var$LIGHT = \"light\";\nconst $77af9af8a83584ec$var$MODE = \"mode\";\nfunction $77af9af8a83584ec$var$setDarkMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$DARK);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$LIGHT_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setLightMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$DARK_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) $77af9af8a83584ec$var$setDarkMode();\n else $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, \"\");\n}\nconst $77af9af8a83584ec$export$d4f039427a1beff1 = ()=>{\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem($77af9af8a83584ec$var$MODE);\n if (mode == $77af9af8a83584ec$var$DARK) $77af9af8a83584ec$var$setDarkMode();\n else if (mode == $77af9af8a83584ec$var$LIGHT) $77af9af8a83584ec$var$setLightMode();\n else $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark);\n};\nconst $77af9af8a83584ec$export$c43e41d2ed1b3347 = ()=>{\n $(\"#mode\").on(\"click\", ()=>{\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n $77af9af8a83584ec$var$setDarkMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$DARK);\n } else {\n $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$LIGHT);\n }\n });\n};\nvar $77af9af8a83584ec$export$2e2bcd8739ae039 = {\n switchMode: $77af9af8a83584ec$export$c43e41d2ed1b3347,\n setMode: $77af9af8a83584ec$export$d4f039427a1beff1\n};\n\n\n(0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n(0, $88ef8f78f6164e41$export$aa72436c99aff8fd)();\n(0, $77af9af8a83584ec$export$d4f039427a1beff1)();\n(0, $77af9af8a83584ec$export$c43e41d2ed1b3347)();\n\n})();\n//# sourceMappingURL=main.js.map\n","import { icons } from \"./common/feather\";\nimport { initializeBaseStyle } from \"./common/foundation\";\nimport { setMode, switchMode } from \"./common/theme\";\n\nicons();\ninitializeBaseStyle();\n\nsetMode();\nswitchMode();\n","export const icons = () => {\n feather.replace();\n}\n","export const initializeBaseStyle = () => {\n $(document).foundation();\n}\n","import { icons } from \"./feather\";\n\nconst LIGHT_ICON = \"<i data-feather=\\\"sun\\\"></i>\"\nconst DARK_ICON = \"<i data-feather=\\\"moon\\\"></i>\"\nconst ATTRIBUTE = \"data-theme\"\nconst DARK = \"dark\"\nconst LIGHT = \"light\"\nconst MODE = \"mode\"\n\nfunction setDarkMode() {\n document.documentElement.setAttribute(ATTRIBUTE, DARK);\n $(\"#mode\").find(\"svg\").replaceWith(LIGHT_ICON);\n icons();\n}\n\nfunction setLightMode() {\n document.documentElement.setAttribute(ATTRIBUTE, LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith(DARK_ICON);\n icons();\n}\n\nfunction setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) {\n setDarkMode();\n } else {\n setLightMode();\n }\n\n sessionStorage.setItem(MODE, '');\n}\n\nexport const setMode = () => {\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem(MODE);\n \n if (mode == DARK) {\n setDarkMode();\n } else if (mode == LIGHT) {\n setLightMode();\n } else {\n setPreferedMode(systemPrefersDark);\n }\n}\n\nexport const switchMode = () => {\n $(\"#mode\").on(\"click\", () => {\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n setDarkMode();\n sessionStorage.setItem(MODE, DARK);\n } else {\n setLightMode();\n sessionStorage.setItem(MODE, LIGHT);\n }\n });\n}\n\nexport default {switchMode, setMode};\n"],"names":["systemPrefersDark","mode","$0abaf8754d6d68dc$export$df03f54e09e486fa","feather","replace","$77af9af8a83584ec$var$ATTRIBUTE","$77af9af8a83584ec$var$DARK","$77af9af8a83584ec$var$LIGHT","$77af9af8a83584ec$var$MODE","$77af9af8a83584ec$var$setDarkMode","document","documentElement","setAttribute","$","find","replaceWith","$77af9af8a83584ec$var$setLightMode","foundation","window","matchMedia","sessionStorage","getItem","matches","setItem","on","hasClass"],"version":3,"file":"main.js.map"}
1
+ {"mappings":"A,C,SIgCQ,EACA,EFjCD,IAAM,EAAQ,KACjB,QAAQ,OAAO,EACnB,EEEM,EAAY,aACZ,EAAO,OACP,EAAQ,QACR,EAAO,OAEb,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CATnB,8BAUf,AAAA,GACJ,CAEA,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CAdpB,+BAed,AAAA,GACJ,CDlBI,EAAE,UAAU,UAAU,GFI1B,AAAA,IG2BQ,EAAoB,OAAO,UAAU,CAAC,gCAGtC,CAFA,EAAO,eAAe,OAAO,CAAC,KAEtB,EACR,IACO,GAAQ,EACf,KAhBA,AAkBgB,EAlBE,OAAO,CACzB,IAEA,IAGJ,eAAe,OAAO,CAAC,EAAM,KAiB7B,EAAE,SAAS,EAAE,CAAC,QAAS,KACf,EAAE,SAAS,IAAI,CAAC,OAAO,QAAQ,CAAC,iBAChC,IACA,eAAe,OAAO,CAAC,EAAM,KAE7B,IACA,eAAe,OAAO,CAAC,EAAM,GAErC,E,C","sources":["<anon>","_scripts/main.js","_scripts/common/feather.js","_scripts/common/foundation.js","_scripts/common/theme.js"],"sourcesContent":["(() => {\nconst $0abaf8754d6d68dc$export$df03f54e09e486fa = ()=>{\n feather.replace();\n};\n\n\nconst $88ef8f78f6164e41$export$aa72436c99aff8fd = ()=>{\n $(document).foundation();\n};\n\n\n\nconst $77af9af8a83584ec$var$LIGHT_ICON = '<i data-feather=\"sun\"></i>';\nconst $77af9af8a83584ec$var$DARK_ICON = '<i data-feather=\"moon\"></i>';\nconst $77af9af8a83584ec$var$ATTRIBUTE = \"data-theme\";\nconst $77af9af8a83584ec$var$DARK = \"dark\";\nconst $77af9af8a83584ec$var$LIGHT = \"light\";\nconst $77af9af8a83584ec$var$MODE = \"mode\";\nfunction $77af9af8a83584ec$var$setDarkMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$DARK);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$LIGHT_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setLightMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$DARK_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) $77af9af8a83584ec$var$setDarkMode();\n else $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, \"\");\n}\nconst $77af9af8a83584ec$export$d4f039427a1beff1 = ()=>{\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem($77af9af8a83584ec$var$MODE);\n if (mode == $77af9af8a83584ec$var$DARK) $77af9af8a83584ec$var$setDarkMode();\n else if (mode == $77af9af8a83584ec$var$LIGHT) $77af9af8a83584ec$var$setLightMode();\n else $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark);\n};\nconst $77af9af8a83584ec$export$c43e41d2ed1b3347 = ()=>{\n $(\"#mode\").on(\"click\", ()=>{\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n $77af9af8a83584ec$var$setDarkMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$DARK);\n } else {\n $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$LIGHT);\n }\n });\n};\nvar $77af9af8a83584ec$export$2e2bcd8739ae039 = {\n switchMode: $77af9af8a83584ec$export$c43e41d2ed1b3347,\n setMode: $77af9af8a83584ec$export$d4f039427a1beff1\n};\n\n\n(0, $88ef8f78f6164e41$export$aa72436c99aff8fd)();\n(0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n(0, $77af9af8a83584ec$export$d4f039427a1beff1)();\n(0, $77af9af8a83584ec$export$c43e41d2ed1b3347)();\n\n})();\n//# sourceMappingURL=main.js.map\n","import { icons } from \"./common/feather\";\nimport { initializeBaseStyle } from \"./common/foundation\";\nimport { setMode, switchMode } from \"./common/theme\";\n\ninitializeBaseStyle();\nicons();\n\nsetMode();\nswitchMode();\n","export const icons = () => {\n feather.replace();\n}\n","export const initializeBaseStyle = () => {\n $(document).foundation();\n}\n","import { icons } from \"./feather\";\n\nconst LIGHT_ICON = \"<i data-feather=\\\"sun\\\"></i>\"\nconst DARK_ICON = \"<i data-feather=\\\"moon\\\"></i>\"\nconst ATTRIBUTE = \"data-theme\"\nconst DARK = \"dark\"\nconst LIGHT = \"light\"\nconst MODE = \"mode\"\n\nfunction setDarkMode() {\n document.documentElement.setAttribute(ATTRIBUTE, DARK);\n $(\"#mode\").find(\"svg\").replaceWith(LIGHT_ICON);\n icons();\n}\n\nfunction setLightMode() {\n document.documentElement.setAttribute(ATTRIBUTE, LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith(DARK_ICON);\n icons();\n}\n\nfunction setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) {\n setDarkMode();\n } else {\n setLightMode();\n }\n\n sessionStorage.setItem(MODE, '');\n}\n\nexport const setMode = () => {\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem(MODE);\n \n if (mode == DARK) {\n setDarkMode();\n } else if (mode == LIGHT) {\n setLightMode();\n } else {\n setPreferedMode(systemPrefersDark);\n }\n}\n\nexport const switchMode = () => {\n $(\"#mode\").on(\"click\", () => {\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n setDarkMode();\n sessionStorage.setItem(MODE, DARK);\n } else {\n setLightMode();\n sessionStorage.setItem(MODE, LIGHT);\n }\n });\n}\n\nexport default {switchMode, setMode};\n"],"names":["systemPrefersDark","mode","$0abaf8754d6d68dc$export$df03f54e09e486fa","feather","replace","$77af9af8a83584ec$var$ATTRIBUTE","$77af9af8a83584ec$var$DARK","$77af9af8a83584ec$var$LIGHT","$77af9af8a83584ec$var$MODE","$77af9af8a83584ec$var$setDarkMode","document","documentElement","setAttribute","$","find","replaceWith","$77af9af8a83584ec$var$setLightMode","foundation","window","matchMedia","sessionStorage","getItem","matches","setItem","on","hasClass"],"version":3,"file":"main.js.map"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-bhautiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawan Mishra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-02 00:00:00.000000000 Z
11
+ date: 2024-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll