WordPress.org

Make WordPress Core

Changeset 31945


Ignore:
Timestamp:
03/31/2015 10:54:40 PM (5 years ago)
Author:
ocean90
Message:

Disable body scrolling when session expired log in modal is open.

Fixes also the missing close icon if screen width is less than 380px.

props adamsilverstein, ocean90.
fixes #31610.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/wp-auth-check.css

    r31471 r31945  
    3535}
    3636
     37@media screen and ( max-width: 380px ) {
     38    #wp-auth-check-wrap #wp-auth-check {
     39        left: 0;
     40        width: 100%;
     41        margin: 0;
     42    }
     43}
     44
    3745#wp-auth-check-wrap.fallback #wp-auth-check {
    3846    max-height: 180px;
     
    4553    background-size: 16px 16px;
    4654    height: 100%;
     55    overflow: auto;
     56    -webkit-overflow-scrolling: touch;
    4757}
    4858
    4959#wp-auth-check-wrap #wp-auth-check-form iframe {
    50     height: 100%;
     60    height: 98%; /* Scrollbar fix */
    5161    width: 100%;
    52     overflow: auto;
    5362}
    5463
  • trunk/src/wp-includes/js/wp-auth-check.js

    r26530 r31945  
    5050        }
    5151
     52        $( 'body' ).addClass( 'modal-open' );
    5253        wrap.removeClass('hidden');
    5354
     
    8182            wrap.addClass('hidden').css('display', '');
    8283            $('#wp-auth-check-frame').remove();
     84            $( 'body' ).removeClass( 'modal-open' );
    8385        });
    8486    }
Note: See TracChangeset for help on using the changeset viewer.