Skip to content

Commit d4c6239

Browse files
committed
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
1 parent 72178ec commit d4c6239

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/wp-admin/css/forms.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,12 @@ ul#add-to-blog-users {
776776

777777
.form-table p.timezone-info {
778778
margin: 1em 0;
779+
display: flex;
780+
flex-direction: column;
781+
}
782+
783+
#local-time {
784+
margin-top: 0.5em;
779785
}
780786

781787
.form-table td fieldset label {
@@ -1636,13 +1642,6 @@ table.form-table td .updated p {
16361642
display: block;
16371643
}
16381644

1639-
#utc-time,
1640-
#local-time {
1641-
display: block;
1642-
float: none;
1643-
margin-top: 0.5em;
1644-
}
1645-
16461645
.form-field #domain {
16471646
max-width: none;
16481647
}

0 commit comments

Comments
 (0)