Skip to content

Commit

Permalink
Extended mdl menu item style to wordpress menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
pixleight committed Apr 22, 2016
1 parent edcc9d9 commit cc8ba4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/styles/layouts/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.mdl-navigation .menu-item {
@extend .mdl-navigation__link;
}
4 changes: 3 additions & 1 deletion templates/header.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<a class="mdl-layout-title" href="<?= esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>

<!-- Navigation -->
<?php
if( has_nav_menu( 'primary_navigation' ) ) :
// Remove wrapping <li> from around links
Expand Down

0 comments on commit cc8ba4e

Please sign in to comment.