Make WordPress Core

Changeset 49914 for trunk


Ignore:
Timestamp:
12/31/2020 07:36:24 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Remove extra brackets from :last-child CSS pseudo-class.

Props munyagu, mukesh27, activecoder.
Fixes #52176.

Location:
trunk/src/wp-content/themes/twentytwentyone
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/css/ie.css

    r49873 r49914  
    67946794        }
    67956795
    6796         .primary-navigation > div > .menu-wrapper li:last-child() {
     6796        .primary-navigation > div > .menu-wrapper li:last-child {
    67976797                margin-right: 0;
    67986798        }
     
    70507050@media only screen and (max-width: 481px) {
    70517051
    7052         .primary-navigation .sub-menu .menu-item:last-child() {
     7052        .primary-navigation .sub-menu .menu-item:last-child {
    70537053                margin-bottom: 0;
    70547054        }
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/06-components/navigation.scss

    r49726 r49914  
    223223                                width: inherit;
    224224
    225                                 &:last-child() {
     225                                &:last-child {
    226226                                        margin-right: 0;
    227227                                }
     
    457457                        @include media(mobile-only) {
    458458
    459                                 &:last-child() {
     459                                &:last-child {
    460460                                        margin-bottom: 0;
    461461                                }
  • trunk/src/wp-content/themes/twentytwentyone/style-rtl.css

    r49873 r49914  
    48564856        }
    48574857
    4858         .primary-navigation > div > .menu-wrapper li:last-child() {
     4858        .primary-navigation > div > .menu-wrapper li:last-child {
    48594859                margin-left: 0;
    48604860        }
     
    50635063@media only screen and (max-width: 481px) {
    50645064
    5065         .primary-navigation .sub-menu .menu-item:last-child() {
     5065        .primary-navigation .sub-menu .menu-item:last-child {
    50665066                margin-bottom: 0;
    50675067        }
  • trunk/src/wp-content/themes/twentytwentyone/style.css

    r49873 r49914  
    48764876        }
    48774877
    4878         .primary-navigation > div > .menu-wrapper li:last-child() {
     4878        .primary-navigation > div > .menu-wrapper li:last-child {
    48794879                margin-right: 0;
    48804880        }
     
    50995099@media only screen and (max-width: 481px) {
    51005100
    5101         .primary-navigation .sub-menu .menu-item:last-child() {
     5101        .primary-navigation .sub-menu .menu-item:last-child {
    51025102                margin-bottom: 0;
    51035103        }
Note: See TracChangeset for help on using the changeset viewer.