Make WordPress Core


Ignore:
Timestamp:
06/21/2023 05:30:24 AM (20 months ago)
Author:
isabel_brison
Message:

Editor: update layout classnames and specificity.

Adds a compound layout classname and reduces layout spacing rule specificity.

Props ramonopoly, andrewserong, poena.
Fixes #58548.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.json

    r55405 r55956  
    220220                    "spacingStyles": [
    221221                        {
     222                            "selector": " > :first-child:first-child",
     223                            "rules": {
     224                                "margin-block-start": "0"
     225                            }
     226                        },
     227                        {
     228                            "selector": " > :last-child:last-child",
     229                            "rules": {
     230                                "margin-block-end": "0"
     231                            }
     232                        },
     233                        {
    222234                            "selector": " > *",
    223                             "rules": {
    224                                 "margin-block-start": "0",
    225                                 "margin-block-end": "0"
    226                             }
    227                         },
    228                         {
    229                             "selector": " > * + *",
    230235                            "rules": {
    231236                                "margin-block-start": null,
     
    280285                    "spacingStyles": [
    281286                        {
     287                            "selector": " > :first-child:first-child",
     288                            "rules": {
     289                                "margin-block-start": "0"
     290                            }
     291                        },
     292                        {
     293                            "selector": " > :last-child:last-child",
     294                            "rules": {
     295                                "margin-block-end": "0"
     296                            }
     297                        },
     298                        {
    282299                            "selector": " > *",
    283                             "rules": {
    284                                 "margin-block-start": "0",
    285                                 "margin-block-end": "0"
    286                             }
    287                         },
    288                         {
    289                             "selector": " > * + *",
    290300                            "rules": {
    291301                                "margin-block-start": null,
Note: See TracChangeset for help on using the changeset viewer.