Ticket #45716: 45716.patch
| File 45716.patch, 4.3 KB (added by , 8 years ago) |
|---|
-
src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
502 502 503 503 //! Image 504 504 .wp-block-image { 505 max-width: 100%; 505 506 506 507 img { 507 508 display: block; 508 509 } 509 510 510 &.alignleft, 511 &.alignright { 512 max-width: 100%; 511 .aligncenter { 512 513 @include postContentMaxWidth(); 514 515 @include media(tablet) { 516 margin: 0; 517 width: $size__site-tablet-content; 518 519 img { 520 margin: 0 auto; 521 } 522 } 523 524 @include media(desktop) { 525 width: $size__site-desktop-content; 526 527 img { 528 margin: 0 auto; 529 } 530 } 513 531 } 514 532 515 533 &.alignfull img { 516 534 width: 100vw; 535 max-width: calc( 100% + (2 * #{$size__spacing-unit})); 517 536 518 537 @include media(tablet) { 538 max-width: calc( 125% + 150px ); 519 539 margin-left: auto; 520 540 margin-right: auto; 521 541 } -
src/wp-content/themes/twentynineteen/style-rtl.css
3934 3934 } 3935 3935 } 3936 3936 3937 .entry .entry-content .wp-block-image { 3938 max-width: 100%; 3939 } 3940 3937 3941 .entry .entry-content .wp-block-image img { 3938 3942 display: block; 3939 3943 } 3940 3944 3941 .entry .entry-content .wp-block-image .alignleft, .entry .entry-content .wp-block-image.alignright{3942 ma x-width: 100%;3945 .entry .entry-content .wp-block-image .aligncenter { 3946 margin: 0; 3943 3947 } 3944 3948 3949 @media only screen and (min-width: 768px) { 3950 .entry .entry-content .wp-block-image .aligncenter { 3951 max-width: calc(8 * (100vw / 12) - 28px); 3952 } 3953 } 3954 3955 @media only screen and (min-width: 1168px) { 3956 .entry .entry-content .wp-block-image .aligncenter { 3957 max-width: calc(6 * (100vw / 12) - 28px); 3958 } 3959 } 3960 3961 @media only screen and (min-width: 768px) { 3962 .entry .entry-content .wp-block-image .aligncenter { 3963 width: calc(8 * (100vw / 12) - 28px); 3964 } 3965 .entry .entry-content .wp-block-image .aligncenter img { 3966 margin: 0 auto; 3967 } 3968 } 3969 3970 @media only screen and (min-width: 1168px) { 3971 .entry .entry-content .wp-block-image .aligncenter { 3972 width: calc(6 * (100vw / 12) - 28px); 3973 } 3974 .entry .entry-content .wp-block-image .aligncenter img { 3975 margin: 0 auto; 3976 } 3977 } 3978 3945 3979 .entry .entry-content .wp-block-image.alignfull img { 3946 3980 width: 100vw; 3981 max-width: calc( 100% + (2 * 1rem)); 3947 3982 } 3948 3983 3949 3984 @media only screen and (min-width: 768px) { 3950 3985 .entry .entry-content .wp-block-image.alignfull img { 3986 max-width: calc( 125% + 150px); 3951 3987 margin-right: auto; 3952 3988 margin-left: auto; 3953 3989 } -
src/wp-content/themes/twentynineteen/style.css
3946 3946 } 3947 3947 } 3948 3948 3949 .entry .entry-content .wp-block-image { 3950 max-width: 100%; 3951 } 3952 3949 3953 .entry .entry-content .wp-block-image img { 3950 3954 display: block; 3951 3955 } 3952 3956 3953 .entry .entry-content .wp-block-image.alignleft, .entry .entry-content .wp-block-image.alignright { 3954 max-width: 100%; 3957 @media only screen and (min-width: 768px) { 3958 .entry .entry-content .wp-block-image .aligncenter { 3959 max-width: calc(8 * (100vw / 12) - 28px); 3960 } 3955 3961 } 3956 3962 3963 @media only screen and (min-width: 1168px) { 3964 .entry .entry-content .wp-block-image .aligncenter { 3965 max-width: calc(6 * (100vw / 12) - 28px); 3966 } 3967 } 3968 3969 @media only screen and (min-width: 768px) { 3970 .entry .entry-content .wp-block-image .aligncenter { 3971 margin: 0; 3972 width: calc(8 * (100vw / 12) - 28px); 3973 } 3974 .entry .entry-content .wp-block-image .aligncenter img { 3975 margin: 0 auto; 3976 } 3977 } 3978 3979 @media only screen and (min-width: 1168px) { 3980 .entry .entry-content .wp-block-image .aligncenter { 3981 width: calc(6 * (100vw / 12) - 28px); 3982 } 3983 .entry .entry-content .wp-block-image .aligncenter img { 3984 margin: 0 auto; 3985 } 3986 } 3987 3957 3988 .entry .entry-content .wp-block-image.alignfull img { 3958 3989 width: 100vw; 3990 max-width: calc( 100% + (2 * 1rem)); 3959 3991 } 3960 3992 3961 3993 @media only screen and (min-width: 768px) { 3962 3994 .entry .entry-content .wp-block-image.alignfull img { 3995 max-width: calc( 125% + 150px); 3963 3996 margin-left: auto; 3964 3997 margin-right: auto; 3965 3998 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)