Skip to content

Commit

Permalink
Release v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Apr 26, 2024
1 parent bca69a3 commit 6f12f8c
Show file tree
Hide file tree
Showing 16 changed files with 92 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/blogger-tweaks.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/layouts/block-duo.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Block Duo layout -- Two big columns followed by a single footer
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/color-blocks.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Color Blocks layout -- Two columns of colorful blocks
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/color-slide.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Color Slide layout -- Top to botttom color transition
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/letterbox.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Letterbox layout -- Edge-to-edge semi-opaque bar over cover background image
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/modern.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Modern layout -- Clean blog post page
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/neon.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Neon layout -- For hackers and space junkies
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/neon.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License
const numNeonImages=8;const randomImage=Date.now()%numNeonImages+1;globalThis.document.body.classList.add("neon-image-"+String(randomImage));
2 changes: 1 addition & 1 deletion dist/layouts/vertical-bars.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Vertical Bars layout -- traditional boring old-school webpage
Expand Down
34 changes: 33 additions & 1 deletion dist/layouts/zebra-sections.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Zebra Sections layout -- Edge-to-edge blocks with alternating background colors
Expand Down Expand Up @@ -113,6 +113,9 @@ main >section:first-child {
main >section:nth-child(even) {
background-color: whitesmoke;
}
main >section:last-child {
padding-bottom: 50px;
}
main >section >h2 {
font-size: 1.6rem;
margin-top: -8px;
Expand Down Expand Up @@ -144,6 +147,12 @@ main >section >ul {
max-width: 600px;
text-align: left;
}
main >section >figure {
padding: 0px 10px;
}
main >section >figure img {
max-height: 600px;
}
main >section figure {
display: inline-block;
min-width: auto;
Expand All @@ -161,12 +170,24 @@ main >section figure img.popup-image:hover {
main >section figure figcaption {
font-style: italic;
}
main >section >blockquote {
font-style: italic;
}
main >section >blockquote cite {
display: block;
font-size: 0.8rem;
font-weight: 100;
font-style: normal;
}
body >footer {
flex-direction: column;
text-align: center;
color: silver;
background-color: black;
}
body >footer >div {
padding: 5px 0px;
}
body >footer a {
color: silver;
}
Expand All @@ -182,6 +203,17 @@ body >footer i[data-brand] {
font-size: 1.6rem;
margin: 0px 5px;
}

/* Mobile devices */
@media (max-width: 667px) { /* selects iPhone 6/6s/7/8/SE2/SE3 landscape and anything narrower */
body >header img {
bottom: -50px;
width: 100px;
}
main >section:first-child {
padding-top: 80px;
}
}
/******************************************************************************/

/* Zebra Sections layout -- customize colors */
Expand Down
5 changes: 4 additions & 1 deletion dist/lib-x.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License

export type GlobalKey = keyof typeof globalThis;
export type Json = string | number | boolean | null | undefined | JsonObject | Json[];
Expand Down Expand Up @@ -169,6 +169,9 @@ declare const libX: {
isObj(thing: unknown): boolean;
removeWhitespace(text: string): string;
};
nav: {
setupLinkMenu(): HTMLElement | null;
};
crypto: {
hash(message: string, options?: Partial<LibXCryptoHashSettings>): Promise<string>;
};
Expand Down
23 changes: 21 additions & 2 deletions dist/lib-x.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License

const libXDom = {
stateDepot: [],
Expand Down Expand Up @@ -527,6 +527,23 @@ const libXUtil = {
return text.replace(/\s/g, '');
},
};
const libXNav = {
setupLinkMenu() {
const linkMenu = globalThis.document.getElementById('link-menu');
const setCurrentPage = () => {
const pageName = globalThis.location.pathname
.replace(/index.[a-z]*$/, '').replace(/\/$/, '').replace(/.*\//, '');
const active = linkMenu.querySelector(`a[href$="${pageName}"]`);
const isDefaultPage = /(\/|index\.[a-z]*)$/.test(globalThis.location.href);
const onHomePage = linkMenu.children[0].getAttribute('href') === '.' && isDefaultPage;
const current = onHomePage ? linkMenu.firstElementChild : active;
current?.classList.add('current');
};
if (linkMenu)
setCurrentPage();
return linkMenu;
},
};
const libXCrypto = {
hash(message, options) {
const defaults = { algorithm: 'SHA-256', salt: '' };
Expand Down Expand Up @@ -808,10 +825,11 @@ const libXExtra = {
},
};
const libX = {
version: '2.1.2',
version: '2.1.3',
dom: libXDom,
ui: libXUi,
util: libXUtil,
nav: libXNav,
crypto: libXCrypto,
storage: libXStorage,
counter: libXCounter,
Expand All @@ -837,6 +855,7 @@ const libX = {
libX.ui.setupForkMe();
libX.ui.displayAddr();
libX.ui.setupVideos();
libX.nav.setupLinkMenu();
libX.form.perfect();
libX.bubbleHelp.setup();
libX.social.setup();
Expand Down
23 changes: 21 additions & 2 deletions dist/lib-x.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! web-ignition v2.1.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.1.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License

const libXDom = {
stateDepot: [],
Expand Down Expand Up @@ -527,6 +527,23 @@ const libXUtil = {
return text.replace(/\s/g, '');
},
};
const libXNav = {
setupLinkMenu() {
const linkMenu = globalThis.document.getElementById('link-menu');
const setCurrentPage = () => {
const pageName = globalThis.location.pathname
.replace(/index.[a-z]*$/, '').replace(/\/$/, '').replace(/.*\//, '');
const active = linkMenu.querySelector(`a[href$="${pageName}"]`);
const isDefaultPage = /(\/|index\.[a-z]*)$/.test(globalThis.location.href);
const onHomePage = linkMenu.children[0].getAttribute('href') === '.' && isDefaultPage;
const current = onHomePage ? linkMenu.firstElementChild : active;
current?.classList.add('current');
};
if (linkMenu)
setCurrentPage();
return linkMenu;
},
};
const libXCrypto = {
hash(message, options) {
const defaults = { algorithm: 'SHA-256', salt: '' };
Expand Down Expand Up @@ -808,10 +825,11 @@ const libXExtra = {
},
};
const libX = {
version: '2.1.2',
version: '2.1.3',
dom: libXDom,
ui: libXUi,
util: libXUtil,
nav: libXNav,
crypto: libXCrypto,
storage: libXStorage,
counter: libXCounter,
Expand All @@ -837,6 +855,7 @@ const libX = {
libX.ui.setupForkMe();
libX.ui.displayAddr();
libX.ui.setupVideos();
libX.nav.setupLinkMenu();
libX.form.perfect();
libX.bubbleHelp.setup();
libX.social.setup();
Expand Down
4 changes: 2 additions & 2 deletions dist/lib-x.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6f12f8c

Please sign in to comment.