mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Twenty Thirteen: disable fixed navbar on small screens. Props obenland, fixes #23647.
Also closes #23526, #23535, and #23566 git-svn-id: https://develop.svn.wordpress.org/trunk@23533 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c361184e4b
commit
7d025e3e81
@ -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
Block a user