/** * Theme Screenshot * * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size * It is also responsive. */ .theme-browser .theme .theme-screenshot { display: block; overflow: hidden; position: relative; -webkit-backface-visibility: hidden; /* Prevents flicker of the screenshot on hover. */ transition: opacity 0.2s ease-in-out; }
.theme-browser .theme .theme-screenshot:after { content: ""; display: block; padding-top: 66.66666%; /* using a 3/2 aspect ratio */ }
.theme-overlay .toggle-auto-update { /* Better align spin icon and text. */ display: inline-flex; align-items: center; /* Prevents content after the auto-update toggler from jumping down and up. */ min-height: 20px; /* Same height as the spinning dashicon. */ vertical-align: top; }
/** * Single Theme Mode * Displays detailed view inline when a user has no switch capabilities */ .single-theme .theme-overlay .theme-backdrop, .single-theme .theme-overlay .theme-header, .single-theme .theme { display: none; }
/* Admin menu is folded */ @media only screen and (max-width: 960px) { .theme-overlay .theme-wrap { left: 65px; } }
@media only screen and (max-width: 782px) { body.folded .theme-overlay .theme-wrap, .theme-overlay .theme-wrap { top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ right: 0; bottom: 0; left: 0; padding: 70px 20px 20px; border: none; z-index: 100000; /* should overlap #wpadminbar. */ position: fixed; }
.theme-browser .theme.active .theme-name span { /* Hide the "Active: " label on smaller screens. */ display: none; }
/* Override column gap adjustment in media library. */ @media only screen and (max-width: 1000px) { .theme-install-php .wp-filter p.search-box { column-gap: .5rem; } }
/*------------------------------------------------------------------------------ 23.0 - Full Overlay w/ Sidebar ------------------------------------------------------------------------------*/
body.full-overlay-active { overflow: hidden; /* Hide all the content, the Customizer overlay is then made visible to be the only available content. */ visibility: hidden; }
.preview-mobile .wp-full-overlay-main { margin: auto 0 auto -160px; width: 320px; height: 480px; max-height: 100%; max-width: 100%; left: 50%; }
.preview-tablet .wp-full-overlay-main { margin: auto 0 auto -360px; width: 720px; /* Size is loosely based on a typical "tablet" device size. Intentionally ambiguous - this does not represent any particular device precisely. */ height: 1080px; max-height: 100%; max-width: 100%; left: 50%; }
/* Make the Customizer and Theme installer overlays the only available content. */ #customize-container, .theme-install-overlay { visibility: visible; }