Make WordPress Core

Ticket #59207: 59207.1.patch

File 59207.1.patch, 6.3 KB (added by sabernhardt, 4 months ago)

replaces .entry-content with :root or .wp-block-button, and reduces specificity for footer widget links

  • src/wp-content/themes/twentythirteen/css/blocks.css

     
    361361        text-decoration: none;
    362362}
    363363
    364 .entry-content .wp-block-button__link {
     364.wp-block-button .wp-block-button__link {
    365365        background-color: #e05d22;
    366366        color: #fff;
    367367}
    368368
    369 .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
     369:root .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
    370370        background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */
    371371        background:   linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */
    372372}
    373373
    374 .entry-content .wp-block-button__link:hover,
    375 .entry-content .wp-block-button__link:focus,
     374.wp-block-button .wp-block-button__link:hover,
     375.wp-block-button .wp-block-button__link:focus,
    376376.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover,
    377377.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus,
    378378.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover,
     
    394394        color: #ed6a31;
    395395}
    396396
    397 .entry-content .wp-block-button__link:not(.has-background):hover,
    398 .entry-content .wp-block-button__link:not(.has-background):hover,
    399 .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
     397.wp-block-button .wp-block-button__link:not(.has-background):hover,
     398.wp-block-button .wp-block-button__link:not(.has-background):hover,
     399:root .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
    400400        background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */
    401401        background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */
    402402}
    403403
    404 .entry-content .wp-block-button__link:active {
     404.wp-block-button .wp-block-button__link:active {
    405405        background: #d94412;
    406406}
    407407
    408 .entry-content .wp-block-button__link:not(.has-background):active {
     408.wp-block-button .wp-block-button__link:not(.has-background):active {
    409409        background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */
    410410        background:   linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */
    411411}
    412412
    413 .entry-content .wp-block-button .wp-block-button__link:active {
     413:root .wp-block-button .wp-block-button__link:active {
    414414        border: none;
    415415        border-top: 3px solid #b93207;
    416416        padding: 10px 24px 11px;
    417417}
    418418
    419 .entry-content .wp-block-button.is-style-no-shadow .wp-block-button__link {
     419:root .wp-block-button.is-style-no-shadow .wp-block-button__link {
    420420        border-bottom: none;
    421421}
    422422
     
    6046047.0 Blocks - Colors
    605605--------------------------------------------------------------*/
    606606
    607 .entry-content .has-dark-gray-color {
     607:root .has-dark-gray-color {
    608608        color: #141412;
    609609}
    610610
    611 .entry-content .has-dark-gray-background-color {
     611:root .has-dark-gray-background-color {
    612612        background-color: #141412;
    613613}
    614614
    615 .entry-content .has-red-color {
     615:root .has-red-color {
    616616        color: #bc360a;
    617617}
    618618
    619 .entry-content .has-red-background-color {
     619:root .has-red-background-color {
    620620        background-color: #bc360a;
    621621}
    622622
    623 .entry-content .has-medium-orange-color {
     623:root .has-medium-orange-color {
    624624        color: #db572f;
    625625}
    626626
    627 .entry-content .has-medium-orange-background-color {
     627:root .has-medium-orange-background-color {
    628628        background-color: #db572f;
    629629}
    630630
    631 .entry-content .has-light-orange-color {
     631:root .has-light-orange-color {
    632632        color: #ea9629;
    633633}
    634634
    635 .entry-content .has-light-orange-background-color {
     635:root .has-light-orange-background-color {
    636636        background-color: #ea9629;
    637637}
    638638
    639 .entry-content .has-yellow-color {
     639:root .has-yellow-color {
    640640        color: #fbca3c;
    641641}
    642642
    643 .entry-content .has-yellow-background-color {
     643:root .has-yellow-background-color {
    644644        background-color: #fbca3c;
    645645}
    646646
    647 .entry-content .has-white-color {
     647:root .has-white-color {
    648648        color: #fff;
    649649}
    650650
    651 .entry-content .has-white-background-color {
     651:root .has-white-background-color {
    652652        background-color: #fff;
    653653}
    654654
    655 .entry-content .has-dark-brown-color {
     655:root .has-dark-brown-color {
    656656        color: #220e10;
    657657}
    658658
    659 .entry-content .has-dark-brown-background-color {
     659:root .has-dark-brown-background-color {
    660660        background-color: #220e10;
    661661}
    662662
    663 .entry-content .has-medium-brown-color {
     663:root .has-medium-brown-color {
    664664        color: #722d19;
    665665}
    666666
    667 .entry-content .has-medium-brown-background-color {
     667:root .has-medium-brown-background-color {
    668668        background-color: #722d19;
    669669}
    670670
    671 .entry-content .has-light-brown-color {
     671:root .has-light-brown-color {
    672672        color: #eadaa6;
    673673}
    674674
    675 .entry-content .has-light-brown-background-color {
     675:root .has-light-brown-background-color {
    676676        background-color: #eadaa6;
    677677}
    678678
    679 .entry-content .has-beige-color {
     679:root .has-beige-color {
    680680        color: #e8e5ce;
    681681}
    682682
    683 .entry-content .has-beige-background-color {
     683:root .has-beige-background-color {
    684684        background-color: #e8e5ce;
    685685}
    686686
    687 .entry-content .has-off-white-color {
     687:root .has-off-white-color {
    688688        color: #f7f5e7;
    689689}
    690690
    691 .entry-content .has-off-white-background-color {
     691:root .has-off-white-background-color {
    692692        background-color: #f7f5e7;
    693693}
  • src/wp-content/themes/twentythirteen/css/editor-blocks.css

     
    264264        background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */
    265265        border: none;
    266266        border-bottom: 3px solid #b93207;
     267        border-radius: 2px;
    267268        color: #fff;
    268269        display: inline-block;
    269270        font-size: 16px;
     
    352353
    353354.is-style-outline .wp-block-button__link:not(.has-text-color) {
    354355        border-width: 2px;
    355         color: #e05d22;
     356        color: #ed6a31;
    356357}
    357358
    358359.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
  • src/wp-content/themes/twentythirteen/style.css

     
    27182718        margin-right: 0;
    27192719}
    27202720
    2721 .site-footer .widget a {
     2721.site-footer .widget :where(a) {
    27222722        color: #e6402a;
    27232723}
    27242724