Make WordPress Core

Changeset 53819


Ignore:
Timestamp:
08/03/2022 05:10:03 PM (22 months ago)
Author:
audrasjb
Message:

Twenty Eleven: Use more specific CSS selectors for .required styles.

This changeset adds more specific CSS selectors so third-parties fields are not targeted by the related CSS rules.

Props umesh84, sabernhardt, costdev.
Fixes #56297.

Location:
trunk/src/wp-content/themes/twentyeleven
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/rtl.css

    r52152 r53819  
    445445    box-shadow: -1px 2px 2px rgba(204,204,204,0.8);
    446446}
    447 #respond .comment-form label .required {
     447#respond .comment-form-author .required,
     448#respond .comment-form-email .required,
     449#respond .comment-form-url .required,
     450#respond .comment-form-comment .required {
    448451    float: left;
    449452    margin-left: 0;
     
    546549    }
    547550    /* Use the available space in the smaller comment form */
    548     #respond .comment-form-author .required,
    549     #respond .comment-form-email .required {
    550         left: auto;
    551         right: 95%;
    552     }
    553551    #content .gallery-columns-3 .gallery-item {
    554552        padding-right: 0;
  • trunk/src/wp-content/themes/twentyeleven/style.css

    r53418 r53819  
    22412241    font-weight: bold;
    22422242}
    2243 #respond .comment-form label .required {
     2243#respond .comment-form-author .required,
     2244#respond .comment-form-email .required,
     2245#respond .comment-form-url .required,
     2246#respond .comment-form-comment .required {
    22442247    float: right;
    22452248    margin-left: 4px;
     
    26172620        width: 95%;
    26182621    }
    2619     #respond .comment-form-author .required,
    2620     #respond .comment-form-email .required {
    2621         left: 95%;
    2622     }
    26232622    #content .gallery-columns-3 .gallery-item {
    26242623        width: 31%;
Note: See TracChangeset for help on using the changeset viewer.