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:
Lance Willett 2013-02-28 19:49:26 +00:00
parent 0f71e09366
commit 8293fc84bb
2 changed files with 1 additions and 16 deletions

View File

@ -29,7 +29,7 @@
if ( navbarOffset < 0 ) if ( navbarOffset < 0 )
navbarOffset = navbar.offset().top - toolbarOffset; navbarOffset = navbar.offset().top - toolbarOffset;
if ( window.scrollY >= navbarOffset ) if ( window.scrollY >= navbarOffset && 644 < window.innerWidth )
html.addClass( 'navbar-fixed' ); html.addClass( 'navbar-fixed' );
else else
html.removeClass( 'navbar-fixed' ); html.removeClass( 'navbar-fixed' );

View File

@ -2833,16 +2833,6 @@ footer.entry-meta {
font-size: 30px; 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-header,
#content .entry-content, #content .entry-content,
#content .entry-summary, #content .entry-summary,
@ -2899,11 +2889,6 @@ footer.entry-meta {
width: 100%; width: 100%;
} }
.navbar-fixed .toggled-on .nav-menu,
.navbar-fixed .toggled-on .nav-menu > ul {
display: none;
}
.toggled-on li, .toggled-on li,
.toggled-on .children { .toggled-on .children {
display: block; display: block;