Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
dotsunited-off-canvas-navigation
Advanced tools
Off-Canvas Navigation utilities.
With webpack:
var setup = require('dotsunited-off-canvas-navigation/lib/setup');
setup('off-canvas-navigation');
@import "~dotsunited-off-canvas-navigation/lib/mixins";
.off-canvas-navigation-button {
.dotsunited-off-canvas-navigation-button(off-canvas-navigation);
// Custom styles
position: absolute;
top: 10px;
right: 10px;
}
.off-canvas-navigation-menu {
.dotsunited-off-canvas-navigation-menu(off-canvas-navigation);
}
.off-canvas-navigation-backdrop {
.dotsunited-off-canvas-navigation-backdrop(off-canvas-navigation);
}
If it's the only primary navigation menu on the page:
<a aria-controls="off-canvas-navigation-menu" aria-expanded="false" href="#off-canvas-navigation-menu" role="button" class="off-canvas-navigation-button" data-off-canvas-navigation-toggle>
<span><span></span></span>
</a>
<div aria-hidden="true" class="off-canvas-navigation-backdrop" data-off-canvas-navigation-toggle></div>
<nav id="off-canvas-navigation-menu" class="off-canvas-navigation-menu">
<ul>
<li>...</li>
</ul>
</nav>
If there are more than one primary navigation menus, hiding the off-canvas menu completely for screen readers:
<button aria-hidden="true" class="off-canvas-navigation-button" data-off-canvas-navigation-toggle>
<span></span>
</button>
<div aria-hidden="true" class="off-canvas-navigation-backdrop" data-off-canvas-navigation-toggle></div>
<nav aria-hidden="true" id="off-canvas-navigation-menu" class="off-canvas-navigation-menu">
<ul>
<li>...</li>
</ul>
</nav>
To change the size of the button, just set a different width and height for the
first nested <span>
.
@import "~dotsunited-off-canvas-navigation/lib/mixins";
.off-canvas-navigation-button {
.dotsunited-off-canvas-navigation-button(off-canvas-navigation);
> span {
width: 100px;
height: 90px;
}
}
Copyright (c) 2015 Dots United GmbH. Released under the MIT license.
FAQs
Off-Canvas Navigation utilities.
We found that dotsunited-off-canvas-navigation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.