Changeset 57070
- Timestamp:
- 11/06/2023 03:22:41 PM (9 months ago)
- Location:
- branches/6.4
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/src/wp-content/themes/twentytwentyfour/functions.php
r57037 r57070 21 21 */ 22 22 function twentytwentyfour_block_styles() { 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 23 161 /** 24 162 * The wp_enqueue_block_style() function allows us to enqueue a stylesheet … … 38 176 ) 39 177 ); 40 41 register_block_style(42 'core/details',43 array(44 'name' => 'arrow-icon-details',45 'label' => __( 'Arrow icon', 'twentytwentyfour' ),46 /*47 * Styles for the custom Arrow icon style of the Details block48 */49 'inline_style' => '50 .is-style-arrow-icon-details {51 padding-top: var(--wp--preset--spacing--10);52 padding-bottom: var(--wp--preset--spacing--10);53 border-bottom: 1px solid var(--wp--preset--color--contrast-2, currentColor);54 }55 56 .is-style-arrow-icon-details summary {57 list-style-type: "\2193\00a0\00a0\00a0";58 }59 60 .is-style-arrow-icon-details[open]>summary {61 list-style-type: "\2192\00a0\00a0\00a0";62 }',63 )64 );65 register_block_style(66 'core/post-terms',67 array(68 'name' => 'pill',69 'label' => __( 'Pill', 'twentytwentyfour' ),70 /*71 * Styles variation for post terms72 * https://github.com/WordPress/gutenberg/issues/2495673 */74 'inline_style' => '75 .is-style-pill a,76 .is-style-pill span:not([class], [data-rich-text-placeholder]) {77 display: inline-block;78 background-color: var(--wp--preset--color--base-2);79 padding: 0.375rem 0.875rem;80 border-radius: var(--wp--preset--spacing--20);81 }82 83 .is-style-pill a:hover {84 background-color: var(--wp--preset--color--contrast-3);85 }',86 )87 );88 register_block_style(89 'core/list',90 array(91 'name' => 'checkmark-list',92 'label' => __( 'Checkmark', 'twentytwentyfour' ),93 /*94 * Styles for the custom checkmark list block style95 * https://github.com/WordPress/gutenberg/issues/5148096 */97 'inline_style' => '98 ul.is-style-checkmark-list {99 list-style-type: "\2713";100 }101 102 ul.is-style-checkmark-list li {103 padding-inline-start: 1ch;104 }',105 )106 );107 �� register_block_style(108 'core/navigation-link',109 array(110 'name' => 'arrow-link',111 'label' => __( 'With arrow', 'twentytwentyfour' ),112 /*113 * Styles for the custom arrow nav link block style114 */115 'inline_style' => '116 .is-style-arrow-link .wp-block-navigation-item__label:after {117 content: "\2197";118 padding-inline-start: 0.25rem;119 vertical-align: middle;120 text-decoration: none;121 display: inline-block;122 }',123 )124 );125 register_block_style(126 'core/heading',127 array(128 'name' => 'asterisk',129 'label' => __( 'With asterisk', 'twentytwentyfour' ),130 'inline_style' => "131 .is-style-asterisk:before {132 content: '';133 width: 1.5rem;134 height: 3rem;135 background: var(--wp--preset--color--contrast-2, currentColor);136 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');137 display: block;138 }139 140 /* Hide the asterisk if the heading has no content, to avoid using empty headings to display the asterisk only, which is an A11Y issue */141 .is-style-asterisk:empty:before {142 content: none;143 }144 145 .is-style-asterisk:-moz-only-whitespace:before {146 content: none;147 }148 149 .is-style-asterisk.has-text-align-center:before {150 margin: 0 auto;151 }152 153 .is-style-asterisk.has-text-align-right:before {154 margin-left: auto;155 }156 157 .rtl .is-style-asterisk.has-text-align-left:before {158 margin-right: auto;159 }",160 )161 );162 178 } 163 179 endif; 164 180 165 add_action( 'init', 'twentytwentyfour_block_styles ' );181 add_action( 'init', 'twentytwentyfour_block_styles' ); 166 182 167 183 /** -
branches/6.4/src/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php
r56951 r57070 30 30 <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|20"}}}} --> 31 31 <div class="wp-block-columns alignwide"> 32 <!-- wp:column {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|30","bottom":"var:preset|spacing|10"}},"border":{"top":{"color":"var:preset|color| base-3","width":"1px"}}}} -->33 <div class="wp-block-column" style="border-top-color:var(--wp--preset--color-- base-3);border-top-width:1px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--30)">32 <!-- wp:column {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|30","bottom":"var:preset|spacing|10"}},"border":{"top":{"color":"var:preset|color|-3","width":"1px"}}}} --> 33 <div class="wp-block-column" style="border-top-color:var(--wp--preset--color---3);border-top-width:1px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--30)"> 34 34 <!-- wp:heading {"textAlign":"center","level":4,"style":{"spacing":{"padding":{"top":"1px"}}},"fontSize":"medium"} --> 35 35 <h4 class="wp-block-heading has-text-align-center has-medium-font-size" style="padding-top:1px"> … … 53 53 <!-- /wp:paragraph --> 54 54 55 <!-- wp:separator {"backgroundColor":" base-3"} -->56 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />55 <!-- wp:separator {"backgroundColor":"-3"} --> 56 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" /> 57 57 <!-- /wp:separator --> 58 58 … … 63 63 <!-- /wp:paragraph --> 64 64 65 <!-- wp:separator {"backgroundColor":" base-3"} -->66 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />65 <!-- wp:separator {"backgroundColor":"-3"} --> 66 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" /> 67 67 <!-- /wp:separator --> 68 68 … … 115 115 <!-- /wp:paragraph --> 116 116 117 <!-- wp:separator {"backgroundColor":" base-3"} -->118 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />117 <!-- wp:separator {"backgroundColor":"-3"} --> 118 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" /> 119 119 <!-- /wp:separator --> 120 120 … … 123 123 <!-- /wp:paragraph --> 124 124 125 <!-- wp:separator {"backgroundColor":" base-3"} -->126 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />125 <!-- wp:separator {"backgroundColor":"-3"} --> 126 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" /> 127 127 <!-- /wp:separator --> 128 128 … … 150 150 <!-- /wp:column --> 151 151 152 <!-- wp:column {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|30","bottom":"var:preset|spacing|10"}},"border":{"top":{"color":"var:preset|color| base-3","width":"1px"}}}} -->153 <div class="wp-block-column" style="border-top-color:var(--wp--preset--color-- base-3);border-top-width:1px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--30)">152 <!-- wp:column {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|30","bottom":"var:preset|spacing|10"}},"border":{"top":{"color":"var:preset|color|-3","width":"1px"}}}} --> 153 <div class="wp-block-column" style="border-top-color:var(--wp--preset--color---3);border-top-width:1px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--30)"> 154 154 <!-- wp:heading {"textAlign":"center","level":4,"style":{"spacing":{"padding":{"top":"1px"}}},"fontSize":"medium"} --> 155 155 <h4 class="wp-block-heading has-text-align-center has-medium-font-size" style="padding-top:1px"> … … 173 173 <!-- /wp:paragraph --> 174 174 175 <!-- wp:separator {"backgroundColor":" base-3"} -->176 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />175 <!-- wp:separator {"backgroundColor":"-3"} --> 176 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" /> 177 177 <!-- /wp:separator --> 178 178 … … 181 181 <!-- /wp:paragraph --> 182 182 183 <!-- wp:separator {"backgroundColor":" base-3"} -->184 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />183 <!-- wp:separator {"backgroundColor":"-3"} --> 184 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" /> 185 185 <!-- /wp:separator --> 186 186 -
branches/6.4/src/wp-content/themes/twentytwentyfour/patterns/hidden-sidebar.php
r56951 r57070 24 24 <!-- /wp:group --> 25 25 26 <!-- wp:separator {"backgroundColor":" base-3","className":"is-style-wide"} -->27 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide"/>26 <!-- wp:separator {"backgroundColor":"","className":"is-style-wide"} --> 27 <hr class="wp-block-separator has-text-color has-/> 28 28 <!-- /wp:separator --> 29 29 … … 38 38 <!-- /wp:group --> 39 39 40 <!-- wp:separator {"backgroundColor":" base-3","className":"is-style-wide"} -->41 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide"/>40 <!-- wp:separator {"backgroundColor":"","className":"is-style-wide"} --> 41 <hr class="wp-block-separator has-text-color has-/> 42 42 <!-- /wp:separator --> 43 43 … … 63 63 <!-- /wp:group --> 64 64 65 <!-- wp:separator {"backgroundColor":" base-3","className":"is-style-wide"} -->66 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide"/>65 <!-- wp:separator {"backgroundColor":"","className":"is-style-wide"} --> 66 <hr class="wp-block-separator has-text-color has-/> 67 67 <!-- /wp:separator --> 68 68 -
branches/6.4/src/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php
r56951 r57070 11 11 ?> 12 12 13 <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}},"dimensions":{"minHeight":"100v w"}},"backgroundColor":"accent-3","layout":{"type":"flex","orientation":"vertical","justifyContent":"center","verticalAlignment":"center"}} -->14 <div class="wp-block-group alignfull has-accent-3-background-color has-background" style="min-height:100v w;margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)">13 <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}},"dimensions":{"minHeight":"100v"}},"backgroundColor":"accent-3","layout":{"type":"flex","orientation":"vertical","justifyContent":"center","verticalAlignment":"center"}} --> 14 <div class="wp-block-group alignfull has-accent-3-background-color has-background" style="min-height:100v;margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"> 15 15 <!-- wp:group {"layout":{"type":"constrained"}} --> 16 16 <div class="wp-block-group"> -
branches/6.4/src/wp-content/themes/twentytwentyfour/patterns/text-faq.php
r57005 r57070 17 17 <!-- wp:group {"align":"wide","layout":{"type":"default"}} --> 18 18 <div class="wp-block-group alignwide"> 19 <!-- wp:separator {"backgroundColor":" contrast-2","className":"is-style-wide"} -->20 <hr class="wp-block-separator has-text-color has- contrast-2-color has-alpha-channel-opacity has-contrast-2-background-color has-background is-style-wide"/>19 <!-- wp:separator {"backgroundColor":"","className":"is-style-wide"} --> 20 <hr class="wp-block-separator has-text-color has--background-color has-background is-style-wide"/> 21 21 <!-- /wp:separator --> 22 22 23 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}} },"className":"is-style-arrow-icon-details","fontSize":"medium"} -->24 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style=" margin-top:0">23 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} --> 24 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="margin-top:0"> 25 25 <summary><?php echo esc_html_x( 'What is your process working in smaller projects?', 'Question on the details block', 'twentytwentyfour' ); ?></summary> 26 26 <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} --> … … 30 30 <!-- /wp:details --> 31 31 32 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}} },"className":"is-style-arrow-icon-details","fontSize":"medium"} -->33 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style=" margin-top:0">32 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} --> 33 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="margin-top:0"> 34 34 <summary><?php echo esc_html_x( 'Who is behind Études?', 'Question on the details block', 'twentytwentyfour' ); ?></summary> 35 35 <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} --> … … 39 39 <!-- /wp:details --> 40 40 41 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}} },"className":"is-style-arrow-icon-details","fontSize":"medium"} -->42 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style=" margin-top:0">41 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} --> 42 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="margin-top:0"> 43 43 <summary><?php echo esc_html_x( 'I\'d like to get to meet fellow architects, how can I do that?', 'Question on the details block', 'twentytwentyfour' ); ?></summary> 44 44 <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} --> … … 48 48 <!-- /wp:details --> 49 49 50 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}} },"className":"is-style-arrow-icon-details","fontSize":"medium"} -->51 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style=" margin-top:0">50 <!-- wp:details {"style":{"spacing":{"margin":{"top":"0"}}},"className":"is-style-arrow-icon-details","fontSize":"medium"} --> 51 <details class="wp-block-details is-style-arrow-icon-details has-medium-font-size" style="margin-top:0"> 52 52 <summary><?php echo esc_html_x( 'Can I apply to be a part of the team or work as a contractor?', 'Question on the details block', 'twentytwentyfour' ); ?></summary> 53 53 <!-- wp:paragraph {"placeholder":"Type / to add a hidden block","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-1"}}}},"textColor":"contrast-1"} --> -
branches/6.4/src/wp-content/themes/twentytwentyfour/readme.txt
r57005 r57070 17 17 * Released: November 7, 2023 18 18 19 https://wordpress.org/ support/article/twenty-twenty-four-changelog#Version_1.019 https://wordpress.org/#Version_1.0 20 20 21 21 == Copyright == -
branches/6.4/src/wp-content/themes/twentytwentyfour/styles/ember.json
r56951 r57070 97 97 "name": "Base / Two", 98 98 "slug": "base-2" 99 },100 {101 "color": "#FF3C0025",102 "name": "Base / Three",103 "slug": "base-3"104 99 } 105 100 ] -
branches/6.4/src/wp-content/themes/twentytwentyfour/styles/fossil.json
r56951 r57070 77 77 "name": "Base / Two", 78 78 "slug": "base-2" 79 },80 {81 "color": "#1A151425",82 "name": "Base / Three",83 "slug": "base-3"84 79 }, 85 80 { -
branches/6.4/src/wp-content/themes/twentytwentyfour/styles/ice.json
r56951 r57070 77 77 "name": "Base / Two", 78 78 "slug": "base-2" 79 },80 {81 "color": "#ecf1f4",82 "name": "Base / Three",83 "slug": "base-3"84 79 }, 85 80 { -
branches/6.4/src/wp-content/themes/twentytwentyfour/styles/maelstrom.json
r56951 r57070 15 15 "name": "Base / Two", 16 16 "slug": "base-2" 17 },18 {19 "color": "#FFFFFF25",20 "name": "Base / Three",21 "slug": "base-3"22 17 }, 23 18 { -
branches/6.4/src/wp-content/themes/twentytwentyfour/styles/mint.json
r56951 r57070 15 15 "name": "Base / Two", 16 16 "slug": "base-2" 17 },18 {19 "color": "#00000025",20 "name": "Base / Three",21 "slug": "base-3"22 17 }, 23 18 { -
branches/6.4/src/wp-content/themes/twentytwentyfour/styles/onyx.json
r56716 r57070 121 121 }, 122 122 { 123 "color": "#ffffff26",124 "name": "Base / Three",125 "slug": "base-3"126 },127 {128 123 "color": "#f9f9f9", 129 124 "name": "Contrast", -
branches/6.4/src/wp-content/themes/twentytwentyfour/templates/single.html
r56951 r57070 32 32 <!-- /wp:spacer --> 33 33 34 <!-- wp:separator {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"backgroundColor":" base-3","className":"is-style-wide"} -->35 <hr class="wp-block-separator has-text-color has- base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" style="margin-bottom:var(--wp--preset--spacing--40)"/>34 <!-- wp:separator {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"backgroundColor":"-3","className":"is-style-wide"} --> 35 <hr class="wp-block-separator has-text-color has--3-background-color has-background is-style-wide" style="margin-bottom:var(--wp--preset--spacing--40)"/> 36 36 <!-- /wp:separator --> 37 37 -
branches/6.4/src/wp-content/themes/twentytwentyfour/theme.json
r56951 r57070 113 113 }, 114 114 { 115 "color": "#00000025",116 "name": "Base / Three",117 "slug": "base-3"118 },119 {120 115 "color": "#111111", 121 116 "name": "Contrast", … … 786 781 "text": "var(--wp--preset--color--contrast)" 787 782 }, 788 "css": "a{text-decoration-thickness:0.0625em;text-underline-offset: 0.15em}",789 783 "elements": { 790 784 "button": {
Note: See TracChangeset
for help on using the changeset viewer.