Changeset 29474
- Timestamp:
- 08/12/2014 11:01:38 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r29365 r29474 2127 2127 /* Plugin install thickbox */ 2128 2128 #plugin-information { 2129 background: #f cfcfc;2129 background: #fff; 2130 2130 position: fixed; 2131 2131 top: 0; … … 2133 2133 bottom: 0; 2134 2134 left: 0; 2135 height: auto;2135 height: 100%; 2136 2136 padding: 0; 2137 2137 } 2138 2138 2139 #plugin-information-scrollable { 2140 display: block; 2141 overflow: auto; 2142 height: 100%; 2143 padding-bottom: 58px; 2144 } 2145 2139 2146 #plugin-information-title { 2140 margin-right: 56px; /* avoid collisions with the close icon */2141 2147 padding: 0 20px; 2148 background: #f5f5f5; 2142 2149 font-size: 22px; 2143 2150 font-weight: 600; … … 2168 2175 2169 2176 #plugin-information-title.with-banner h2 { 2177 display: inline-block; 2170 2178 font-size: 30px; 2171 2179 line-height: 50px; 2172 2180 font-weight: bold; 2173 2181 max-width: 760px; 2174 position: absolute;2175 left: 20px;2176 top: 145px;2177 2182 padding: 0 15px; 2178 margin: 0;2183 margin: 174px 0 0 10px; 2179 2184 color: #fff; 2180 2185 background: rgba( 30, 30, 30, 0.9 ); … … 2192 2197 #plugin-information-title.with-banner div.vignette { 2193 2198 display: block; 2199 float: right; 2194 2200 top: 0; 2195 height: 2 15px;2201 height: 250px; 2196 2202 width: 830px; 2197 2203 margin: 0 -20px; … … 2203 2209 #plugin-information-tabs { 2204 2210 padding: 0 16px; 2205 position: absolute; 2206 top: 56px; 2211 position: relative; 2207 2212 right: 0; 2208 2213 left: 0; 2209 2214 height: 36px; 2210 2215 z-index: 1; 2211 } 2212 2213 #plugin-information-tabs.with-banner { 2214 top: 214px; 2215 background: rgba( 255, 255, 255, 0.85 ); 2216 border-bottom: 1px solid #ddd; 2217 background: #f3f3f3; 2216 2218 } 2217 2219 … … 2233 2235 background: #fff; 2234 2236 border: 1px solid #ddd; 2235 border-bottom : none;2237 border-bottom-color: #fff; 2236 2238 padding-top: 8px; 2237 2239 color: #333; … … 2249 2251 2250 2252 #plugin-information-content { 2253 overflow: hidden; /* equal height column trick */ 2251 2254 background: #fff; 2252 border-top: 1px solid #ddd; 2253 border-bottom: 1px solid #ddd; 2254 position: absolute; 2255 top: 91px; 2255 position: relative; 2256 top: 0; 2256 2257 right: 0; 2257 bottom: 58px;2258 2258 left: 0; 2259 overflow: auto; 2260 } 2261 2262 #plugin-information-content.with-banner { 2263 border-top: none; 2264 top: 250px; 2259 min-height: 100%; 2260 min-height: calc( 100% - 346px ); 2265 2261 } 2266 2262 2267 2263 #section-holder { 2268 margin: 0; 2269 padding: 10px 26px; 2270 position: absolute; 2264 position: relative; 2271 2265 top: 0; 2272 2266 right: 250px; 2273 2267 bottom: 0; 2274 2268 left: 0; 2275 overflow: auto; 2269 margin-right: 250px; /* FYI box */ 2270 padding: 10px 26px; 2271 margin-bottom: -99930px; /* a bit less than the padding below to accommodate footer */ 2272 padding-bottom: 99999px; /* equal height column trick */ 2276 2273 } 2277 2274 … … 2282 2279 #plugin-information .fyi { 2283 2280 display: block; 2284 background: #f3f3f3; 2285 border-left: 1px solid #ddd; 2286 color: #666; 2287 padding: 16px; 2288 position: absolute; 2281 float: right; 2282 position: relative; 2289 2283 top: 0; 2290 2284 right: 0; 2291 bottom: 0; 2285 padding: 16px; 2286 margin-bottom: -99930px; /* slightly less than the padding below to accommodate footer */ 2287 padding-bottom: 99999px; /* equal height column trick */ 2292 2288 width: 217px; 2293 overflow: auto; 2289 border-left: 1px solid #ddd; 2290 background: #f3f3f3; 2291 color: #666; 2294 2292 } 2295 2293 … … 2376 2374 left: 0; 2377 2375 height: 28px; 2376 border-top: 1px solid #ddd; 2377 background: #f3f3f3; 2378 2378 } 2379 2379 … … 2388 2388 font-size: 14px; 2389 2389 line-height: 1.7; 2390 } 2391 2392 #plugin-information .section h4:first-of-type { 2393 margin-top: 1em; 2390 2394 } 2391 2395 … … 2420 2424 } 2421 2425 2422 @media screen and ( max- width: 771px ), screen and ( max-height: 500px ) {2426 @media screen and ( max-height: 500px ) { 2423 2427 #plugin-information-title.with-banner { 2424 2428 height: 100px; … … 2427 2431 2428 2432 #plugin-information-title.with-banner h2 { 2429 top: 12px;2433 margin-top: 30px; 2430 2434 font-size: 20px; 2431 2435 line-height: 40px; … … 2433 2437 2434 2438 #plugin-information-title.with-banner div.vignette { 2435 height: 65px;2436 bottom: 65px;2439 height: 100px; 2440 bottom: 100px; 2437 2441 width: 800%; 2438 }2439 2440 #plugin-information-tabs.with-banner {2441 top: 63px;2442 }2443 2444 #plugin-information-content.with-banner {2445 top: 99px;2446 2442 } 2447 2443 } … … 2449 2445 @media screen and ( max-width: 771px ) { 2450 2446 #plugin-information-tabs { 2447 overflow: hidden; /* clearfix */ 2451 2448 padding: 0; 2449 height: auto; /* let tabs wrap */ 2450 } 2451 2452 #plugin-information-tabs a.current { 2453 margin-bottom: 0; 2454 border-bottom: none; 2452 2455 } 2453 2456 2454 2457 #plugin-information .fyi { 2458 float: none; 2455 2459 border: 1px solid #ddd; 2456 2460 position: static; 2457 2461 width: auto; 2458 margin: 26px 26px 16px; 2462 margin: 26px 26px 0; 2463 padding-bottom: 0; /* reset from the two column height fix */ 2459 2464 } 2460 2465 2461 2466 #section-holder { 2462 2467 position: static; 2468 margin: 0; 2469 padding-bottom: 70px; /* reset from the two column height fix, plus accomodate footer */ 2463 2470 } 2464 2471 … … 2521 2528 body.update-core-php .tb-close-icon, 2522 2529 body.index-php .tb-close-icon { 2523 background: rgba( 255, 255, 255, .5); 2524 color: #444; 2525 line-height: 48px; 2526 width: 48px; 2527 height: 48px; 2530 right: -30px; 2531 color: #eee; 2528 2532 -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; 2529 2533 transition: color .1s ease-in-out, background .1s ease-in-out; … … 2540 2544 body.index-php .tb-close-icon:focus, 2541 2545 body.index-php .tb-close-icon:hover { 2542 background: #0074a2; 2543 color: #fff; 2546 color: #2ea2cc; 2544 2547 outline: none; 2545 2548 -webkit-box-shadow: none; … … 2552 2555 body.update-core-php .tb-close-icon:before, 2553 2556 body.index-php .tb-close-icon:before { 2554 line-height: 48px; 2557 content: "\f335"; 2558 font-size: 32px; 2559 } 2560 2561 /* move plugin install close icon to top on narrow screens */ 2562 @media screen and ( max-width: 830px ) { 2563 body.plugin-install-php .tb-close-icon, 2564 body.import-php .tb-close-icon, 2565 body.plugins-php .tb-close-icon, 2566 body.update-core-php .tb-close-icon, 2567 body.index-php .tb-close-icon { 2568 right: 0; 2569 top: -30px; 2570 } 2555 2571 } 2556 2572 -
trunk/src/wp-admin/includes/plugin-install.php
r29218 r29474 373 373 374 374 iframe_header( __( 'Plugin Install' ) ); 375 375 376 376 $_with_banner = ''; 377 377 … … 394 394 } 395 395 396 echo '<div id="plugin-information-scrollable">'; 396 397 echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>"; 397 398 echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n"; … … 514 515 echo "</div>\n"; 515 516 echo "</div>\n"; 517 echo "</div>\n"; // #plugin-information-scrollable 516 518 echo "<div id='$tab-footer'>\n"; 517 519 if ( ! empty( $api->download_link ) && ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) ) { -
trunk/src/wp-admin/js/plugin-install.js
r29201 r29474 18 18 if ( typeof document.body.style.maxWidth !== 'undefined' ) { 19 19 tbWindow.css({ 20 'top': ( ( 792 < width ) ? 30 : 10 ) + 'px',20 'top': '30px', 21 21 'margin-top': '0' 22 22 });
Note: See TracChangeset
for help on using the changeset viewer.