mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Plugin details modal:
* Scroll all content, rather than the dual-pane scrolling awkwardness. * Better align the header image and title overlay with the display on WordPress.org, at least at full-width. * Move the close button outside of the modal itself, rather than overlay on top of colors we can't predict. props stephdau, tellyworth, helen. fixes #27440. Built from https://develop.svn.wordpress.org/trunk@29474 git-svn-id: http://core.svn.wordpress.org/trunk@29252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce14155edf
commit
093772f3c0
@ -2126,19 +2126,26 @@ div.action-links {
|
|||||||
|
|
||||||
/* Plugin install thickbox */
|
/* Plugin install thickbox */
|
||||||
#plugin-information {
|
#plugin-information {
|
||||||
background: #fcfcfc;
|
background: #fff;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: auto;
|
height: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#plugin-information-scrollable {
|
||||||
|
display: block;
|
||||||
|
overflow: auto;
|
||||||
|
height: 100%;
|
||||||
|
padding-bottom: 58px;
|
||||||
|
}
|
||||||
|
|
||||||
#plugin-information-title {
|
#plugin-information-title {
|
||||||
margin-left: 56px; /* avoid collisions with the close icon */
|
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
background: #f5f5f5;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 56px;
|
line-height: 56px;
|
||||||
@ -2167,15 +2174,13 @@ div.action-links {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-title.with-banner h2 {
|
#plugin-information-title.with-banner h2 {
|
||||||
|
display: inline-block;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
max-width: 760px;
|
max-width: 760px;
|
||||||
position: absolute;
|
|
||||||
right: 20px;
|
|
||||||
top: 145px;
|
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
margin: 0;
|
margin: 174px 10px 0 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: rgba( 30, 30, 30, 0.9 );
|
background: rgba( 30, 30, 30, 0.9 );
|
||||||
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
|
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
|
||||||
@ -2191,8 +2196,9 @@ div.action-links {
|
|||||||
|
|
||||||
#plugin-information-title.with-banner div.vignette {
|
#plugin-information-title.with-banner div.vignette {
|
||||||
display: block;
|
display: block;
|
||||||
|
float: left;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 215px;
|
height: 250px;
|
||||||
width: 830px;
|
width: 830px;
|
||||||
margin: 0 -20px;
|
margin: 0 -20px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@ -2202,17 +2208,13 @@ div.action-links {
|
|||||||
|
|
||||||
#plugin-information-tabs {
|
#plugin-information-tabs {
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 56px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
border-bottom: 1px solid #ddd;
|
||||||
|
background: #f3f3f3;
|
||||||
#plugin-information-tabs.with-banner {
|
|
||||||
top: 214px;
|
|
||||||
background: rgba( 255, 255, 255, 0.85 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-tabs a {
|
#plugin-information-tabs a {
|
||||||
@ -2232,7 +2234,7 @@ div.action-links {
|
|||||||
margin: 0 -1px 0;
|
margin: 0 -1px 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-bottom: none;
|
border-bottom-color: #fff;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
@ -2248,31 +2250,26 @@ div.action-links {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-content {
|
#plugin-information-content {
|
||||||
|
overflow: hidden; /* equal height column trick */
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-top: 1px solid #ddd;
|
position: relative;
|
||||||
border-bottom: 1px solid #ddd;
|
top: 0;
|
||||||
position: absolute;
|
|
||||||
top: 91px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 58px;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
overflow: auto;
|
min-height: 100%;
|
||||||
}
|
min-height: calc( 100% - 346px );
|
||||||
|
|
||||||
#plugin-information-content.with-banner {
|
|
||||||
border-top: none;
|
|
||||||
top: 250px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#section-holder {
|
#section-holder {
|
||||||
margin: 0;
|
position: relative;
|
||||||
padding: 10px 26px;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 250px;
|
left: 250px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
overflow: auto;
|
margin-left: 250px; /* FYI box */
|
||||||
|
padding: 10px 26px;
|
||||||
|
margin-bottom: -99930px; /* a bit less than the padding below to accommodate footer */
|
||||||
|
padding-bottom: 99999px; /* equal height column trick */
|
||||||
}
|
}
|
||||||
|
|
||||||
#section-holder .updated {
|
#section-holder .updated {
|
||||||
@ -2281,16 +2278,17 @@ div.action-links {
|
|||||||
|
|
||||||
#plugin-information .fyi {
|
#plugin-information .fyi {
|
||||||
display: block;
|
display: block;
|
||||||
background: #f3f3f3;
|
float: left;
|
||||||
border-right: 1px solid #ddd;
|
position: relative;
|
||||||
color: #666;
|
|
||||||
padding: 16px;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
padding: 16px;
|
||||||
|
margin-bottom: -99930px; /* slightly less than the padding below to accommodate footer */
|
||||||
|
padding-bottom: 99999px; /* equal height column trick */
|
||||||
width: 217px;
|
width: 217px;
|
||||||
overflow: auto;
|
border-right: 1px solid #ddd;
|
||||||
|
background: #f3f3f3;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi strong {
|
#plugin-information .fyi strong {
|
||||||
@ -2375,6 +2373,8 @@ div.action-links {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
background: #f3f3f3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .section ul,
|
#plugin-information .section ul,
|
||||||
@ -2389,6 +2389,10 @@ div.action-links {
|
|||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#plugin-information .section h4:first-of-type {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
#plugin-information #section-screenshots ol {
|
#plugin-information #section-screenshots ol {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -2419,47 +2423,50 @@ div.action-links {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and ( max-width: 771px ), screen and ( max-height: 500px ) {
|
@media screen and ( max-height: 500px ) {
|
||||||
#plugin-information-title.with-banner {
|
#plugin-information-title.with-banner {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
bottom: 100px;
|
bottom: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-title.with-banner h2 {
|
#plugin-information-title.with-banner h2 {
|
||||||
top: 12px;
|
margin-top: 30px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-title.with-banner div.vignette {
|
#plugin-information-title.with-banner div.vignette {
|
||||||
height: 65px;
|
height: 100px;
|
||||||
bottom: 65px;
|
bottom: 100px;
|
||||||
width: 800%;
|
width: 800%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-tabs.with-banner {
|
|
||||||
top: 63px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#plugin-information-content.with-banner {
|
|
||||||
top: 99px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and ( max-width: 771px ) {
|
@media screen and ( max-width: 771px ) {
|
||||||
#plugin-information-tabs {
|
#plugin-information-tabs {
|
||||||
|
overflow: hidden; /* clearfix */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
height: auto; /* let tabs wrap */
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information-tabs a.current {
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi {
|
#plugin-information .fyi {
|
||||||
|
float: none;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
position: static;
|
position: static;
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: 26px 26px 16px;
|
margin: 26px 26px 0;
|
||||||
|
padding-bottom: 0; /* reset from the two column height fix */
|
||||||
}
|
}
|
||||||
|
|
||||||
#section-holder {
|
#section-holder {
|
||||||
position: static;
|
position: static;
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 70px; /* reset from the two column height fix, plus accomodate footer */
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi h3,
|
#plugin-information .fyi h3,
|
||||||
@ -2520,11 +2527,8 @@ body.import-php .tb-close-icon,
|
|||||||
body.plugins-php .tb-close-icon,
|
body.plugins-php .tb-close-icon,
|
||||||
body.update-core-php .tb-close-icon,
|
body.update-core-php .tb-close-icon,
|
||||||
body.index-php .tb-close-icon {
|
body.index-php .tb-close-icon {
|
||||||
background: rgba( 255, 255, 255, .5);
|
left: -30px;
|
||||||
color: #444;
|
color: #eee;
|
||||||
line-height: 48px;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
transition: color .1s ease-in-out, background .1s ease-in-out;
|
transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
}
|
}
|
||||||
@ -2539,8 +2543,7 @@ body.update-core-php .tb-close-icon:focus,
|
|||||||
body.update-core-php .tb-close-icon:hover,
|
body.update-core-php .tb-close-icon:hover,
|
||||||
body.index-php .tb-close-icon:focus,
|
body.index-php .tb-close-icon:focus,
|
||||||
body.index-php .tb-close-icon:hover {
|
body.index-php .tb-close-icon:hover {
|
||||||
background: #0074a2;
|
color: #2ea2cc;
|
||||||
color: #fff;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -2551,7 +2554,20 @@ body.import-php .tb-close-icon:before,
|
|||||||
body.plugins-php .tb-close-icon:before,
|
body.plugins-php .tb-close-icon:before,
|
||||||
body.update-core-php .tb-close-icon:before,
|
body.update-core-php .tb-close-icon:before,
|
||||||
body.index-php .tb-close-icon:before {
|
body.index-php .tb-close-icon:before {
|
||||||
line-height: 48px;
|
content: "\f335";
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* move plugin install close icon to top on narrow screens */
|
||||||
|
@media screen and ( max-width: 830px ) {
|
||||||
|
body.plugin-install-php .tb-close-icon,
|
||||||
|
body.import-php .tb-close-icon,
|
||||||
|
body.plugins-php .tb-close-icon,
|
||||||
|
body.update-core-php .tb-close-icon,
|
||||||
|
body.index-php .tb-close-icon {
|
||||||
|
left: 0;
|
||||||
|
top: -30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @todo: move this. */
|
/* @todo: move this. */
|
||||||
|
@ -2126,19 +2126,26 @@ div.action-links {
|
|||||||
|
|
||||||
/* Plugin install thickbox */
|
/* Plugin install thickbox */
|
||||||
#plugin-information {
|
#plugin-information {
|
||||||
background: #fcfcfc;
|
background: #fff;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: auto;
|
height: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#plugin-information-scrollable {
|
||||||
|
display: block;
|
||||||
|
overflow: auto;
|
||||||
|
height: 100%;
|
||||||
|
padding-bottom: 58px;
|
||||||
|
}
|
||||||
|
|
||||||
#plugin-information-title {
|
#plugin-information-title {
|
||||||
margin-right: 56px; /* avoid collisions with the close icon */
|
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
background: #f5f5f5;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 56px;
|
line-height: 56px;
|
||||||
@ -2167,15 +2174,13 @@ div.action-links {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-title.with-banner h2 {
|
#plugin-information-title.with-banner h2 {
|
||||||
|
display: inline-block;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
max-width: 760px;
|
max-width: 760px;
|
||||||
position: absolute;
|
|
||||||
left: 20px;
|
|
||||||
top: 145px;
|
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
margin: 0;
|
margin: 174px 0 0 10px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: rgba( 30, 30, 30, 0.9 );
|
background: rgba( 30, 30, 30, 0.9 );
|
||||||
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
|
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
|
||||||
@ -2191,8 +2196,9 @@ div.action-links {
|
|||||||
|
|
||||||
#plugin-information-title.with-banner div.vignette {
|
#plugin-information-title.with-banner div.vignette {
|
||||||
display: block;
|
display: block;
|
||||||
|
float: right;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 215px;
|
height: 250px;
|
||||||
width: 830px;
|
width: 830px;
|
||||||
margin: 0 -20px;
|
margin: 0 -20px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@ -2202,17 +2208,13 @@ div.action-links {
|
|||||||
|
|
||||||
#plugin-information-tabs {
|
#plugin-information-tabs {
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 56px;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
border-bottom: 1px solid #ddd;
|
||||||
|
background: #f3f3f3;
|
||||||
#plugin-information-tabs.with-banner {
|
|
||||||
top: 214px;
|
|
||||||
background: rgba( 255, 255, 255, 0.85 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-tabs a {
|
#plugin-information-tabs a {
|
||||||
@ -2232,7 +2234,7 @@ div.action-links {
|
|||||||
margin: 0 -1px 0;
|
margin: 0 -1px 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-bottom: none;
|
border-bottom-color: #fff;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
@ -2248,31 +2250,26 @@ div.action-links {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-content {
|
#plugin-information-content {
|
||||||
|
overflow: hidden; /* equal height column trick */
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-top: 1px solid #ddd;
|
position: relative;
|
||||||
border-bottom: 1px solid #ddd;
|
top: 0;
|
||||||
position: absolute;
|
|
||||||
top: 91px;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 58px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
overflow: auto;
|
min-height: 100%;
|
||||||
}
|
min-height: calc( 100% - 346px );
|
||||||
|
|
||||||
#plugin-information-content.with-banner {
|
|
||||||
border-top: none;
|
|
||||||
top: 250px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#section-holder {
|
#section-holder {
|
||||||
margin: 0;
|
position: relative;
|
||||||
padding: 10px 26px;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 250px;
|
right: 250px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
overflow: auto;
|
margin-right: 250px; /* FYI box */
|
||||||
|
padding: 10px 26px;
|
||||||
|
margin-bottom: -99930px; /* a bit less than the padding below to accommodate footer */
|
||||||
|
padding-bottom: 99999px; /* equal height column trick */
|
||||||
}
|
}
|
||||||
|
|
||||||
#section-holder .updated {
|
#section-holder .updated {
|
||||||
@ -2281,16 +2278,17 @@ div.action-links {
|
|||||||
|
|
||||||
#plugin-information .fyi {
|
#plugin-information .fyi {
|
||||||
display: block;
|
display: block;
|
||||||
background: #f3f3f3;
|
float: right;
|
||||||
border-left: 1px solid #ddd;
|
position: relative;
|
||||||
color: #666;
|
|
||||||
padding: 16px;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
padding: 16px;
|
||||||
|
margin-bottom: -99930px; /* slightly less than the padding below to accommodate footer */
|
||||||
|
padding-bottom: 99999px; /* equal height column trick */
|
||||||
width: 217px;
|
width: 217px;
|
||||||
overflow: auto;
|
border-left: 1px solid #ddd;
|
||||||
|
background: #f3f3f3;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi strong {
|
#plugin-information .fyi strong {
|
||||||
@ -2375,6 +2373,8 @@ div.action-links {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
background: #f3f3f3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .section ul,
|
#plugin-information .section ul,
|
||||||
@ -2389,6 +2389,10 @@ div.action-links {
|
|||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#plugin-information .section h4:first-of-type {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
#plugin-information #section-screenshots ol {
|
#plugin-information #section-screenshots ol {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -2419,47 +2423,50 @@ div.action-links {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and ( max-width: 771px ), screen and ( max-height: 500px ) {
|
@media screen and ( max-height: 500px ) {
|
||||||
#plugin-information-title.with-banner {
|
#plugin-information-title.with-banner {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
bottom: 100px;
|
bottom: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-title.with-banner h2 {
|
#plugin-information-title.with-banner h2 {
|
||||||
top: 12px;
|
margin-top: 30px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-title.with-banner div.vignette {
|
#plugin-information-title.with-banner div.vignette {
|
||||||
height: 65px;
|
height: 100px;
|
||||||
bottom: 65px;
|
bottom: 100px;
|
||||||
width: 800%;
|
width: 800%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information-tabs.with-banner {
|
|
||||||
top: 63px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#plugin-information-content.with-banner {
|
|
||||||
top: 99px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and ( max-width: 771px ) {
|
@media screen and ( max-width: 771px ) {
|
||||||
#plugin-information-tabs {
|
#plugin-information-tabs {
|
||||||
|
overflow: hidden; /* clearfix */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
height: auto; /* let tabs wrap */
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information-tabs a.current {
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi {
|
#plugin-information .fyi {
|
||||||
|
float: none;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
position: static;
|
position: static;
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: 26px 26px 16px;
|
margin: 26px 26px 0;
|
||||||
|
padding-bottom: 0; /* reset from the two column height fix */
|
||||||
}
|
}
|
||||||
|
|
||||||
#section-holder {
|
#section-holder {
|
||||||
position: static;
|
position: static;
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 70px; /* reset from the two column height fix, plus accomodate footer */
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi h3,
|
#plugin-information .fyi h3,
|
||||||
@ -2520,11 +2527,8 @@ body.import-php .tb-close-icon,
|
|||||||
body.plugins-php .tb-close-icon,
|
body.plugins-php .tb-close-icon,
|
||||||
body.update-core-php .tb-close-icon,
|
body.update-core-php .tb-close-icon,
|
||||||
body.index-php .tb-close-icon {
|
body.index-php .tb-close-icon {
|
||||||
background: rgba( 255, 255, 255, .5);
|
right: -30px;
|
||||||
color: #444;
|
color: #eee;
|
||||||
line-height: 48px;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
transition: color .1s ease-in-out, background .1s ease-in-out;
|
transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
}
|
}
|
||||||
@ -2539,8 +2543,7 @@ body.update-core-php .tb-close-icon:focus,
|
|||||||
body.update-core-php .tb-close-icon:hover,
|
body.update-core-php .tb-close-icon:hover,
|
||||||
body.index-php .tb-close-icon:focus,
|
body.index-php .tb-close-icon:focus,
|
||||||
body.index-php .tb-close-icon:hover {
|
body.index-php .tb-close-icon:hover {
|
||||||
background: #0074a2;
|
color: #2ea2cc;
|
||||||
color: #fff;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -2551,7 +2554,20 @@ body.import-php .tb-close-icon:before,
|
|||||||
body.plugins-php .tb-close-icon:before,
|
body.plugins-php .tb-close-icon:before,
|
||||||
body.update-core-php .tb-close-icon:before,
|
body.update-core-php .tb-close-icon:before,
|
||||||
body.index-php .tb-close-icon:before {
|
body.index-php .tb-close-icon:before {
|
||||||
line-height: 48px;
|
content: "\f335";
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* move plugin install close icon to top on narrow screens */
|
||||||
|
@media screen and ( max-width: 830px ) {
|
||||||
|
body.plugin-install-php .tb-close-icon,
|
||||||
|
body.import-php .tb-close-icon,
|
||||||
|
body.plugins-php .tb-close-icon,
|
||||||
|
body.update-core-php .tb-close-icon,
|
||||||
|
body.index-php .tb-close-icon {
|
||||||
|
right: 0;
|
||||||
|
top: -30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @todo: move this. */
|
/* @todo: move this. */
|
||||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -372,7 +372,7 @@ function install_plugin_information() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
iframe_header( __( 'Plugin Install' ) );
|
iframe_header( __( 'Plugin Install' ) );
|
||||||
|
|
||||||
$_with_banner = '';
|
$_with_banner = '';
|
||||||
|
|
||||||
if ( ! empty( $api->banners ) && ( ! empty( $api->banners['low'] ) || ! empty( $api->banners['high'] ) ) ) {
|
if ( ! empty( $api->banners ) && ( ! empty( $api->banners['low'] ) || ! empty( $api->banners['high'] ) ) ) {
|
||||||
@ -393,6 +393,7 @@ function install_plugin_information() {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo '<div id="plugin-information-scrollable">';
|
||||||
echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>";
|
echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>";
|
||||||
echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n";
|
echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n";
|
||||||
|
|
||||||
@ -513,6 +514,7 @@ function install_plugin_information() {
|
|||||||
}
|
}
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
echo "</div>\n"; // #plugin-information-scrollable
|
||||||
echo "<div id='$tab-footer'>\n";
|
echo "<div id='$tab-footer'>\n";
|
||||||
if ( ! empty( $api->download_link ) && ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) ) {
|
if ( ! empty( $api->download_link ) && ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) ) {
|
||||||
$status = install_plugin_install_status( $api );
|
$status = install_plugin_install_status( $api );
|
||||||
|
@ -17,7 +17,7 @@ jQuery( document ).ready( function( $ ) {
|
|||||||
});
|
});
|
||||||
if ( typeof document.body.style.maxWidth !== 'undefined' ) {
|
if ( typeof document.body.style.maxWidth !== 'undefined' ) {
|
||||||
tbWindow.css({
|
tbWindow.css({
|
||||||
'top': ( ( 792 < width ) ? 30 : 10 ) + 'px',
|
'top': '30px',
|
||||||
'margin-top': '0'
|
'margin-top': '0'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
2
wp-admin/js/plugin-install.min.js
vendored
2
wp-admin/js/plugin-install.min.js
vendored
@ -1 +1 @@
|
|||||||
var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height()-(c>792?60:20),e=c>792?772:c-20;return b.size()&&(b.width(e).height(d),a("#TB_iframeContent").width(e).height(d),b.css({"margin-left":"-"+parseInt(e/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:(c>792?30:10)+"px","margin-top":"0"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+e+"&height="+d))})},a(window).resize(function(){tb_position()}),a(".plugin-card").on("click","a.thickbox",function(){return tb_click.call(this),a("#TB_title").css({"background-color":"#222",color:"#cfcfcf"}),a("#TB_ajaxWindowTitle").html("<strong>"+plugininstallL10n.plugin_information+"</strong> "+a(this).data("title")),!1}),a("#plugin-information-tabs a").click(function(b){var c=a(this).attr("name");b.preventDefault(),a("#plugin-information-tabs a.current").removeClass("current"),a(this).addClass("current"),"description"!==c&&a(window).width()<772?a("#plugin-information-content").find(".fyi").hide():a("#plugin-information-content").find(".fyi").show(),a("#section-holder div.section").hide(),a("#section-"+c).show()}),a("a.install-now").click(function(){return confirm(plugininstallL10n.ays)})});
|
var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height()-(c>792?60:20),e=c>792?772:c-20;return b.size()&&(b.width(e).height(d),a("#TB_iframeContent").width(e).height(d),b.css({"margin-left":"-"+parseInt(e/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:"30px","margin-top":"0"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+e+"&height="+d))})},a(window).resize(function(){tb_position()}),a(".plugin-card").on("click","a.thickbox",function(){return tb_click.call(this),a("#TB_title").css({"background-color":"#222",color:"#cfcfcf"}),a("#TB_ajaxWindowTitle").html("<strong>"+plugininstallL10n.plugin_information+"</strong> "+a(this).data("title")),!1}),a("#plugin-information-tabs a").click(function(b){var c=a(this).attr("name");b.preventDefault(),a("#plugin-information-tabs a.current").removeClass("current"),a(this).addClass("current"),"description"!==c&&a(window).width()<772?a("#plugin-information-content").find(".fyi").hide():a("#plugin-information-content").find(".fyi").show(),a("#section-holder div.section").hide(),a("#section-"+c).show()}),a("a.install-now").click(function(){return confirm(plugininstallL10n.ays)})});
|
Loading…
Reference in New Issue
Block a user