Make WordPress Core

Changeset 54185


Ignore:
Timestamp:
09/15/2022 10:57:52 PM (21 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r53745 r54185  
    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
     
    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;
Note: See TracChangeset for help on using the changeset viewer.