From 79f19d706bfad682aea74f3644a7a05c1966ebea Mon Sep 17 00:00:00 2001 From: dpilafian Date: Tue, 15 Jun 2021 15:53:49 -0700 Subject: [PATCH] Release v0.3.7 --- .travis.yml | 3 --- dist/hamburger-menu.css | 2 +- dist/hamburger-menu.js | 4 ++-- dist/hamburger-menu.min.css | 2 +- dist/hamburger-menu.min.js | 4 ++-- docs/hamburger-menu.css | 2 +- docs/hamburger-menu.js | 4 ++-- package.json | 2 +- 8 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2252607..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "14" diff --git a/dist/hamburger-menu.css b/dist/hamburger-menu.css index 6c440a1..eca6103 100644 --- a/dist/hamburger-menu.css +++ b/dist/hamburger-menu.css @@ -1,4 +1,4 @@ -/*! HamburgerMenu v0.3.6 ☰ github.com/center-key/hamburger-menu ☰ MIT License */ +/*! HamburgerMenu v0.3.7 ☰ github.com/center-key/hamburger-menu ☰ MIT License */ /* Structure for HamburgerMenu: nav.hamburger-menu diff --git a/dist/hamburger-menu.js b/dist/hamburger-menu.js index 6ec933b..954d1c2 100644 --- a/dist/hamburger-menu.js +++ b/dist/hamburger-menu.js @@ -1,7 +1,7 @@ -//! HamburgerMenu v0.3.6 ☰ github.com/center-key/hamburger-menu ☰ MIT License +//! HamburgerMenu v0.3.7 ☰ github.com/center-key/hamburger-menu ☰ MIT License const hamburgerMenu = { - version: '0.3.6', + version: '0.3.7', selectItem(event) { const item = $(event.target).closest('li'); item.closest('aside').find('li').removeClass('current'); diff --git a/dist/hamburger-menu.min.css b/dist/hamburger-menu.min.css index 3b21335..ed0604b 100644 --- a/dist/hamburger-menu.min.css +++ b/dist/hamburger-menu.min.css @@ -1,2 +1,2 @@ -/*! HamburgerMenu v0.3.6 ☰ github.com/center-key/hamburger-menu ☰ MIT License */ +/*! HamburgerMenu v0.3.7 ☰ github.com/center-key/hamburger-menu ☰ MIT License */ body{margin:0;padding-bottom:0;padding-top:0}nav.hamburger-menu a.hamburger{background-color:inherit;color:inherit;display:none}nav.hamburger-menu aside{background-color:inherit;bottom:0;float:none;left:0;margin:0;overflow-y:scroll;padding:0;position:fixed;top:0;z-index:5000}nav.hamburger-menu aside ul{list-style:none;margin:0;padding:0}nav.hamburger-menu aside ul li a,nav.hamburger-menu aside ul li span{border-bottom:1px solid transparent;border-top:1px solid transparent;color:inherit;cursor:pointer;display:block;font-size:1.1rem;font-weight:700;padding:10px 0 10px 15px;text-align:left;text-decoration:none;transition:all .4s}nav.hamburger-menu aside ul li.current>a,nav.hamburger-menu aside ul li.current>span{border-color:inherit;cursor:default}nav.hamburger-menu aside ul ul li a,nav.hamburger-menu aside ul ul li span{font-size:.8rem;padding:4px 0 4px 30px}@media (max-width:667px){html body{cursor:pointer;padding:35px 10px 0}nav.hamburger-menu{cursor:auto}nav.hamburger-menu a.hamburger{display:block;font-size:1.4rem;font-weight:700;left:0;padding:6px 10px 8px 8px;position:absolute;text-decoration:none;top:0}nav.hamburger-menu a.hamburger:not(:hover){transition:opacity .5s .8s}nav.hamburger-menu a.hamburger:hover{opacity:0}nav.hamburger-menu aside{max-width:0;overflow:hidden;transition:max-width 1s}nav.hamburger-menu aside ul li{white-space:nowrap}nav.hamburger-menu:not(.collapse-menu):hover .hamburger+aside{max-width:400px;overflow-y:scroll}}body{padding-left:200px;padding-right:50px}nav.hamburger-menu aside{width:150px}nav.hamburger-menu{background-color:teal;color:#dcdcdc}nav.hamburger-menu aside ul li.current{border-color:#fff}nav.hamburger-menu aside ul li.current>a,nav.hamburger-menu aside ul li.current>span,nav.hamburger-menu aside ul li>a:hover,nav.hamburger-menu aside ul li>span:hover{background-color:#008b8b;color:#fff} diff --git a/dist/hamburger-menu.min.js b/dist/hamburger-menu.min.js index b71bd92..11a6afe 100644 --- a/dist/hamburger-menu.min.js +++ b/dist/hamburger-menu.min.js @@ -1,2 +1,2 @@ -//! HamburgerMenu v0.3.6 ☰ github.com/center-key/hamburger-menu ☰ MIT License -var hamburgerMenu={version:"0.3.6",selectItem:function selectItem(a){var b=$(a.target).closest("li");b.closest("aside").find("li").removeClass("current"),b.addClass("current");var c=b.closest(".hamburger-menu").addClass("collapse-menu"),d={},e=function(){c.removeClass("collapse-menu"),console.log("restoreAllowExand"),$(window.document).off(d)};d.click=e,d.mousemove=e;window.setTimeout(function(){return $(window.document).on(d)},100)},setup:function setup(){$(window.document).on({click:$.noop});var a=$("nav.hamburger-menu"),b=function(){var b={url:new window.URL(window.location.href),path:window.location.pathname.replace(/\/$/,"")};a.find("li >a").filter(function isCurrent(a,c){var d=new window.URL($(c).attr("href"),b.url);return d.pathname.replace(/\/$/,"")===b.path}).first().closest("li").addClass("current")},c=function(){return a.find(">aside li").on({click:hamburgerMenu.selectItem})};a.find(">aside").hasClass("disable-auto-highlight")||function autoHighlight(){b(),c()}()}};$(hamburgerMenu.setup); +//! HamburgerMenu v0.3.7 ☰ github.com/center-key/hamburger-menu ☰ MIT License +var hamburgerMenu={version:"0.3.7",selectItem:function selectItem(a){var b=$(a.target).closest("li");b.closest("aside").find("li").removeClass("current"),b.addClass("current");var c=b.closest(".hamburger-menu").addClass("collapse-menu"),d={},e=function(){c.removeClass("collapse-menu"),console.log("restoreAllowExand"),$(window.document).off(d)};d.click=e,d.mousemove=e;window.setTimeout(function(){return $(window.document).on(d)},100)},setup:function setup(){$(window.document).on({click:$.noop});var a=$("nav.hamburger-menu"),b=function(){var b={url:new window.URL(window.location.href),path:window.location.pathname.replace(/\/$/,"")};a.find("li >a").filter(function isCurrent(a,c){var d=new window.URL($(c).attr("href"),b.url);return d.pathname.replace(/\/$/,"")===b.path}).first().closest("li").addClass("current")},c=function(){return a.find(">aside li").on({click:hamburgerMenu.selectItem})};a.find(">aside").hasClass("disable-auto-highlight")||function autoHighlight(){b(),c()}()}};$(hamburgerMenu.setup); diff --git a/docs/hamburger-menu.css b/docs/hamburger-menu.css index 6c440a1..eca6103 100644 --- a/docs/hamburger-menu.css +++ b/docs/hamburger-menu.css @@ -1,4 +1,4 @@ -/*! HamburgerMenu v0.3.6 ☰ github.com/center-key/hamburger-menu ☰ MIT License */ +/*! HamburgerMenu v0.3.7 ☰ github.com/center-key/hamburger-menu ☰ MIT License */ /* Structure for HamburgerMenu: nav.hamburger-menu diff --git a/docs/hamburger-menu.js b/docs/hamburger-menu.js index 6ec933b..954d1c2 100644 --- a/docs/hamburger-menu.js +++ b/docs/hamburger-menu.js @@ -1,7 +1,7 @@ -//! HamburgerMenu v0.3.6 ☰ github.com/center-key/hamburger-menu ☰ MIT License +//! HamburgerMenu v0.3.7 ☰ github.com/center-key/hamburger-menu ☰ MIT License const hamburgerMenu = { - version: '0.3.6', + version: '0.3.7', selectItem(event) { const item = $(event.target).closest('li'); item.closest('aside').find('li').removeClass('current'); diff --git a/package.json b/package.json index a48e99c..32bbbce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hamburger-menu", - "version": "0.3.6", + "version": "0.3.7", "description": "☰ A responsive CSS solution for a hamburger menu ☰", "license": "MIT", "type": "module",