Changeset 44428
- Timestamp:
- 01/07/2019 04:05:48 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
r44424 r44428 506 506 //! Image 507 507 .wp-block-image { 508 max-width: 100%; 508 509 509 510 img { … … 511 512 } 512 513 513 &.alignleft, 514 &.alignright { 515 max-width: 100%; 514 .aligncenter { 515 516 @include postContentMaxWidth(); 517 518 @include media(tablet) { 519 margin: 0; 520 width: $size__site-tablet-content; 521 522 img { 523 margin: 0 auto; 524 } 525 } 526 527 @include media(desktop) { 528 width: $size__site-desktop-content; 529 530 img { 531 margin: 0 auto; 532 } 533 } 516 534 } 517 535 518 536 &.alignfull img { 519 537 width: 100vw; 538 max-width: calc( 100% + (2 * #{$size__spacing-unit})); 520 539 521 540 @include media(tablet) { 541 max-width: calc( 125% + 150px ); 522 542 margin-left: auto; 523 543 margin-right: auto; -
branches/5.0/src/wp-content/themes/twentynineteen/style-rtl.css
r44427 r44428 3983 3983 } 3984 3984 3985 .entry .entry-content .wp-block-image { 3986 max-width: 100%; 3987 } 3988 3985 3989 .entry .entry-content .wp-block-image img { 3986 3990 display: block; 3987 3991 } 3988 3992 3989 .entry .entry-content .wp-block-image.alignleft, .entry .entry-content .wp-block-image.alignright { 3990 max-width: 100%; 3993 @media only screen and (min-width: 768px) { 3994 .entry .entry-content .wp-block-image .aligncenter { 3995 max-width: calc(8 * (100vw / 12) - 28px); 3996 } 3997 } 3998 3999 @media only screen and (min-width: 1168px) { 4000 .entry .entry-content .wp-block-image .aligncenter { 4001 max-width: calc(6 * (100vw / 12) - 28px); 4002 } 4003 } 4004 4005 @media only screen and (min-width: 768px) { 4006 .entry .entry-content .wp-block-image .aligncenter { 4007 margin: 0; 4008 width: calc(8 * (100vw / 12) - 28px); 4009 } 4010 .entry .entry-content .wp-block-image .aligncenter img { 4011 margin: 0 auto; 4012 } 4013 } 4014 4015 @media only screen and (min-width: 1168px) { 4016 .entry .entry-content .wp-block-image .aligncenter { 4017 width: calc(6 * (100vw / 12) - 28px); 4018 } 4019 .entry .entry-content .wp-block-image .aligncenter img { 4020 margin: 0 auto; 4021 } 3991 4022 } 3992 4023 3993 4024 .entry .entry-content .wp-block-image.alignfull img { 3994 4025 width: 100vw; 4026 max-width: calc( 100% + (2 * 1rem)); 3995 4027 } 3996 4028 3997 4029 @media only screen and (min-width: 768px) { 3998 4030 .entry .entry-content .wp-block-image.alignfull img { 4031 max-width: calc( 125% + 150px); 3999 4032 margin-right: auto; 4000 4033 margin-left: auto; -
branches/5.0/src/wp-content/themes/twentynineteen/style.css
r44427 r44428 3995 3995 } 3996 3996 3997 .entry .entry-content .wp-block-image { 3998 max-width: 100%; 3999 } 4000 3997 4001 .entry .entry-content .wp-block-image img { 3998 4002 display: block; 3999 4003 } 4000 4004 4001 .entry .entry-content .wp-block-image.alignleft, .entry .entry-content .wp-block-image.alignright { 4002 max-width: 100%; 4005 @media only screen and (min-width: 768px) { 4006 .entry .entry-content .wp-block-image .aligncenter { 4007 max-width: calc(8 * (100vw / 12) - 28px); 4008 } 4009 } 4010 4011 @media only screen and (min-width: 1168px) { 4012 .entry .entry-content .wp-block-image .aligncenter { 4013 max-width: calc(6 * (100vw / 12) - 28px); 4014 } 4015 } 4016 4017 @media only screen and (min-width: 768px) { 4018 .entry .entry-content .wp-block-image .aligncenter { 4019 margin: 0; 4020 width: calc(8 * (100vw / 12) - 28px); 4021 } 4022 .entry .entry-content .wp-block-image .aligncenter img { 4023 margin: 0 auto; 4024 } 4025 } 4026 4027 @media only screen and (min-width: 1168px) { 4028 .entry .entry-content .wp-block-image .aligncenter { 4029 width: calc(6 * (100vw / 12) - 28px); 4030 } 4031 .entry .entry-content .wp-block-image .aligncenter img { 4032 margin: 0 auto; 4033 } 4003 4034 } 4004 4035 4005 4036 .entry .entry-content .wp-block-image.alignfull img { 4006 4037 width: 100vw; 4038 max-width: calc( 100% + (2 * 1rem)); 4007 4039 } 4008 4040 4009 4041 @media only screen and (min-width: 768px) { 4010 4042 .entry .entry-content .wp-block-image.alignfull img { 4043 max-width: calc( 125% + 150px); 4011 4044 margin-left: auto; 4012 4045 margin-right: auto;
Note: See TracChangeset
for help on using the changeset viewer.