Merge pull request #958 from Automattic/fix/issue-915

Modern Business: Fix excess text side padding for the full width stac…
This commit is contained in:
Jeffrey Pearce 2019-06-20 20:19:55 +02:00 committed by GitHub
commit 66cbf27e42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View file

@ -191,6 +191,22 @@
}
}
&.alignfull {
.wp-block-media-text__content {
padding: 8% 1rem;
@include media(tablet) {
padding: 0 #{2 * $size__vertical-spacing-unit} 0 0;
}
}
&.has-media-on-the-right .wp-block-media-text__content {
@include media(tablet) {
padding: 0 0 0 #{2 * $size__vertical-spacing-unit};
}
}
}
.wp-block-media-text__content {
padding: 8%;
}

View file

@ -3584,6 +3584,22 @@ body.page .main-navigation {
}
}
.entry .entry-content .wp-block-media-text.alignfull .wp-block-media-text__content {
padding: 8% 1rem;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-media-text.alignfull .wp-block-media-text__content {
padding: 0 0 0 64px;
}
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-media-text.alignfull.has-media-on-the-right .wp-block-media-text__content {
padding: 0 64px 0 0;
}
}
.entry .entry-content .wp-block-media-text .wp-block-media-text__content {
padding: 8%;
}

View file

@ -3596,6 +3596,22 @@ body.page .main-navigation {
}
}
.entry .entry-content .wp-block-media-text.alignfull .wp-block-media-text__content {
padding: 8% 1rem;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-media-text.alignfull .wp-block-media-text__content {
padding: 0 64px 0 0;
}
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-media-text.alignfull.has-media-on-the-right .wp-block-media-text__content {
padding: 0 0 0 64px;
}
}
.entry .entry-content .wp-block-media-text .wp-block-media-text__content {
padding: 8%;
}