Make WordPress Core


Ignore:
Timestamp:
01/07/2019 04:05:48 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Push right-aligned image block outside of text column.

Update right-aligned image block styles to push them outside of the text column on the front end, to match the original design and how the block looks in the editor.

Props kjellr, joen, allancole.
Merges [44371] to the 5.0 branch.
Fixes #45716.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-content/themes/twentynineteen/style-rtl.css

    r44427 r44428  
    39833983}
    39843984
     3985.entry .entry-content .wp-block-image {
     3986  max-width: 100%;
     3987}
     3988
    39853989.entry .entry-content .wp-block-image img {
    39863990  display: block;
    39873991}
    39883992
    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  }
    39914022}
    39924023
    39934024.entry .entry-content .wp-block-image.alignfull img {
    39944025  width: 100vw;
     4026  max-width: calc( 100% + (2 * 1rem));
    39954027}
    39964028
    39974029@media only screen and (min-width: 768px) {
    39984030  .entry .entry-content .wp-block-image.alignfull img {
     4031    max-width: calc( 125% + 150px);
    39994032    margin-right: auto;
    40004033    margin-left: auto;
Note: See TracChangeset for help on using the changeset viewer.