Make WordPress Core

Ticket #50682: 50682.1.diff

File 50682.1.diff, 1.3 KB (added by sabernhardt, 5 years ago)
  • src/wp-admin/css/themes.css

     
    465465.theme-overlay .theme-wrap {
    466466        clear: both;
    467467        position: fixed;
    468         top: 9%;
     468        top: 30px;
    469469        left: 190px;
    470470        right: 30px;
    471         bottom: 3%;
     471        bottom: 30px;
    472472        background: #fff;
    473473        box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1);
     474        margin: 32px auto 0; /* Top margin equals the admin toolbar height. */
     475        max-width: 1450px;
    474476        z-index: 10000; /* Over WP Pointers. */
    475477        box-sizing: border-box;
    476478        -webkit-overflow-scrolling: touch;
    … …  
    787789        }
    788790}
    789791
    790 @media only screen and (min-width: 1680px) {
    791         .theme-overlay .theme-wrap {
    792                 width: 1450px;
    793                 margin: 0 auto;
    794         }
    795 }
    796 
    797792/* Maximum screenshot width reaches 440px */
    798793@media only screen and (min-width: 1640px) {
    799794        .theme-browser .theme {
    … …  
    838833@media only screen and (max-width: 780px) {
    839834        body.folded .theme-overlay .theme-wrap,
    840835        .theme-overlay .theme-wrap {
    841                 top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */
     836                margin-top: 0; /* The admin toolbar isn't fixed on mobile, so this can use the full viewport height. */
     837                top: 0;
    842838                right: 0;
    843839                bottom: 0;
    844840                left: 0;