diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 19ff006d4d..9987f75249 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -864,11 +864,58 @@ table.form-table td .updated p { margin: 25px; } -.request-filesystem-credentials-dialog-content input[type="text"], -.request-filesystem-credentials-dialog-content input[type="password"] { - width: 85%; +.request-filesystem-credentials-form input[type="text"], +.request-filesystem-credentials-form input[type="password"] { + display: block; } +.request-filesystem-credentials-dialog input[type="text"], +.request-filesystem-credentials-dialog input[type="password"] { + width: 100%; +} + +.request-filesystem-credentials-form .field-title { + font-weight: 600; +} + +.request-filesystem-credentials-dialog label[for="hostname"], +.request-filesystem-credentials-dialog label[for="public_key"], +.request-filesystem-credentials-dialog label[for="private_key"] { + display: block; + margin-bottom: 1em; +} + +.request-filesystem-credentials-dialog .ftp-username, +.request-filesystem-credentials-dialog .ftp-password { + float: left; + width: 48%; +} + +.request-filesystem-credentials-dialog .ftp-password { + margin-left: 4%; +} + +.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { + text-align: right; +} + +.request-filesystem-credentials-dialog label[for="ftp"] { + margin-right: 10px; +} + +#request-filesystem-credentials-dialog .button:not(:last-child) { + margin-right: 10px; +} + +#request-filesystem-credentials-form .cancel-button { + display: none; +} + +#request-filesystem-credentials-dialog .cancel-button { + display: inline; +} + + /* =Media Queries -------------------------------------------------------------- */ @@ -1098,6 +1145,20 @@ table.form-table td .updated p { max-width: 400px; width: auto; } + +} + +@media only screen and (max-height: 480px) { + /* Request Credentials */ + .request-filesystem-credentials-dialog .notification-dialog{ + width: 100%; + height: 100%; + position: fixed; + top: 0; + margin: 0; + left: 0; + overflow-y: auto; + } } /* Smartphone */ diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 622a86961d..6470bd9cbe 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -1125,9 +1125,9 @@ jQuery(function($){ -->
-
-

-

+

+

- - - - - - - - - - - - - - - - + +
+ +
+
+ +
- - - - +

+ + + - - - - - -
" size="40" />
size="40" />
size="40" />
-
-
-
- -

size="40" /> -
size="40" /> -
+

-
- '; } -submit_button( __( 'Proceed' ), 'button', 'upgrade' ); ?> +

+ + +

-
+