Changeset 52927
- Timestamp:
- 03/12/2022 10:51:52 PM (3 years ago)
- Location:
- trunk/src/wp-content/themes/twentynineteen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
r48073 r52927 547 547 548 548 // If an image does not have a left/center/right alignment, 549 // it's a direct child of .wp-block-img. If it has no other 550 // alignment added, we want to make sure the image does not 551 // extend beyond the width of the text column. 552 &:not(.alignwide):not(.alignfull) > img { 549 // it's a direct child of .wp-block-image. If it has no other 550 // alignment added, we want to make sure the image and its 551 // caption do not extend beyond the width of the text column. 552 &:not(.alignwide):not(.alignfull) > img, 553 &:not(.alignwide):not(.alignfull) > a > img, 554 &:not(.alignwide):not(.alignfull) > img + figcaption, 555 &:not(.alignwide):not(.alignfull) > a + figcaption { 553 556 @include postContentMaxWidth(); 554 557 } … … 804 807 805 808 // Ensure images do not expand beyond the column. 809 .wp-block-image:not(.alignwide):not(.alignfull) > img, 810 .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 806 811 .wp-block-image > img:not(.alignwide):not(.alignfull), 807 812 .wp-block-image > figure { -
trunk/src/wp-content/themes/twentynineteen/style-rtl.css
r52618 r52927 5848 5848 5849 5849 @media only screen and (min-width: 768px) { 5850 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { 5850 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img, 5851 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 5852 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption, 5853 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption { 5851 5854 max-width: calc(8 * (100vw / 12) - 28px); 5852 5855 } … … 5854 5857 5855 5858 @media only screen and (min-width: 1168px) { 5856 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { 5859 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img, 5860 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 5861 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption, 5862 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption { 5857 5863 max-width: calc(6 * (100vw / 12) - 28px); 5858 5864 } … … 6182 6188 6183 6189 @media only screen and (min-width: 768px) { 6190 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img, 6191 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 6184 6192 .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), 6185 6193 .entry .entry-content .wp-block-columns .wp-block-image > figure { … … 6189 6197 6190 6198 @media only screen and (min-width: 1168px) { 6199 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img, 6200 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 6191 6201 .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), 6192 6202 .entry .entry-content .wp-block-columns .wp-block-image > figure { -
trunk/src/wp-content/themes/twentynineteen/style.css
r52618 r52927 5860 5860 5861 5861 @media only screen and (min-width: 768px) { 5862 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { 5862 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img, 5863 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 5864 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption, 5865 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption { 5863 5866 max-width: calc(8 * (100vw / 12) - 28px); 5864 5867 } … … 5866 5869 5867 5870 @media only screen and (min-width: 1168px) { 5868 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { 5871 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img, 5872 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 5873 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption, 5874 .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption { 5869 5875 max-width: calc(6 * (100vw / 12) - 28px); 5870 5876 } … … 6194 6200 6195 6201 @media only screen and (min-width: 768px) { 6202 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img, 6203 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 6196 6204 .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), 6197 6205 .entry .entry-content .wp-block-columns .wp-block-image > figure { … … 6201 6209 6202 6210 @media only screen and (min-width: 1168px) { 6211 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img, 6212 .entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img, 6203 6213 .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), 6204 6214 .entry .entry-content .wp-block-columns .wp-block-image > figure {
Note: See TracChangeset
for help on using the changeset viewer.