Twenty Thirteen: disable fixed navbar on small screens. Props obenland, fixes #23647.
Also closes #23526, #23535, and #23566 git-svn-id: http://core.svn.wordpress.org/trunk@23533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0f71e09366
commit
8293fc84bb
|
@ -29,7 +29,7 @@
|
|||
if ( navbarOffset < 0 )
|
||||
navbarOffset = navbar.offset().top - toolbarOffset;
|
||||
|
||||
if ( window.scrollY >= navbarOffset )
|
||||
if ( window.scrollY >= navbarOffset && 644 < window.innerWidth )
|
||||
html.addClass( 'navbar-fixed' );
|
||||
else
|
||||
html.removeClass( 'navbar-fixed' );
|
||||
|
|
|
@ -2833,16 +2833,6 @@ footer.entry-meta {
|
|||
font-size: 30px;
|
||||
}
|
||||
|
||||
.navbar-fixed .site-title,
|
||||
.site-description {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.navbar-fixed .site-title {
|
||||
line-height: 2.5;
|
||||
max-width: 220px;
|
||||
}
|
||||
|
||||
#content .entry-header,
|
||||
#content .entry-content,
|
||||
#content .entry-summary,
|
||||
|
@ -2899,11 +2889,6 @@ footer.entry-meta {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.navbar-fixed .toggled-on .nav-menu,
|
||||
.navbar-fixed .toggled-on .nav-menu > ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toggled-on li,
|
||||
.toggled-on .children {
|
||||
display: block;
|
||||
|
|
Loading…
Reference in New Issue