WordPress.org

Make WordPress Core

Changeset 23533


Ignore:
Timestamp:
02/28/13 19:49:26 (14 months ago)
Author:
lancewillett
Message:

Twenty Thirteen: disable fixed navbar on small screens. Props obenland, fixes #23647.

Also closes #23526, #23535, and #23566

Location:
trunk/wp-content/themes/twentythirteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/js/functions.js

    r23452 r23533  
    3030            navbarOffset = navbar.offset().top - toolbarOffset; 
    3131 
    32         if ( window.scrollY >= navbarOffset ) 
     32        if ( window.scrollY >= navbarOffset && 644 < window.innerWidth ) 
    3333            html.addClass( 'navbar-fixed' ); 
    3434        else 
  • trunk/wp-content/themes/twentythirteen/style.css

    r23532 r23533  
    28342834    } 
    28352835 
    2836     .navbar-fixed .site-title, 
    2837     .site-description { 
    2838         font-size: 18px; 
    2839     } 
    2840  
    2841     .navbar-fixed .site-title { 
    2842         line-height: 2.5; 
    2843         max-width: 220px; 
    2844     } 
    2845  
    28462836    #content .entry-header, 
    28472837    #content .entry-content, 
     
    29002890    } 
    29012891 
    2902     .navbar-fixed .toggled-on .nav-menu, 
    2903     .navbar-fixed .toggled-on .nav-menu > ul { 
    2904         display: none; 
    2905     } 
    2906  
    29072892    .toggled-on li, 
    29082893    .toggled-on .children { 
Note: See TracChangeset for help on using the changeset viewer.