From ca420c4e93b397bcb11e6b80aea8cb3f34f8ccf7 Mon Sep 17 00:00:00 2001 From: dpilafian Date: Tue, 15 Jun 2021 15:51:27 -0700 Subject: [PATCH] Switch branch to main --- README.md | 11 +++++------ dist/hamburger-menu.min.css | 2 +- task-runner.sh.command | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 555b9c4..f1a2c47 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # ☰  HamburgerMenu  ☰ _A responsive CSS solution_ -[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/hamburger-menu/blob/master/LICENSE.txt) +[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/hamburger-menu/blob/main/LICENSE.txt) [![npm](https://img.shields.io/npm/v/hamburger-menu.svg)](https://www.npmjs.com/package/hamburger-menu) [![Vulnerabilities](https://snyk.io/test/github/center-key/hamburger-menu/badge.svg)](https://snyk.io/test/github/center-key/hamburger-menu) [![Hits](https://data.jsdelivr.com/v1/package/npm/hamburger-menu/badge?style=rounded)](https://www.jsdelivr.com/package/npm/hamburger-menu) -[![Build](https://travis-ci.org/center-key/hamburger-menu.svg)](https://travis-ci.org/center-key/hamburger-menu) [![Build](https://github.com/center-key/hamburger-menu/workflows/build/badge.svg)](https://github.com/center-key/hamburger-menu/actions?query=workflow%3Abuild) Hamburger button menus should be used with caution as they can impair user interaction. @@ -19,9 +18,9 @@ Tapping the hamburger reveals the navigation menu with smooth CSS animation. Try it out:
https://hamburger-menu.js.org -screenshot -screenshot -screenshot +screenshot +screenshot +screenshot ### B) Setup Include the **HamburgerMenu** CSS and JavaScript: @@ -50,7 +49,7 @@ $ npm install hamburger-menu ### C) Usage See the -[**x3000.html**](https://github.com/center-key/hamburger-menu/blob/master/spec/multipage/products/x3000.html) +[**x3000.html**](https://github.com/center-key/hamburger-menu/blob/main/spec/multipage/products/x3000.html) test page for an example or follow the instructions below. Insert the following HTML into your web page and modify the menu items (`
  • `) as appropriate diff --git a/dist/hamburger-menu.min.css b/dist/hamburger-menu.min.css index 76111cd..3b21335 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 */ -body{padding-top:0;padding-bottom:0;margin:0}nav.hamburger-menu a.hamburger{display:none;color:inherit;background-color:inherit}nav.hamburger-menu aside{position:fixed;top:0;bottom:0;left:0;float:none;background-color:inherit;padding:0;margin:0;overflow-y:scroll;z-index:5000}nav.hamburger-menu aside ul{list-style:none;padding:0;margin:0}nav.hamburger-menu aside ul li a,nav.hamburger-menu aside ul li span{display:block;font-size:1.1rem;font-weight:700;text-align:left;text-decoration:none;color:inherit;border-top:1px solid transparent;border-bottom:1px solid transparent;padding:10px 0 10px 15px;transition:all .4s;cursor:pointer}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{padding:35px 10px 0;cursor:pointer}nav.hamburger-menu{cursor:auto}nav.hamburger-menu a.hamburger{display:block;position:absolute;top:0;left:0;font-size:1.4rem;font-weight:700;text-decoration:none;padding:6px 10px 8px 8px}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-right:50px;padding-left:200px}nav.hamburger-menu aside{width:150px}nav.hamburger-menu{color:#dcdcdc;background-color:teal}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{color:#fff;background-color:#008b8b} +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/task-runner.sh.command b/task-runner.sh.command index e97b9b2..320812b 100755 --- a/task-runner.sh.command +++ b/task-runner.sh.command @@ -29,7 +29,7 @@ setupTools() { releaseInstructions() { cd $projectHome repository=$(grep repository package.json | awk -F'"' '{print $4}' | sed s/github://) - package=https://raw.githubusercontent.com/$repository/master/package.json + package=https://raw.githubusercontent.com/$repository/main/package.json version=v$(grep '"version"' package.json | awk -F'"' '{print $4}') pushed=v$(curl --silent $package | grep '"version":' | awk -F'"' '{print $4}') released=$(git tag | tail -1)