From 17cefe02889304e58685e8c53cc485dccbe424bd Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 26 Nov 2014 19:50:20 +0000 Subject: [PATCH] Network Admin: Improve width of input fields on Add New Site and Edit Site screens. props honeysilvas. fixes #16383. git-svn-id: https://develop.svn.wordpress.org/trunk@30578 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/forms.css | 41 +++++++++++++++++++++++++++--- src/wp-admin/network/site-info.php | 12 +++++---- src/wp-admin/network/site-new.php | 8 +++--- 3 files changed, 49 insertions(+), 12 deletions(-) diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 59cc7c5abd..a5a19e4a22 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -775,6 +775,30 @@ table.form-table td .updated p { vertical-align: middle; } +/*------------------------------------------------------------------------------ + 21.0 - Network Admin +------------------------------------------------------------------------------*/ + +.form-field #site-address { + max-width: 25em; +} + +.form-field #domain { + max-width: 22em; +} + +.form-field #site-title, +.form-field #admin-email, +.form-field #path, +.form-field #blog_registered, +.form-field #blog_last_updated { + max-width: 25em; +} + +.form-field #path { + margin-bottom: 5px; +} + /* =Media Queries -------------------------------------------------------------- */ @@ -784,8 +808,11 @@ table.form-table td .updated p { -webkit-appearance: none; } - input[type=text], input[type="search"], - input[type=password], input[type="number"] { + input[type="text"], + input[type="email"], + input[type="search"], + input[type="password"], + input[type="number"] { -webkit-appearance: none; padding: 6px 10px; } @@ -874,6 +901,7 @@ table.form-table td .updated p { } .form-table td input[type="text"], + .form-table td input[type="email"], .form-table td input[type="password"], .form-table td select, .form-table td textarea, @@ -976,10 +1004,17 @@ table.form-table td .updated p { padding: 0; line-height: 2; } + + .form-field #domain { + max-width: none; + } } @media only screen and (max-width: 768px) { - .form-field input, + .form-field input[type="text"], + .form-field input[type="email"], + .form-field input[type="password"], + .form-field select, .form-field textarea { width: 99%; } diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php index 2fb9fefedc..0e18020c88 100644 --- a/src/wp-admin/network/site-info.php +++ b/src/wp-admin/network/site-info.php @@ -126,7 +126,7 @@ if ( ! empty( $messages ) ) { domain ) ?> - + @@ -137,19 +137,21 @@ if ( ! empty( $messages ) ) { } else { switch_to_blog( $id ); ?> - -
/> siteurl and home as well.' ); ?> + +
+ + - + - + __( 'Public' ) ); diff --git a/src/wp-admin/network/site-new.php b/src/wp-admin/network/site-new.php index 1a0e6c4450..1c3f6f34a7 100644 --- a/src/wp-admin/network/site-new.php +++ b/src/wp-admin/network/site-new.php @@ -130,9 +130,9 @@ if ( ! empty( $messages ) ) { - .domain ); ?> + .domain ); ?> domain . $current_site->path ?> + echo $current_site->domain . $current_site->path ?> ' . __( 'Only lowercase letters (a-z) and numbers are allowed.' ) . '

'; ?> @@ -140,11 +140,11 @@ if ( ! empty( $messages ) ) { - + - +