Make WordPress Core

Changeset 24834


Ignore:
Timestamp:
07/28/2013 11:24:17 PM (13 years ago)
Author:
helen
Message:

More betterer theme screenshot scaling when the admin menu is folded. props andrewspittle. fixes #22794.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.css

    r24802 r24834  
    53155315}
    53165316
     5317/* Allow for three-up in small windows when sidebar is collapsed */
     5318@media only screen and (max-width: 1200px) {
     5319        .folded .available-theme,
     5320        .folded .available-theme .screenshot {
     5321                width: 300px;
     5322        }
     5323
     5324        .folded .available-theme .screenshot {
     5325                height: 225px;
     5326        }
     5327
     5328        .folded #current-theme img {
     5329                width: 300px;
     5330        }
     5331
     5332        .folded #current-theme.has-screenshot {
     5333                padding-left: 330px;
     5334        }
     5335
     5336        .folded #current-theme img {
     5337                margin-left: -330px;
     5338        }
     5339}
     5340
     5341/* Adjust three-up display in smaller windows when sidebar is collapsed */
     5342@media only screen and (max-width: 1079px) {
     5343        .folded .available-theme,
     5344        .folded .available-theme .screenshot {
     5345                width: 270px;
     5346        }
     5347
     5348        .folded .available-theme .screenshot {
     5349                height: 203px;
     5350        }
     5351
     5352        .folded #current-theme img {
     5353                width: 270px;
     5354        }
     5355
     5356        .folded #current-theme.has-screenshot {
     5357                padding-left: 300px;
     5358        }
     5359
     5360        .folded #current-theme img {
     5361                margin-left: -300px;
     5362        }
     5363}
     5364
    53175365/* Allow for three-up on 1024px wide screens, e.g. tablets */
    53185366@media only screen and (max-width: 1200px) {
Note: See TracChangeset for help on using the changeset viewer.