Ticket #56487: 56487-tt-border.diff
| File 56487-tt-border.diff, 7.7 KB (added by , 3 years ago) |
|---|
-
src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css
510 510 margin-top: 0.15em; 511 511 } 512 512 513 514 513 /* Block: Table ------------------------------ */ 515 514 516 515 .editor-styles-wrapper .wp-block-table { … … 522 521 width: 100%; 523 522 } 524 523 525 .editor-styles-wrapper .wp-block-table,526 .editor-styles-wrapper .wp-block-table * {527 border-color: #dcd7ca;528 }529 530 .editor-styles-wrapper .wp-block-table tr {531 border: none;532 }533 534 524 .editor-styles-wrapper .wp-block-table caption { 535 525 background: #dcd7ca; 536 526 text-align: center; -
src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css
514 514 margin-top: 0.15em; 515 515 } 516 516 517 518 517 /* Block: Table ------------------------------ */ 519 518 520 519 .editor-styles-wrapper .wp-block-table { … … 526 525 width: 100%; 527 526 } 528 527 529 .editor-styles-wrapper .wp-block-table,530 .editor-styles-wrapper .wp-block-table * {531 border-color: #dcd7ca;532 }533 534 .editor-styles-wrapper .wp-block-table tr {535 border: none;536 }537 538 528 .editor-styles-wrapper .wp-block-table caption { 539 529 background: #dcd7ca; 540 530 text-align: center; -
src/wp-content/themes/twentytwenty/functions.php
138 138 // Add theme support for selective refresh for widgets. 139 139 add_theme_support( 'customize-selective-refresh-widgets' ); 140 140 141 add_theme_support( 'appearance-tools' ); 142 141 143 /* 142 144 * Adds `async` and `defer` support for scripts registered or enqueued 143 145 * by the theme. -
src/wp-content/themes/twentytwenty/inc/custom-css.php
139 139 140 140 // Borders color. 141 141 if ( $borders && $borders !== $borders_default ) { 142 twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-code, .editor-styles-wrapper pre, .editor-styles-wrapper .wp-block-preformatted pre, .editor-styles-wrapper .wp-block-verse pre, .editor-styles-wrapper fieldset, .editor-styles-wrapper .wp-block-table , .editor-styles-wrapper .wp-block-table*, .editor-styles-wrapper .wp-block-table.is-style-stripes, .editor-styles-wrapper .wp-block-latest-posts.is-grid li', 'border-color', $borders );142 twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-code, .editor-styles-wrapper pre, .editor-styles-wrapper .wp-block-preformatted pre, .editor-styles-wrapper .wp-block-verse pre, .editor-styles-wrapper fieldset, .editor-styles-wrapper .wp-block-table table:not(.has-border-color), .editor-styles-wrapper .wp-block-table table:not(.has-border-color) *, .editor-styles-wrapper .wp-block-table.is-style-stripes, .editor-styles-wrapper .wp-block-latest-posts.is-grid li', 'border-color', $borders ); 143 143 twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-table caption, .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)', 'background-color', $borders ); 144 144 } 145 145 -
src/wp-content/themes/twentytwenty/style-rtl.css
898 898 /* Tables ------------------------------------ */ 899 899 900 900 table { 901 border: 0.1rem solid #dcd7ca; 901 border-width: 0.1rem; 902 border-style: solid; 903 border-color: #dcd7ca; 902 904 border-collapse: collapse; 903 905 border-spacing: 0; 904 906 empty-cells: show; … … 2740 2742 color: #fff; 2741 2743 } 2742 2744 2745 :root .has-accent-border-color { 2746 border-color: #cd2653; 2747 } 2748 2743 2749 :root .has-primary-color { 2744 2750 color: #000; 2745 2751 } … … 2749 2755 color: #f5efe0; 2750 2756 } 2751 2757 2758 :root .has-primary-border-color { 2759 border-color: #000; 2760 } 2761 2752 2762 :root .has-secondary-color { 2753 2763 color: #6d6d6d; 2754 2764 } … … 2758 2768 color: #fff; 2759 2769 } 2760 2770 2771 :root .has-secondary-border-color { 2772 border-color: #6d6d6d; 2773 } 2774 2761 2775 :root .has-subtle-background-color { 2762 2776 color: #dcd7ca; 2763 2777 } … … 2767 2781 color: #000; 2768 2782 } 2769 2783 2784 :root .has-subtle-background-border-color { 2785 border-color: #dcd7ca; 2786 } 2787 2770 2788 :root .has-background-color { 2771 2789 color: #f5efe0; 2772 2790 } … … 2776 2794 color: #000; 2777 2795 } 2778 2796 2797 :root .has-background-border-color { 2798 border-color: #f5efe0; 2799 } 2779 2800 2780 2801 /* Block Typography Classes ------------------ */ 2781 2802 … … 3163 3184 3164 3185 /* Block: Image ------------------------------ */ 3165 3186 3187 /* Block: Post Featured Image ---------------- */ 3188 3189 .wp-block-post-featured-image img { 3190 border-style: solid; 3191 border-color: inherit; 3192 border-width: inherit; 3193 } 3194 3166 3195 /* Block: Media And Text --------------------- */ 3167 3196 3168 3197 .wp-block-media-text .wp-block-media-text__content { … … 3340 3369 3341 3370 /* Block: Table ------------------------------ */ 3342 3371 3372 /* 3373 * Override the block library CSS because it prevents 3374 * the theme's default and generated colors from showing: 3375 */ 3376 .wp-block-table table:not(.has-border-color) td, 3377 .wp-block-table table:not(.has-border-color) th { 3378 border-color: inherit; 3379 } 3380 3343 3381 .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { 3344 3382 background: #dcd7ca; 3345 3383 } -
src/wp-content/themes/twentytwenty/style.css
904 904 /* Tables ------------------------------------ */ 905 905 906 906 table { 907 border: 0.1rem solid #dcd7ca; 907 border-width: 0.1rem; 908 border-style: solid; 909 border-color: #dcd7ca; 908 910 border-collapse: collapse; 909 911 border-spacing: 0; 910 912 empty-cells: show; … … 2756 2758 color: #fff; 2757 2759 } 2758 2760 2761 :root .has-accent-border-color { 2762 border-color: #cd2653; 2763 } 2764 2759 2765 :root .has-primary-color { 2760 2766 color: #000; 2761 2767 } … … 2765 2771 color: #f5efe0; 2766 2772 } 2767 2773 2774 :root .has-primary-border-color { 2775 border-color: #000; 2776 } 2777 2768 2778 :root .has-secondary-color { 2769 2779 color: #6d6d6d; 2770 2780 } … … 2774 2784 color: #fff; 2775 2785 } 2776 2786 2787 :root .has-secondary-border-color { 2788 border-color: #6d6d6d; 2789 } 2790 2777 2791 :root .has-subtle-background-color { 2778 2792 color: #dcd7ca; 2779 2793 } … … 2783 2797 color: #000; 2784 2798 } 2785 2799 2800 :root .has-subtle-background-border-color { 2801 border-color: #dcd7ca; 2802 } 2803 2786 2804 :root .has-background-color { 2787 2805 color: #f5efe0; 2788 2806 } … … 2792 2810 color: #000; 2793 2811 } 2794 2812 2813 :root .has-background-border-color { 2814 border-color: #f5efe0; 2815 } 2795 2816 2796 2817 /* Block Typography Classes ------------------ */ 2797 2818 … … 3183 3204 3184 3205 /* Block: Image ------------------------------ */ 3185 3206 3207 /* Block: Post Featured Image ---------------- */ 3208 3209 .wp-block-post-featured-image img { 3210 border-style: solid; 3211 border-color: inherit; 3212 border-width: inherit; 3213 } 3214 3186 3215 /* Block: Media And Text --------------------- */ 3187 3216 3188 3217 .wp-block-media-text .wp-block-media-text__content { … … 3360 3389 3361 3390 /* Block: Table ------------------------------ */ 3362 3391 3392 /* 3393 * Override the block library CSS because it prevents 3394 * the theme's default and generated colors from showing: 3395 */ 3396 .wp-block-table table:not(.has-border-color) td, 3397 .wp-block-table table:not(.has-border-color) th { 3398 border-color: inherit; 3399 } 3400 3363 3401 .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { 3364 3402 background: #dcd7ca; 3365 3403 }