From d4c62394e1c5eb98ef862d91bbc9dee4940653ce Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 15 Sep 2022 22:57:52 +0000 Subject: [PATCH] Code Modernization: Reduce CSS float usage in wp-admin - Timezone settings. This changeset is a part of a task dedicated to improve wp-admin CSS code with less floating, as float never was intended for layout. The idea is to gradually replace floating methods that take the HTML element out of the normal flow of the document with more modern and robust positioning methods. Props kebbet. See #55557. git-svn-id: https://develop.svn.wordpress.org/trunk@54185 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/forms.css | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index ff8de1c4f9..9066f58398 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -776,6 +776,12 @@ ul#add-to-blog-users { .form-table p.timezone-info { margin: 1em 0; + display: flex; + flex-direction: column; +} + +#local-time { + margin-top: 0.5em; } .form-table td fieldset label { @@ -1636,13 +1642,6 @@ table.form-table td .updated p { display: block; } - #utc-time, - #local-time { - display: block; - float: none; - margin-top: 0.5em; - } - .form-field #domain { max-width: none; }