Make WordPress Core

Ticket #58558: 58558.2.patch

File 58558.2.patch, 2.1 KB (added by shailu25, 3 years ago)

Patch added

  • src/wp-content/themes/twentynineteen/style-editor.css

    diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css
    index 1e0bd69390..152fa5268f 100644
    a b figcaption,  
    12761276  padding-left: calc(2 * 1rem);
    12771277}
    12781278
     1279.wp-block-separator.has-primary-background-color{
     1280  color: #0073A8;
     1281  background-color: #0073A8;
     1282}
     1283
     1284.wp-block-separator.has-secondary-background-color{
     1285  color: #005075;
     1286  background-color: #005075;
     1287}
     1288
     1289.wp-block-separator.has-dark-gray-background-color{
     1290  color: #111;
     1291  background-color: #111;
     1292}
     1293
     1294.wp-block-separator.has-light-gray-background-color {
     1295  color: #767676;
     1296  background-color: #767676;
     1297}
     1298
     1299.wp-block-separator.has-white-background-color {
     1300  color: #FFF;
     1301    background-color: #FFF;
     1302}
     1303
     1304
    12791305/* Remove duplicate rule-line when a separator
    12801306 * is followed by an H1, or H2 */
    12811307.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
  • src/wp-content/themes/twentynineteen/style-editor.scss

    diff --git a/src/wp-content/themes/twentynineteen/style-editor.scss b/src/wp-content/themes/twentynineteen/style-editor.scss
    index 8359aacacb..80f3decffd 100644
    a b figcaption,  
    653653        }
    654654}
    655655
     656.wp-block-separator {
     657
     658        &.has-primary-background-color {
     659                color: $color__link;
     660                background-color: $color__link;
     661        }
     662
     663        &.has-secondary-background-color {
     664                color: $color__border-link-hover;
     665                background-color: $color__border-link-hover;
     666        }
     667
     668        &.has-dark-gray-background-color {
     669                color: $color__text-main;
     670                background-color: $color__text-main;
     671        }
     672
     673        &.has-light-gray-background-color {
     674                color: $color__text-light;
     675                background-color: $color__text-light;
     676        }
     677
     678        &.has-white-background-color {
     679                color: #FFF;
     680                background-color: #FFF;
     681        }
     682       
     683}
     684
     685
    656686/* Remove duplicate rule-line when a separator
    657687 * is followed by an H1, or H2 */
    658688.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,