WordPress.org

Make WordPress Core

Ticket #47569: 47569.4.diff

File 47569.4.diff, 2.9 KB (added by audrasjb, 4 months ago)

Administration: Remove unnecessary !important CSS rules from common.css

  • src/js/_enqueues/admin/postbox.js

    diff --git a/src/js/_enqueues/admin/postbox.js b/src/js/_enqueues/admin/postbox.js
    index 0a3d06d5b2..452e95b26c 100644
    a b  
    209209                                $handleButtons = $( '.postbox .handlediv' );
    210210
    211211                        $.extend( this, args || {} );
    212                         $('#wpbody-content').css('overflow','hidden');
    213212                        $('.meta-box-sortables').sortable({
    214213                                placeholder: 'sortable-placeholder',
    215214                                connectWith: '.meta-box-sortables',
  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index fbf69fe767..6b878903bd 100644
    a b  
    2626        padding-bottom: 65px;
    2727        float: left;
    2828        width: 100%;
    29         overflow: visible !important;
     29        overflow: visible;
    3030}
    3131
    3232/* inner 2 column liquid layout */
    th.action-links { 
    12761276.filters-applied .filter-group,
    12771277.filters-applied .filter-drawer .buttons,
    12781278.filters-applied .filter-drawer br {
    1279         display: none !important;
     1279        display: none;
    12801280}
    12811281
    12821282.filters-applied .filtered-by {
    form.upgrade .hint { 
    16571657
    16581658#contextual-help-wrap {
    16591659        overflow: auto;
    1660         margin-left: 0 !important;
     1660        margin-left: 0;
    16611661}
    16621662
    16631663#screen-meta-links {
    form.upgrade .hint { 
    17281728        vertical-align: bottom;
    17291729        -webkit-font-smoothing: antialiased;
    17301730        -moz-osx-font-smoothing: grayscale;
    1731         text-decoration: none !important;
     1731        text-decoration: none;
    17321732        color: #72777c;
    17331733}
    17341734
    html.wp-toolbar { 
    21042104
    21052105.postbox .inside > p:last-child,
    21062106.rss-widget ul li:last-child {
    2107         margin-bottom: 1px !important;
     2107        margin-bottom: 1px;
    21082108}
    21092109
    21102110.postbox.closed h3 {
    body.iframe { 
    24122412        margin: 10px 0;
    24132413}
    24142414
    2415 #submitdiv h3 {
    2416         margin-bottom: 0 !important;
    2417 }
    2418 
    24192415/* - Used - but could/should be deprecated with a CSS reset
    24202416------------------------------------------------------------------------------*/
    24212417.zerosize {
    img { 
    30223018        speak: none;
    30233019        -webkit-font-smoothing: antialiased;
    30243020        -moz-osx-font-smoothing: grayscale;
    3025         text-decoration: none !important;
     3021        text-decoration: none;
    30263022}
    30273023
    30283024.js .widgets-holder-wrap.closed .toggle-indicator:before,
    img { 
    33473343        display: block;
    33483344        -webkit-font-smoothing: antialiased;
    33493345        -moz-osx-font-smoothing: grayscale;
    3350         text-decoration: none !important;
     3346        text-decoration: none;
    33513347}
    33523348
    33533349.widget-top .widget-action .toggle-indicator:before {
    img { 
    36713667                background-image: url(../images/spinner-2x.gif);
    36723668        }
    36733669
    3674         /* @todo: evaluate - most of these were likely replaced by dashicons */
    3675         .curtime #timestamp,
    3676         #screen-meta-links a.show-settings,
    3677         .widget-top .widget-action,
    3678         .widget-top .widget-action:hover,
    3679         .sidebar-name .toggle-indicator,
    3680         .sidebar-name:hover .toggle-indicator,
    3681         .meta-box-sortables .postbox:hover .handlediv,
    3682         #bulk-titles div a,
    3683         #bulk-titles div a:hover {
    3684                 background: none !important;
    3685         }
    3686 
    36873670}
    36883671
    36893672@-ms-viewport {