Ticket #59934: 59934.diff
| File 59934.diff, 3.6 KB (added by , 2 years ago) |
|---|
-
src/wp-content/themes/twentytwentyfour/functions.php
21 21 */ 22 22 function twentytwentyfour_block_styles() { 23 23 24 /* 25 * Styles for the custom Arrow icon style of the Details block 26 * https://github.com/WordPress/twentytwentyfour/issues/119 27 */ 24 28 register_block_style( 25 29 'core/details', 26 30 array( 27 31 'name' => 'arrow-icon-details', 28 32 'label' => __( 'Arrow icon', 'twentytwentyfour' ), 29 /*30 * Styles for the custom Arrow icon style of the Details block31 */32 33 'inline_style' => ' 33 34 .is-style-arrow-icon-details { 34 35 padding-top: var(--wp--preset--spacing--10); … … 44 45 }', 45 46 ) 46 47 ); 48 49 /* 50 * Styles variation for post terms 51 * https://github.com/WordPress/gutenberg/issues/24956 52 */ 47 53 register_block_style( 48 54 'core/post-terms', 49 55 array( 50 56 'name' => 'pill', 51 57 'label' => __( 'Pill', 'twentytwentyfour' ), 52 /*53 * Styles variation for post terms54 * https://github.com/WordPress/gutenberg/issues/2495655 */56 58 'inline_style' => ' 57 59 .is-style-pill a, 58 60 .is-style-pill span:not([class], [data-rich-text-placeholder]) { … … 67 69 }', 68 70 ) 69 71 ); 72 73 /* 74 * Styles for the custom checkmark list block style 75 * https://github.com/WordPress/gutenberg/issues/51480 76 */ 70 77 register_block_style( 71 78 'core/list', 72 79 array( 73 80 'name' => 'checkmark-list', 74 81 'label' => __( 'Checkmark', 'twentytwentyfour' ), 75 /*76 * Styles for the custom checkmark list block style77 * https://github.com/WordPress/gutenberg/issues/5148078 */79 82 'inline_style' => ' 80 83 ul.is-style-checkmark-list { 81 84 list-style-type: "\2713"; … … 86 89 }', 87 90 ) 88 91 ); 92 93 /* 94 * Styles for the custom arrow nav link block style 95 * https://github.com/WordPress/twentytwentyfour/issues/528 96 */ 89 97 register_block_style( 90 98 'core/navigation-link', 91 99 array( 92 100 'name' => 'arrow-link', 93 101 'label' => __( 'With arrow', 'twentytwentyfour' ), 94 /*95 * Styles for the custom arrow nav link block style96 */97 102 'inline_style' => ' 98 103 .is-style-arrow-link .wp-block-navigation-item__label:after { 99 104 content: "\2197"; … … 104 109 }', 105 110 ) 106 111 ); 112 113 /* 114 * Styles for the asterisk variation of the Heading block 115 * https://github.com/WordPress/twentytwentyfour/pull/471 116 */ 107 117 register_block_style( 108 118 'core/heading', 109 119 array( 110 120 'name' => 'asterisk', 111 121 'label' => __( 'With asterisk', 'twentytwentyfour' ), 112 'inline_style' => "122 'inline_style' => ' 113 123 .is-style-asterisk:before { 114 content: '';124 content: ""; 115 125 width: 1.5rem; 116 126 height: 3rem; 117 127 background: var(--wp--preset--color--contrast-2, currentColor); 118 clip-path: path( 'M11.93.684v8.039l5.633-5.633 1.216 1.23-5.66 5.66h8.04v1.737H13.2l5.701 5.701-1.23 1.23-5.742-5.742V21h-1.737v-8.094l-5.77 5.77-1.23-1.217 5.743-5.742H.842V9.98h8.162l-5.701-5.7 1.23-1.231 5.66 5.66V.684h1.737Z');128 clip-path: path("M11.93.684v8.039l5.633-5.633 1.216 1.23-5.66 5.66h8.04v1.737H13.2l5.701 5.701-1.23 1.23-5.742-5.742V21h-1.737v-8.094l-5.77 5.77-1.23-1.217 5.743-5.742H.842V9.98h8.162l-5.701-5.7 1.23-1.231 5.66 5.66V.684h1.737Z"); 119 129 display: block; 120 130 } 121 131 … … 138 148 139 149 .rtl .is-style-asterisk.has-text-align-left:before { 140 150 margin-right: auto; 141 } ",151 }', 142 152 ) 143 153 ); 144 154 }