diff --git a/assets/css/pe-customize-controls.css b/assets/css/craftnce-customize-controls.css similarity index 100% rename from assets/css/pe-customize-controls.css rename to assets/css/craftnce-customize-controls.css diff --git a/assets/css/customize-repeater.css b/assets/css/craftnce-customize-repeater.css similarity index 100% rename from assets/css/customize-repeater.css rename to assets/css/craftnce-customize-repeater.css diff --git a/assets/css/fontawesome-iconpicker.min.css b/assets/css/craftnce-iconpicker.min.css similarity index 100% rename from assets/css/fontawesome-iconpicker.min.css rename to assets/css/craftnce-iconpicker.min.css diff --git a/assets/css/style.css b/assets/css/style.css index d687daa..9e28d85 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -193,7 +193,7 @@ input:focus { padding: 0; position: absolute !important; width: 1px; - word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ + word-wrap: normal !important; } .screen-reader-text:focus { @@ -213,18 +213,27 @@ input:focus { z-index: 100000; /* Above WP toolbar. */ } +#content[tabindex="-1"]:focus { + outline: 0; +} .bypostauthor{} .gallery-caption{} + + /* Header Section */ +#site-header { + z-index: 9999; +} .navbar-brand img { width: 120px; } .navbar-toggler { border: none; + border-radius: 0; } .navbar-toggler:focus { - box-shadow: none; + box-shadow: 0 0 0 0.1rem; } .home-hero { background: var(--secondary-color); diff --git a/assets/js/pe-customize-controls.js b/assets/js/craftnce-customize-controls.js similarity index 100% rename from assets/js/pe-customize-controls.js rename to assets/js/craftnce-customize-controls.js diff --git a/assets/js/customizer-repeater.js b/assets/js/craftnce-customizer-repeater.js similarity index 100% rename from assets/js/customizer-repeater.js rename to assets/js/craftnce-customizer-repeater.js diff --git a/assets/js/craftnce-iconpicker.min.js b/assets/js/craftnce-iconpicker.min.js new file mode 100644 index 0000000..fa04136 --- /dev/null +++ b/assets/js/craftnce-iconpicker.min.js @@ -0,0 +1,42 @@ +!(function (e) { + "use strict"; + (wp.customizerRepeater = { + init: function () { + e(".iconpicker-items>i").on("click", function () { + var i = e(this).attr("class").slice(3), + t = e(this).parents(".iconpicker-popover").prev().find(".icp"); + t.val(i), t.attr("value", i); + var n = t.next(".input-group-addon"), + c = ''); + n.empty(), n.append(c); + var r = e(this).parent().parent().parent(); + return t.trigger("change"), customizer_repeater_refresh_social_icons(r), !1; + }); + }, + search: function (i) { + var t = i.parent().next().find(".iconpicker-items"), + n = i.val().toLowerCase(); + n.length > 0 + ? t.children().each(function () { + e(this).filter("[title*=".concat(n)).length > 0 || n.length < 1 ? e(this).show() : e(this).hide(); + }) + : t.children().show(); + }, + iconPickerToggle: function (e) { + e.parent().next().addClass("iconpicker-visible"); + }, + }), + e(document).ready(function () { + wp.customizerRepeater.init(), + e(".iconpicker-search").on("keyup", function () { + wp.customizerRepeater.search(e(this)); + }), + e(".icp-auto").on("click", function () { + wp.customizerRepeater.iconPickerToggle(e(this)); + }), + e(document).mouseup(function (i) { + var t = e(".iconpicker-popover"); + t.is(i.target) || 0 !== t.has(i.target).length || t.removeClass("iconpicker-visible"); + }); + }); +})(jQuery); diff --git a/assets/js/fontawesome-iconpicker.min.js b/assets/js/fontawesome-iconpicker.min.js deleted file mode 100644 index 90d8ece..0000000 --- a/assets/js/fontawesome-iconpicker.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){"use strict";wp.customizerRepeater={init:function(){e(".iconpicker-items>i").on("click",function(){var i=e(this).attr("class").slice(3),t=e(this).parents(".iconpicker-popover").prev().find(".icp");t.val(i),t.attr("value",i);var n=t.next(".input-group-addon"),c='');n.empty(),n.append(c);var r=e(this).parent().parent().parent();return t.trigger("change"),customizer_repeater_refresh_social_icons(r),!1})},search:function(i){var t=i.parent().next().find(".iconpicker-items"),n=i.val().toLowerCase();n.length>0?t.children().each(function(){e(this).filter("[title*=".concat(n)).length>0||n.length<1?e(this).show():e(this).hide()}):t.children().show()},iconPickerToggle:function(e){e.parent().next().addClass("iconpicker-visible")}},e(document).ready(function(){wp.customizerRepeater.init(),e(".iconpicker-search").on("keyup",function(){wp.customizerRepeater.search(e(this))}),e(".icp-auto").on("click",function(){wp.customizerRepeater.iconPickerToggle(e(this))}),e(document).mouseup(function(i){var t=e(".iconpicker-popover");t.is(i.target)||0!==t.has(i.target).length||t.removeClass("iconpicker-visible")})})}(jQuery); \ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js index 217bc93..74a56ee 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -106,4 +106,4 @@ document.addEventListener('scroll', () => { } else if (window.scrollY < 100) { siteHeader.classList.remove('shadow-sm'); } -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/footer.php b/footer.php index 16caf6b..01785ea 100644 --- a/footer.php +++ b/footer.php @@ -1,12 +1,13 @@ -
- -