Use custom toggle for smallscreen nav.

This commit is contained in:
Matthias Mees 2013-07-06 09:54:12 +02:00
parent 7a94df491a
commit 7811150fe5
2 changed files with 4 additions and 2 deletions

View File

@ -74,6 +74,8 @@
{else}
{if NOT $admin_vars.no_sidebar}
<div class="smallscreen">
<a id="nav-toggle" href="#main_menu"><span class="icon-menu"></span><span class="visuallyhidden"> Navigation</span></a> {* i18n *}
<nav id="main_menu">
<h2 class="visuallyhidden">Main menu</h2> {* i18n *}

View File

@ -1049,9 +1049,9 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
animate: true, // Boolean: Use CSS3 transitions, true or false
transition: 250, // Integer: Speed of the transition, in milliseconds
// String: Label for the navigation toggle
label: "<span class='icon-menu'></span><span class='visuallyhidden'> Navigation</span>",
label: "",
insert: "before", // String: Insert the toggle before or after the navigation
customToggle: "", // Selector: Specify the ID of a custom toggle
customToggle: "nav-toggle", // Selector: Specify the ID of a custom toggle
openPos: "relative", // String: Position of the opened nav, relative or static
jsClass: "js", // String: 'JS enabled' class which is added to <html> el
debug: false, // Boolean: Log debug messages to console, true or false