Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Fix issue #170 with parent links in off-canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
olefredrik committed Aug 10, 2017
1 parent 7a12f43 commit 66fa1db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions library/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function foundationpress_mobile_nav() {
'menu' => __( 'mobile-nav', 'foundationpress' ),
'menu_class' => 'vertical menu',
'theme_location' => 'mobile-nav',
'items_wrap' => '<ul id="%1$s" class="%2$s" data-accordion-menu>%3$s</ul>',
'items_wrap' => '<ul id="%1$s" class="%2$s" data-accordion-menu data-submenu-toggle="true">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundationpress_Mobile_Walker(),
));
Expand Down Expand Up @@ -246,10 +246,10 @@ function foundationpress_breadcrumb( $showhome = true, $separatorclass = false )
echo '<li class="current item-current-search">Search results for: ' . get_search_query() . '</li>';

} elseif ( is_post_type_archive() ) {

// Custom Post Type Archive Page
echo '<li class="current">' . post_type_archive_title( '', false ) . '</li>';

} elseif ( is_404() ) {

// 404 page
Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ $accordionmenu-padding: $global-menu-padding;
$accordionmenu-nested-margin: $global-menu-nested-margin;
$accordionmenu-submenu-padding: $accordionmenu-padding;
$accordionmenu-arrows: true;
$accordionmenu-arrow-color: $primary-color;
$accordionmenu-arrow-color: $white;
$accordionmenu-item-background: null;
$accordionmenu-border: null;
$accordionmenu-submenu-toggle-background: null;
Expand Down
5 changes: 3 additions & 2 deletions src/assets/scss/templates/_demosite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
a {
color: $white;
font-weight: 600;
font-size: rem-calc(18);
opacity: .75;
font-size: rem-calc(15);
}

/*
.is-accordion-submenu-parent > a::after {
display: block;
width: 0;
Expand All @@ -25,6 +25,7 @@
margin-top: -3px;
right: 1rem;
}
*/
}

.menu .active > a { background-color: #ccc; }
Expand Down

0 comments on commit 66fa1db

Please sign in to comment.