Changeset 46722
- Timestamp:
- 11/12/2019 06:22:39 PM (5 years ago)
- Location:
- trunk/src/wp-content/themes/twentytwenty
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css
r46713 r46722 1061 1061 } 1062 1062 1063 .editor-styles-wrapper .wp-block-image.is-resized { 1064 margin-right: auto; 1065 margin-left: auto; 1066 } 1067 1063 1068 /* Block: Group ------------------------------ */ 1064 1069 -
trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css
r46713 r46722 1061 1061 } 1062 1062 1063 .editor-styles-wrapper .wp-block-image.is-resized { 1064 margin-left: auto; 1065 margin-right: auto; 1066 } 1067 1063 1068 /* Block: Group ------------------------------ */ 1064 1069 -
trunk/src/wp-content/themes/twentytwenty/functions.php
r46701 r46722 571 571 */ 572 572 function twentytwenty_read_more_tag( $html ) { 573 return preg_replace( '/<a(.*)>(.*)<\/a>/iU', sprintf( '< a$1><span class="faux-button">$2</span> <span class="screen-reader-text">"%1$s"</span></a>', get_the_title( get_the_ID() ) ), $html );573 return preg_replace( '/<a(.*)>(.*)<\/a>/iU', sprintf( '<div class="read-more-button-wrap"><a$1><span class="faux-button">$2</span> <span class="screen-reader-text">"%1$s"</span></a></div>', get_the_title( get_the_ID() ) ), $html ); 574 574 } 575 575 -
trunk/src/wp-content/themes/twentytwenty/style-rtl.css
r46715 r46722 1203 1203 } 1204 1204 1205 .wp-block-image.is-resized { 1206 margin-right: auto; 1207 margin-left: auto; 1208 } 1205 1209 1206 1210 /* Search Form ------------------------------- */ … … 2245 2249 /* -------------------------------------------------------------------------- */ 2246 2250 2247 body.template-full-width .entry-content { 2248 max-width: none; 2249 } 2250 2251 body.template-full-width .entry-content .alignleft { 2251 2252 body.template-full-width .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide), 2253 body.template-full-width [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { 2254 max-width: 120rem; 2255 } 2256 2257 body.template-full-width .entry-content .alignleft, 2258 body.template-full-width .entry-content .alignright { 2259 position: static; 2260 } 2261 2262 body.template-full-width .entry-content .alignleft, 2263 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .alignleft, 2264 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignleft, 2265 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignleft { 2252 2266 margin-left: 0; 2253 } 2254 2255 body.template-full-width .entry-content .alignright { 2267 position: static; 2268 } 2269 2270 body.template-full-width .entry-content > .alignleft, 2271 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft, 2272 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft, 2273 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft { 2274 margin-left: 2rem; 2275 position: static; 2276 } 2277 2278 body.template-full-width .entry-content .alignright, 2279 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .alignright, 2280 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignright, 2281 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignright { 2256 2282 margin-right: 0; 2257 } 2283 position: static; 2284 } 2285 2286 body.template-full-width .entry-content > .alignright, 2287 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright, 2288 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright, 2289 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright { 2290 margin-right: 2rem; 2291 position: static; 2292 } 2293 2258 2294 2259 2295 /* -------------------------------------------------------------------------- */ … … 3103 3139 .wp-block-pullquote.alignleft, 3104 3140 .wp-block-pullquote.alignright { 3105 max-width: 100%;3141 max-width: calc(100% - 4rem); 3106 3142 } 3107 3143 … … 3343 3379 /* Block: Widget Latest Posts ---------------- */ 3344 3380 3345 .wp-block-latest-posts.is-grid,3346 .wp-block-latest-posts.has-dates,3347 .wp-block-latest-posts.has-dates li {3348 margin-right: 0;3349 }3350 3351 3381 .wp-block-latest-posts.is-grid li { 3352 3382 border-top: 0.2rem solid #dcd7ca; … … 3390 3420 .entry-content > *:last-child { 3391 3421 margin-bottom: 0; 3422 } 3423 3424 .read-more-button-wrap { 3425 margin-top: 1em; 3426 text-align: center; 3392 3427 } 3393 3428 … … 3472 3507 } 3473 3508 3474 [class*="__inner-container"] > *:not(.alignwide):not(.alignfull) {3509 [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) { 3475 3510 margin-right: auto; 3476 3511 margin-left: auto; … … 3530 3565 } 3531 3566 3567 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft, 3568 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft, 3569 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft { 3570 margin-left: 2rem; 3571 } 3572 3573 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright, 3574 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright, 3575 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright { 3576 margin-right: 2rem; 3577 } 3578 3532 3579 /* Entry Media ------------------------------- */ 3533 3580 … … 3651 3698 /* COMMENT CONTENT */ 3652 3699 3700 .comment-content.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { 3701 width: 100%; 3702 } 3703 3653 3704 .comment-content.entry-content .alignleft { 3705 margin-left: 0; 3706 } 3707 3708 .comment-content.entry-content .alignright { 3654 3709 margin-right: 0; 3655 }3656 3657 .comment-content.entry-content .alignright {3658 margin-left: 0;3659 }3660 3661 .comment-content.entry-content > .alignwide,3662 .comment-content.entry-content > .alignfull {3663 right: auto;3664 max-width: 100%;3665 width: auto;3666 3710 } 3667 3711 … … 4365 4409 .wp-block-pullquote.alignright { 4366 4410 float: none; 4367 margin: 3rem 0;4368 }4369 4370 .wp-block-pullquote.alignleft:first-child,4371 .wp-block-pullquote.alignright:first-child {4372 margin-top: 0;4373 }4374 4375 .wp-block-pullquote.alignleft:last-child,4376 .wp-block-pullquote.alignright:last-child {4377 margin-bottom: 0;4378 4411 } 4379 4412 … … 4483 4516 /* ALIGNMENT CLASSES */ 4484 4517 4485 .entry-content > .alignleft, 4518 .entry-content > .alignleft { 4519 margin-left: 4rem; 4520 } 4521 4486 4522 .entry-content > p .alignleft, 4487 .entry-content > .wp-block-image .alignleft, 4488 [class*="wp-block"].alignwide [class*="__inner-container"] > .alignleft, 4489 [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignleft, 4490 [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignleft, 4491 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft:not(.wp-block-pullquote), 4492 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 4493 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 4523 .entry-content > .wp-block-image .alignleft { 4494 4524 margin-left: calc(( 100vw - 58rem - 8rem ) / -2); 4495 4525 } … … 4501 4531 } 4502 4532 4503 .entry-content > .alignright, 4533 .entry-content > .alignright { 4534 margin-right: 4rem; 4535 } 4536 4504 4537 .entry-content > p .alignright, 4505 .entry-content > .wp-block-image .alignright, 4506 [class*="wp-block"].alignwide [class*="__inner-container"] > .alignright, 4507 [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignright, 4508 [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignright, 4509 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright:not(.wp-block-pullquote), 4510 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 4511 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 4538 .entry-content > .wp-block-image .alignright { 4512 4539 margin-right: calc(( 100vw - 58rem - 8rem ) / -2); 4513 4540 } … … 4803 4830 height: 2.4rem; 4804 4831 width: 2.12rem; 4832 } 4833 4834 /* Template: Full Width ------------------ */ 4835 4836 body.template-full-width .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { 4837 width: calc(100% - 8rem); 4838 } 4839 4840 body.template-full-width .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 4841 padding-right: 4rem; 4842 padding-left: 4rem; 4843 } 4844 4845 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 4846 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 4847 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 4848 margin-left: 4rem; 4849 } 4850 4851 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 4852 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 4853 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 4854 margin-right: 4rem; 4805 4855 } 4806 4856 … … 5033 5083 } 5034 5084 5085 .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 5086 padding-right: 0; 5087 padding-left: 0; 5088 } 5089 5035 5090 /* BLOCK: MEDIA AND TEXT */ 5036 5091 … … 5149 5204 max-width: calc(100vw - 8rem); 5150 5205 width: calc(100vw - 8rem); 5206 } 5207 5208 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft, 5209 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft, 5210 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft { 5211 margin-left: 4rem; 5212 } 5213 5214 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright, 5215 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright, 5216 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright { 5217 margin-right: 4rem; 5151 5218 } 5152 5219 … … 5599 5666 } 5600 5667 5601 /* Template: [Template Name] ------------- */ 5668 /* Template: Full Width ------------------ */ 5669 5670 .template-full-width .wp-block-image .alignleft { 5671 margin-right: 2rem; 5672 } 5673 5674 .template-full-width .wp-block-image .alignright { 5675 margin-left: 2rem; 5676 } 5602 5677 5603 5678 /* Post: Archive ------------------------- */ … … 5635 5710 } 5636 5711 5712 /* BLOCK: IMAGE */ 5713 5714 .wp-block-image .alignleft { 5715 margin-right: 0; 5716 } 5717 5718 .wp-block-image .alignright { 5719 margin-left: 0; 5720 } 5721 5637 5722 /* BLOCK: SEPARATOR */ 5638 5723 … … 5649 5734 .entry-content > .wp-block-image .alignleft { 5650 5735 position: absolute; 5651 left: calc((100vw - 58rem) / 2 + 58rem);5652 max-width: calc((100% - 58rem) / 2 - 4rem);5736 right: calc((100vw - 58rem) / 2 + 58rem + 2rem); 5737 max-width: calc((100% - 58rem) / 2 - 6rem); 5653 5738 } 5654 5739 … … 5657 5742 [class*="wp-block"]:not(.alignwide):not(.alignfull) [class*="__inner-container"] > .wp-block-image .alignleft { 5658 5743 position: relative; 5659 left: inherit;5744 right: inherit; 5660 5745 max-width: inherit; 5661 5746 } … … 5668 5753 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 5669 5754 position: absolute; 5670 left: calc((100% - 58rem) / 2 + 58rem);5755 right: calc((100% - 58rem) / 2 + 58rem + 4rem); 5671 5756 max-width: calc((100% - 58rem) / 2 - 4rem); 5757 } 5758 5759 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignleft, 5760 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignleft, 5761 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignleft { 5762 right: calc((100% - 58rem) / 2 + 58rem); 5763 } 5764 5765 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 5766 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 5767 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 5768 margin-left: 4rem; 5672 5769 } 5673 5770 … … 5677 5774 [class*="__inner-container"] > .alignright { 5678 5775 position: absolute; 5679 right: calc((100vw - 58rem) / 2 + 58rem);5680 max-width: calc((100% - 58rem) / 2 - 4rem);5776 left: calc((100vw - 58rem) / 2 + 58rem + 2rem); 5777 max-width: calc((100% - 58rem) / 2 - 6rem); 5681 5778 } 5682 5779 … … 5685 5782 [class*="wp-block"]:not(.alignwide):not(.alignfull) [class*="__inner-container"] > .wp-block-image .alignright { 5686 5783 position: relative; 5687 right: inherit;5784 left: inherit; 5688 5785 max-width: inherit; 5689 5786 } … … 5696 5793 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 5697 5794 position: absolute; 5698 right: calc((100% - 58rem) / 2 + 58rem);5795 left: calc((100% - 58rem) / 2 + 58rem + 4rem); 5699 5796 max-width: calc((100% - 58rem) / 2 - 4rem); 5797 } 5798 5799 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignright, 5800 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignright, 5801 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignright { 5802 left: calc((100% - 58rem) / 2 + 58rem + 4rem); 5803 } 5804 5805 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 5806 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 5807 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 5808 margin-right: 4rem; 5700 5809 } 5701 5810 … … 5878 5987 } 5879 5988 5989 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignleft, 5990 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignleft, 5991 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignleft { 5992 right: calc((100% - 58rem) / 2 + 58rem - 2rem); 5993 } 5994 5995 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignright, 5996 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignright, 5997 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignright { 5998 left: calc((100% - 58rem) / 2 + 58rem + 6rem); 5999 } 6000 5880 6001 /* Comments ------------------------------ */ 5881 6002 … … 5949 6070 } 5950 6071 6072 @media ( min-width: 1240px ) { 6073 6074 6075 /* Blocks -------------------------------- */ 6076 6077 body.template-full-width .entry-content > .alignleft { 6078 margin-left: calc(( 100vw - 120rem ) / 2); 6079 } 6080 6081 body.template-full-width .entry-content > .alignright { 6082 margin-right: calc(( 100vw - 120rem ) / 2); 6083 } 6084 6085 } 6086 5951 6087 @media ( min-width: 1280px ) { 5952 6088 … … 5977 6113 .entry-content > p .alignleft, 5978 6114 .entry-content > .wp-block-image .alignleft { 6115 right: calc((100vw - 58rem) / 2 + 58rem + 4rem); 5979 6116 margin-left: -31rem; 5980 6117 } … … 5983 6120 .entry-content > p .alignright, 5984 6121 .entry-content > .wp-block-image .alignright { 6122 left: calc((100vw - 58rem) / 2 + 58rem + 4rem); 5985 6123 margin-right: -31rem; 5986 6124 } … … 5996 6134 } 5997 6135 6136 .alignleft, 6137 .alignright, 6138 .entry-content > .alignleft, 6139 .entry-content > p .alignleft, 6140 .entry-content > .wp-block-image .alignleft, 6141 .entry-content > .alignright, 6142 .entry-content > p .alignright, 6143 .entry-content > .wp-block-image .alignright, 6144 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignleft, 6145 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignleft, 6146 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft, 6147 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 6148 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 6149 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft, 6150 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignright, 6151 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignright, 6152 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright, 6153 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 6154 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 6155 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 6156 max-width: 25rem; 6157 } 6158 6159 /* Template: Full Width ------------------ */ 6160 6161 body.template-full-width .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 6162 padding-right: 0; 6163 padding-left: 0; 6164 } 6165 6166 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 6167 margin-left: 0; 6168 } 6169 6170 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 6171 margin-right: 0; 6172 } 6173 5998 6174 } 5999 6175 6000 6176 @media ( min-width: 1330px ) { 6001 6177 6178 6179 /* Entry Content ------------------------- */ 6180 6181 /* ALIGNMENT CLASSES */ 6182 6183 .alignleft, 6184 .alignright, 6185 .entry-content > .alignleft, 6186 .entry-content > p .alignleft, 6187 .entry-content > .wp-block-image .alignleft, 6188 .entry-content > .alignright, 6189 .entry-content > p .alignright, 6190 .entry-content > .wp-block-image .alignright, 6191 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignleft, 6192 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignleft, 6193 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft, 6194 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 6195 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 6196 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft, 6197 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignright, 6198 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignright, 6199 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright, 6200 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 6201 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 6202 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 6203 max-width: 29rem; 6204 } 6002 6205 6003 6206 /* Blocks -------------------------------- */ -
trunk/src/wp-content/themes/twentytwenty/style.css
r46715 r46722 1209 1209 } 1210 1210 1211 .wp-block-image.is-resized { 1212 margin-left: auto; 1213 margin-right: auto; 1214 } 1211 1215 1212 1216 /* Search Form ------------------------------- */ … … 2253 2257 /* -------------------------------------------------------------------------- */ 2254 2258 2255 body.template-full-width .entry-content { 2256 max-width: none; 2257 } 2258 2259 body.template-full-width .entry-content .alignleft { 2259 2260 body.template-full-width .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide), 2261 body.template-full-width [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { 2262 max-width: 120rem; 2263 } 2264 2265 body.template-full-width .entry-content .alignleft, 2266 body.template-full-width .entry-content .alignright { 2267 position: static; 2268 } 2269 2270 body.template-full-width .entry-content .alignleft, 2271 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .alignleft, 2272 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignleft, 2273 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignleft { 2260 2274 2261 2275 /*rtl:ignore*/ 2262 2276 margin-left: 0; 2263 } 2264 2265 body.template-full-width .entry-content .alignright { 2277 position: static; 2278 } 2279 2280 body.template-full-width .entry-content > .alignleft, 2281 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft, 2282 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft, 2283 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft { 2284 2285 /*rtl:ignore*/ 2286 margin-left: 2rem; 2287 position: static; 2288 } 2289 2290 body.template-full-width .entry-content .alignright, 2291 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .alignright, 2292 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignright, 2293 body.template-full-width [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignright { 2266 2294 2267 2295 /*rtl:ignore*/ 2268 2296 margin-right: 0; 2269 } 2297 position: static; 2298 } 2299 2300 body.template-full-width .entry-content > .alignright, 2301 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright, 2302 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright, 2303 body.template-full-width [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright { 2304 2305 /*rtl:ignore*/ 2306 margin-right: 2rem; 2307 position: static; 2308 } 2309 2270 2310 2271 2311 /* -------------------------------------------------------------------------- */ … … 3117 3157 .wp-block-pullquote.alignleft, 3118 3158 .wp-block-pullquote.alignright { 3119 max-width: 100%;3159 max-width: calc(100% - 4rem); 3120 3160 } 3121 3161 … … 3361 3401 /* Block: Widget Latest Posts ---------------- */ 3362 3402 3363 .wp-block-latest-posts.is-grid,3364 .wp-block-latest-posts.has-dates,3365 .wp-block-latest-posts.has-dates li {3366 margin-left: 0;3367 }3368 3369 3403 .wp-block-latest-posts.is-grid li { 3370 3404 border-top: 0.2rem solid #dcd7ca; … … 3408 3442 .entry-content > *:last-child { 3409 3443 margin-bottom: 0; 3444 } 3445 3446 .read-more-button-wrap { 3447 margin-top: 1em; 3448 text-align: center; 3410 3449 } 3411 3450 … … 3490 3529 } 3491 3530 3492 [class*="__inner-container"] > *:not(.alignwide):not(.alignfull) {3531 [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) { 3493 3532 margin-left: auto; 3494 3533 margin-right: auto; … … 3552 3591 } 3553 3592 3593 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft, 3594 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft, 3595 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft { 3596 3597 /*rtl:ignore*/ 3598 margin-left: 2rem; 3599 } 3600 3601 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright, 3602 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright, 3603 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright { 3604 3605 /*rtl:ignore*/ 3606 margin-right: 2rem; 3607 } 3608 3554 3609 /* Entry Media ------------------------------- */ 3555 3610 … … 3673 3728 /* COMMENT CONTENT */ 3674 3729 3730 .comment-content.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { 3731 width: 100%; 3732 } 3733 3675 3734 .comment-content.entry-content .alignleft { 3735 3736 /*rtl:ignore*/ 3676 3737 margin-left: 0; 3677 3738 } 3678 3739 3679 3740 .comment-content.entry-content .alignright { 3741 3742 /*rtl:ignore*/ 3680 3743 margin-right: 0; 3681 }3682 3683 .comment-content.entry-content > .alignwide,3684 .comment-content.entry-content > .alignfull {3685 left: auto;3686 max-width: 100%;3687 width: auto;3688 3744 } 3689 3745 … … 4387 4443 .wp-block-pullquote.alignright { 4388 4444 float: none; 4389 margin: 3rem 0;4390 }4391 4392 .wp-block-pullquote.alignleft:first-child,4393 .wp-block-pullquote.alignright:first-child {4394 margin-top: 0;4395 }4396 4397 .wp-block-pullquote.alignleft:last-child,4398 .wp-block-pullquote.alignright:last-child {4399 margin-bottom: 0;4400 4445 } 4401 4446 … … 4509 4554 /* ALIGNMENT CLASSES */ 4510 4555 4511 .entry-content > .alignleft, 4556 .entry-content > .alignleft { 4557 4558 /*rtl:ignore*/ 4559 margin-left: 4rem; 4560 } 4561 4512 4562 .entry-content > p .alignleft, 4513 .entry-content > .wp-block-image .alignleft, 4514 [class*="wp-block"].alignwide [class*="__inner-container"] > .alignleft, 4515 [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignleft, 4516 [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignleft, 4517 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft:not(.wp-block-pullquote), 4518 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 4519 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 4563 .entry-content > .wp-block-image .alignleft { 4520 4564 4521 4565 /*rtl:ignore*/ … … 4531 4575 } 4532 4576 4533 .entry-content > .alignright, 4577 .entry-content > .alignright { 4578 4579 /*rtl:ignore*/ 4580 margin-right: 4rem; 4581 } 4582 4534 4583 .entry-content > p .alignright, 4535 .entry-content > .wp-block-image .alignright, 4536 [class*="wp-block"].alignwide [class*="__inner-container"] > .alignright, 4537 [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignright, 4538 [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignright, 4539 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright:not(.wp-block-pullquote), 4540 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 4541 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 4584 .entry-content > .wp-block-image .alignright { 4542 4585 4543 4586 /*rtl:ignore*/ … … 4837 4880 height: 2.4rem; 4838 4881 width: 2.12rem; 4882 } 4883 4884 /* Template: Full Width ------------------ */ 4885 4886 body.template-full-width .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { 4887 width: calc(100% - 8rem); 4888 } 4889 4890 body.template-full-width .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 4891 padding-left: 4rem; 4892 padding-right: 4rem; 4893 } 4894 4895 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 4896 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 4897 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 4898 4899 /*rtl:ignore*/ 4900 margin-left: 4rem; 4901 } 4902 4903 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 4904 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 4905 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 4906 4907 /*rtl:ignore*/ 4908 margin-right: 4rem; 4839 4909 } 4840 4910 … … 5067 5137 } 5068 5138 5139 .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 5140 padding-left: 0; 5141 padding-right: 0; 5142 } 5143 5069 5144 /* BLOCK: MEDIA AND TEXT */ 5070 5145 … … 5187 5262 max-width: calc(100vw - 8rem); 5188 5263 width: calc(100vw - 8rem); 5264 } 5265 5266 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft, 5267 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft, 5268 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft { 5269 5270 /*rtl:ignore*/ 5271 margin-left: 4rem; 5272 } 5273 5274 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright, 5275 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright, 5276 [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright { 5277 5278 /*rtl:ignore*/ 5279 margin-right: 4rem; 5189 5280 } 5190 5281 … … 5637 5728 } 5638 5729 5639 /* Template: [Template Name] ------------- */ 5730 /* Template: Full Width ------------------ */ 5731 5732 .template-full-width .wp-block-image .alignleft { 5733 5734 /*rtl:ignore*/ 5735 margin-right: 2rem; 5736 } 5737 5738 .template-full-width .wp-block-image .alignright { 5739 5740 /*rtl:ignore*/ 5741 margin-left: 2rem; 5742 } 5640 5743 5641 5744 /* Post: Archive ------------------------- */ … … 5673 5776 } 5674 5777 5778 /* BLOCK: IMAGE */ 5779 5780 .wp-block-image .alignleft { 5781 5782 /*rtl:ignore*/ 5783 margin-right: 0; 5784 } 5785 5786 .wp-block-image .alignright { 5787 5788 /*rtl:ignore*/ 5789 margin-left: 0; 5790 } 5791 5675 5792 /* BLOCK: SEPARATOR */ 5676 5793 … … 5687 5804 .entry-content > .wp-block-image .alignleft { 5688 5805 position: absolute; 5689 right: calc((100vw - 58rem) / 2 + 58rem); 5690 max-width: calc((100% - 58rem) / 2 - 4rem); 5806 5807 /*rtl:ignore*/ 5808 right: calc((100vw - 58rem) / 2 + 58rem + 2rem); 5809 max-width: calc((100% - 58rem) / 2 - 6rem); 5691 5810 } 5692 5811 … … 5695 5814 [class*="wp-block"]:not(.alignwide):not(.alignfull) [class*="__inner-container"] > .wp-block-image .alignleft { 5696 5815 position: relative; 5816 5817 /*rtl:ignore*/ 5697 5818 right: inherit; 5698 5819 max-width: inherit; … … 5706 5827 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 5707 5828 position: absolute; 5829 5830 /*rtl:ignore*/ 5831 right: calc((100% - 58rem) / 2 + 58rem + 4rem); 5832 max-width: calc((100% - 58rem) / 2 - 4rem); 5833 } 5834 5835 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignleft, 5836 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignleft, 5837 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignleft { 5838 5839 /*rtl:ignore*/ 5708 5840 right: calc((100% - 58rem) / 2 + 58rem); 5709 max-width: calc((100% - 58rem) / 2 - 4rem); 5841 } 5842 5843 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 5844 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 5845 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 5846 5847 /*rtl:ignore*/ 5848 margin-left: 4rem; 5710 5849 } 5711 5850 … … 5715 5854 [class*="__inner-container"] > .alignright { 5716 5855 position: absolute; 5717 left: calc((100vw - 58rem) / 2 + 58rem); 5718 max-width: calc((100% - 58rem) / 2 - 4rem); 5856 5857 /*rtl:ignore*/ 5858 left: calc((100vw - 58rem) / 2 + 58rem + 2rem); 5859 max-width: calc((100% - 58rem) / 2 - 6rem); 5719 5860 } 5720 5861 … … 5723 5864 [class*="wp-block"]:not(.alignwide):not(.alignfull) [class*="__inner-container"] > .wp-block-image .alignright { 5724 5865 position: relative; 5866 5867 /*rtl:ignore*/ 5725 5868 left: inherit; 5726 5869 max-width: inherit; … … 5734 5877 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 5735 5878 position: absolute; 5736 left: calc((100% - 58rem) / 2 + 58rem); 5879 5880 /*rtl:ignore*/ 5881 left: calc((100% - 58rem) / 2 + 58rem + 4rem); 5737 5882 max-width: calc((100% - 58rem) / 2 - 4rem); 5883 } 5884 5885 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignright, 5886 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignright, 5887 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignright { 5888 5889 /*rtl:ignore*/ 5890 left: calc((100% - 58rem) / 2 + 58rem + 4rem); 5891 } 5892 5893 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 5894 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 5895 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 5896 5897 /*rtl:ignore*/ 5898 margin-right: 4rem; 5738 5899 } 5739 5900 … … 5916 6077 } 5917 6078 6079 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignleft, 6080 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignleft, 6081 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignleft { 6082 6083 /*rtl:ignore*/ 6084 right: calc((100% - 58rem) / 2 + 58rem - 2rem); 6085 } 6086 6087 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .alignright, 6088 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > p .alignright, 6089 [class*="wp-block"].alignwide.has-background [class*="__inner-container"] > .wp-block-image .alignright { 6090 6091 /*rtl:ignore*/ 6092 left: calc((100% - 58rem) / 2 + 58rem + 6rem); 6093 } 6094 5918 6095 /* Comments ------------------------------ */ 5919 6096 … … 5987 6164 } 5988 6165 6166 @media ( min-width: 1240px ) { 6167 6168 6169 /* Blocks -------------------------------- */ 6170 6171 body.template-full-width .entry-content > .alignleft { 6172 6173 /*rtl:ignore*/ 6174 margin-left: calc(( 100vw - 120rem ) / 2); 6175 } 6176 6177 body.template-full-width .entry-content > .alignright { 6178 6179 /*rtl:ignore*/ 6180 margin-right: calc(( 100vw - 120rem ) / 2); 6181 } 6182 6183 } 6184 5989 6185 @media ( min-width: 1280px ) { 5990 6186 … … 6021 6217 6022 6218 /*rtl:ignore*/ 6219 right: calc((100vw - 58rem) / 2 + 58rem + 4rem); 6220 6221 /*rtl:ignore*/ 6023 6222 margin-left: -31rem; 6024 6223 } … … 6029 6228 6030 6229 /*rtl:ignore*/ 6230 left: calc((100vw - 58rem) / 2 + 58rem + 4rem); 6231 6232 /*rtl:ignore*/ 6031 6233 margin-right: -31rem; 6032 6234 } … … 6042 6244 } 6043 6245 6246 .alignleft, 6247 .alignright, 6248 .entry-content > .alignleft, 6249 .entry-content > p .alignleft, 6250 .entry-content > .wp-block-image .alignleft, 6251 .entry-content > .alignright, 6252 .entry-content > p .alignright, 6253 .entry-content > .wp-block-image .alignright, 6254 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignleft, 6255 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignleft, 6256 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft, 6257 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 6258 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 6259 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft, 6260 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignright, 6261 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignright, 6262 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright, 6263 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 6264 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 6265 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 6266 max-width: 25rem; 6267 } 6268 6269 /* Template: Full Width ------------------ */ 6270 6271 body.template-full-width .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 6272 padding-left: 0; 6273 padding-right: 0; 6274 } 6275 6276 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft { 6277 6278 /*rtl:ignore*/ 6279 margin-left: 0; 6280 } 6281 6282 body.template-full-width [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 6283 6284 /*rtl:ignore*/ 6285 margin-right: 0; 6286 } 6287 6044 6288 } 6045 6289 6046 6290 @media ( min-width: 1330px ) { 6047 6291 6292 6293 /* Entry Content ------------------------- */ 6294 6295 /* ALIGNMENT CLASSES */ 6296 6297 .alignleft, 6298 .alignright, 6299 .entry-content > .alignleft, 6300 .entry-content > p .alignleft, 6301 .entry-content > .wp-block-image .alignleft, 6302 .entry-content > .alignright, 6303 .entry-content > p .alignright, 6304 .entry-content > .wp-block-image .alignright, 6305 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignleft, 6306 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignleft, 6307 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft, 6308 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft, 6309 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft, 6310 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft, 6311 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .alignright, 6312 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > p .alignright, 6313 [class*="wp-block"].alignwide:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright, 6314 [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright, 6315 [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright, 6316 [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright { 6317 max-width: 29rem; 6318 } 6048 6319 6049 6320 /* Blocks -------------------------------- */ -
trunk/src/wp-content/themes/twentytwenty/template-parts/content-cover.php
r46551 r46722 124 124 </div><!-- .cover-header --> 125 125 126 <div class="post-inner section-inner thin" id="post-inner">126 <div class="post-inner" id="post-inner"> 127 127 128 128 <div class="entry-content">
Note: See TracChangeset
for help on using the changeset viewer.