Ticket #45716: 45716.2.patch
| File 45716.2.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 max-width: 100%; 3945 @media only screen and (min-width: 768px) { 3946 .entry .entry-content .wp-block-image .aligncenter { 3947 max-width: calc(8 * (100vw / 12) - 28px); 3948 } 3943 3949 } 3944 3950 3951 @media only screen and (min-width: 1168px) { 3952 .entry .entry-content .wp-block-image .aligncenter { 3953 max-width: calc(6 * (100vw / 12) - 28px); 3954 } 3955 } 3956 3957 @media only screen and (min-width: 768px) { 3958 .entry .entry-content .wp-block-image .aligncenter { 3959 margin: 0; 3960 width: calc(8 * (100vw / 12) - 28px); 3961 } 3962 .entry .entry-content .wp-block-image .aligncenter img { 3963 margin: 0 auto; 3964 } 3965 } 3966 3967 @media only screen and (min-width: 1168px) { 3968 .entry .entry-content .wp-block-image .aligncenter { 3969 width: calc(6 * (100vw / 12) - 28px); 3970 } 3971 .entry .entry-content .wp-block-image .aligncenter img { 3972 margin: 0 auto; 3973 } 3974 } 3975 3945 3976 .entry .entry-content .wp-block-image.alignfull img { 3946 3977 width: 100vw; 3978 max-width: calc( 100% + (2 * 1rem)); 3947 3979 } 3948 3980 3949 3981 @media only screen and (min-width: 768px) { 3950 3982 .entry .entry-content .wp-block-image.alignfull img { 3983 max-width: calc( 125% + 150px); 3951 3984 margin-right: auto; 3952 3985 margin-left: auto; 3953 3986 } -
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)