<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[48602] trunk/src/wp-content/themes/twentynineteen: Bundled Theme: Ensure parity between the block editor and the front-end in twentynineteen.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/48602">48602</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/48602","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>whyisjake</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-07-24 17:46:20 +0000 (Fri, 24 Jul 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Bundled Theme: Ensure parity between the block editor and the front-end in twentynineteen.
Alignments and blocks were not always appearing as they should in the admin.
- Wide alignments sometimes appear only as wide as the text column.
- Full and wide appear centered on the text column
- Full-width blocks sometimes do not take up the full width of the page, and other times they cause a horizontal scroll.
- Wide and full group block children take up the full width of the block by default.
Fixes <a href="https://core.trac.wordpress.org/ticket/49843">#49843</a>.
Props kjellr, Joen, poena.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentynineteenstyleeditorcss">trunk/src/wp-content/themes/twentynineteen/style-editor.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentynineteenstyleeditorscss">trunk/src/wp-content/themes/twentynineteen/style-editor.scss</a></li>
<li><a href="#trunksrcwpcontentthemestwentynineteenstylertlcss">trunk/src/wp-content/themes/twentynineteen/style-rtl.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpcontentthemestwentynineteenstyleeditorcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentynineteen/style-editor.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentynineteen/style-editor.css 2020-07-24 17:38:27 UTC (rev 48601)
+++ trunk/src/wp-content/themes/twentynineteen/style-editor.css 2020-07-24 17:46:20 UTC (rev 48602)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -550,33 +550,49 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** === Editor Frame === */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-body .wp-block[data-align="full"] {
- width: calc(100% + 28px);
- max-width: calc(100% + 28px);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+body .wp-block[data-align="full"],
+body .wp-block.alignfull {
+ width: calc(100% + 20px);
+ max-width: calc(100% + 20px);
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-@media only screen and (min-width: 600px) {
- body .wp-block[data-align="full"] {
- width: calc( 100% + 116px);
- max-width: calc( 100% + 115px);
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+body .wp-block[data-align="left"],
+body .wp-block.alignleft {
+ margin-right: 1rem;
+ width: inherit;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+body .wp-block[data-align="right"],
+body .wp-block.alignright {
+ margin-left: 1rem;
+ width: inherit;
+}
+
+body .wp-block[data-align="center"],
+body .wp-block.aligncenter {
+ margin-left: 0;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- body .editor-writing-flow {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ body .block-editor-writing-flow {
</ins><span class="cx" style="display: block; padding: 0 10px"> max-width: 80%;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0 10%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- body .editor-default-block-appender,
- body .editor-block-list__block {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ body .block-editor-default-block-appender,
+ body .block-editor-block-list__block {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-right: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- body .wp-block[data-align="wide"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ body .wp-block[data-align="wide"],
+ body .wp-block.alignwide {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- body .wp-block[data-align="right"] {
- max-width: 125%;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ body .wp-block[data-align="full"],
+ body .wp-block.alignfull {
+ width: calc( 125% + 20px);
+ max-width: calc( 125% + 20px);
+ position: relative;
+ left: -12.5%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -777,6 +793,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** === Post Title === */
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.editor-post-title__block {
+ width: 100%;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .editor-post-title__block:before {
</span><span class="cx" style="display: block; padding: 0 10px"> background: #767676;
</span><span class="cx" style="display: block; padding: 0 10px"> content: "\020";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1346,16 +1366,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** === Group Block === */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"] > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block-group > .wp-block-group__inner-container > .wp-block[data-align="full"],
+.wp-block-group > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-right: 0;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ left: 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"] > .wp-block-group.has-background {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block-group.has-background {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 22px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"] > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block-group.has-background > .wp-block-group__inner-container > .wp-block[data-align="full"],
+.wp-block-group.has-background > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: -22px;
</span><span class="cx" style="display: block; padding: 0 10px"> width: calc(100% + 44px);
</span><span class="cx" style="display: block; padding: 0 10px"> max-width: calc(100% + 44px);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1362,123 +1385,119 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="wide"] > .wp-block-group > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: calc(8 * (100vw / 12));
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 1168px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="wide"] > .wp-block-group > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: calc(6 * (100vw / 12 ));
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block[data-align="wide"] > .wp-block-group > .wp-block-group__inner-container > .wp-block[data-align="full"],
+.wp-block[data-align="wide"] > .wp-block-group > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> padding-right: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="wide"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: calc(8 * (100vw / 12) - 44px);
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 1168px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="wide"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: calc(6 * (100vw / 12 ) - 44px);
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-@media only screen and (min-width: 600px) {
- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout {
- padding-left: 46px;
- padding-right: 46px;
- }
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 80%;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-left: 10%;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-right: 10%;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding-left: 48px;
- padding-right: 48px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ padding-left: 10px;
+ padding-right: 10px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="full"]) {
- max-width: calc(100vw - (2 * 1rem));
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="full"]) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not(.alignwide):not([data-align="full"]):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px"> max-width: calc(8 * (100vw / 12));
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 1168px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="full"]) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not(.alignwide):not([data-align="full"]):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px"> max-width: calc(6 * (100vw / 12));
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block:not([data-align="full"]):not(.alignfull) {
+ padding-left: 10px;
+ padding-right: 10px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="right"] {
- max-width: 125%;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block:not([data-align="full"]):not(.alignfull) {
+ padding-left: 0;
+ padding-right: 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="wide"] {
- width: calc(100% + 4px);
- max-width: calc(100% + 4px);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block[data-align="right"] {
+ max-width: 125%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align=full] {
- max-width: calc(100vw + (2 * 1rem));
-}
-
-@media only screen and (min-width: 600px) {
- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align=full] {
- width: calc(100% + 92px);
- left: -46px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+@media only screen and (min-width: 768px) {
+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block[data-align="wide"],
+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block.alignwide {
+ width: 100%;
+ max-width: 100%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align=full] {
- left: calc(-12.5% - 58px);
- width: calc(125% + 120px);
- max-width: calc(125% + 119px);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block[data-align=full],
+ .wp-block[data-align="full"] > .wp-block-group > .wp-block-group__inner-container > .wp-block.alignfull {
+ left: calc( -12.5% - 13px);
+ width: calc( 125% + 26px);
+ max-width: calc( 125% + 25px);
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block[data-align="full"] > .wp-block-group.has-background {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 22px 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 600px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group.has-background {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> padding-right: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block[data-align="full"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block[data-align="full"],
+.wp-block[data-align="full"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 600px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block[data-align="full"],
+ .wp-block[data-align="full"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: calc(100% + 92px);
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @media only screen and (min-width: 768px) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block[data-align="full"],
+ .wp-block[data-align="full"] > .wp-block-group.has-background > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: calc(125% + 120px);
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentynineteenstyleeditorscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentynineteen/style-editor.scss</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentynineteen/style-editor.scss 2020-07-24 17:38:27 UTC (rev 48601)
+++ trunk/src/wp-content/themes/twentynineteen/style-editor.scss 2020-07-24 17:46:20 UTC (rev 48602)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,38 +11,53 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> body {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-align="full"] {
- width: calc(100% + 28px);
- max-width: calc(100% + 28px);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"],
+ .wp-block.alignfull {
+ width: calc(100% + 20px);
+ max-width: calc(100% + 20px);
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(mobile) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="left"],
+ .wp-block.alignleft, {
+ margin-right: $size__spacing-unit;
+ width: inherit;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-align="full"] {
- width: calc( 100% + 116px );
- max-width: calc( 100% + 115px );
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="right"],
+ .wp-block.alignright, {
+ margin-left: $size__spacing-unit;
+ width: inherit;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="center"],
+ .wp-block.aligncenter, {
+ margin-left: 0;
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> @include media(tablet) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .editor-writing-flow {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .block-editor-writing-flow {
</ins><span class="cx" style="display: block; padding: 0 10px"> max-width: 80%;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0 10%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .editor-default-block-appender,
- .editor-block-list__block {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .block-editor-default-block-appender,
+ .block-editor-block-list__block {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-right: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-align="wide"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="wide"],
+ .wp-block.alignwide {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .wp-block[data-align="right"] {
- max-width: 125%;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block[data-align="full"],
+ .wp-block.alignfull {
+ width: calc( 125% + 20px );
+ max-width: calc( 125% + 20px );
+ position: relative;
+ left: -12.5%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -190,6 +205,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /** === Post Title === */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .editor-post-title__block {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ width: 100%;
</ins><span class="cx" style="display: block; padding: 0 10px"> @include post-section-dash;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> &:before {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -779,151 +795,144 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // size is different here.
</span><span class="cx" style="display: block; padding: 0 10px"> $group-block-background__padding: $font__size_base;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block[data-type="core/group"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block-group {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Group block base styles
- > .wp-block-group {
-
- // Child: Full alignment
- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
- margin-left: 0;
- margin-right: 0;
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child: Full alignment
+ > .wp-block-group__inner-container > .wp-block[data-align="full"],
+ > .wp-block-group__inner-container > .wp-block.alignfull {
+ margin-left: 0;
+ margin-right: 0;
+ left: 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Group block with background color
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- > .wp-block-group.has-background {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ &.has-background {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: $group-block-background__padding;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Child: Full alignment
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ > .wp-block-group__inner-container > .wp-block[data-align="full"],
+ > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: -$group-block-background__padding;
</span><span class="cx" style="display: block; padding: 0 10px"> width: calc(100% + #{$group-block-background__padding * 2});
</span><span class="cx" style="display: block; padding: 0 10px"> max-width: calc(100% + #{$group-block-background__padding * 2});
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Wide and full alignments
- &[data-align="wide"] > .is-block-content {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// Wide and full alignments
+.wp-block[data-align="wide"] > .wp-block-group {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Group block base styles.
- > .wp-block-group {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
+ @include media(tablet) {
+ width: calc(8 * (100vw / 12));
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Child blocks: Default alignments
- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {
- @include media(tablet) {
- width: calc(8 * (100vw / 12));
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(desktop) {
+ width: calc(6 * (100vw / 12 ));
+ }
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(desktop) {
- width: calc(6 * (100vw / 12 ));
- }
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child blocks: Full alignment
+ > .wp-block-group__inner-container > .wp-block[data-align="full"],
+ > .wp-block-group__inner-container > .wp-block.alignfull {
+ padding-left: 0;
+ padding-right: 0;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Child blocks: Full alignment
- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
- padding-left: 0;
- padding-right: 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ // Group block with background color
+ &.has-background {
+
+ // Child blocks: Default alignments
+ > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
+ @include media(tablet) {
+ width: calc(8 * (100vw / 12) - #{$group-block-background__padding * 2});
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }
</del><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Group block with background color
- > .wp-block-group.has-background {
-
- // Child blocks: Default alignments
- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {
- @include media(tablet) {
- width: calc(8 * (100vw / 12) - #{$group-block-background__padding * 2});
- }
-
- @include media(desktop) {
- width: calc(6 * (100vw / 12 ) - #{$group-block-background__padding * 2});
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(desktop) {
+ width: calc(6 * (100vw / 12 ) - #{$group-block-background__padding * 2});
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Full alignment
- &[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// Full alignment
+.wp-block[data-align="full"] > .wp-block-group {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Group block base styles
- > .is-block-content > .wp-block-group {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Margins & padding are added to this container to mimic
+ // the style + spacing of the .editor-writing-flow global
+ // container. This way, child items sync up with the placement
+ // and size of other top-level blocks.
+ > .wp-block-group__inner-container {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Margins & padding are added to this container to mimic
- // the style + spacing of the .editor-writing-flow global
- // container. This way, child items sync up with the placement
- // and size of other top-level blocks.
- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 2px of extra padding are added to each side here
+ // To better match up with the spacing of the whole
+ // document.
+ @include media(tablet) {
+ width: 80%;
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 10px;
+ padding-right: 10px;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(mobile) {
- padding-left: 46px;
- padding-right: 46px;
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child blocks: Normal Alignments
+ > .wp-block:not([data-align="wide"]):not(.alignwide):not([data-align="full"]):not(.alignfull) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // 2px of extra padding are added to each side here
- // To better match up with the spacing of the whole
- // document.
</del><span class="cx" style="display: block; padding: 0 10px"> @include media(tablet) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- width: 80%;
- margin-left: 10%;
- margin-right: 10%;
- padding-left: 48px;
- padding-right: 48px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ max-width: calc(8 * (100vw / 12));
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Child blocks: All alignments except full
- > .wp-block:not([data-align="full"]) {
- max-width: calc(100vw - (2 * 1rem));
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(desktop) {
+ max-width: calc(6 * (100vw / 12));
+ }
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(tablet) {
- max-width: calc(8 * (100vw / 12));
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child blocks: Not Full Alignments
+ > .wp-block:not([data-align="full"]):not(.alignfull) {
+ padding-left: 10px;
+ padding-right: 10px;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(desktop) {
- max-width: calc(6 * (100vw / 12));
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(tablet) {
+ padding-left: 0;
+ padding-right: 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Child blocks: Right alignments
- > .wp-block[data-align="right"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child blocks: Right alignments
+ > .wp-block[data-align="right"] {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(tablet) {
- max-width: 125%;
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(tablet) {
+ max-width: 125%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Child blocks: Wide alignments
- > .wp-block[data-align="wide"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child blocks: Wide alignments
+ > .wp-block[data-align="wide"],
+ > .wp-block.alignwide {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(tablet) {
- width: calc(100% + 4px);
- max-width: calc(100% + 4px);
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(tablet) {
+ width: 100%;
+ max-width: 100%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Child blocks: Full alignments
- > .wp-block[data-align=full] {
- max-width: calc(100vw + (2 * 1rem));
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Child blocks: Full alignments
+ > .wp-block[data-align=full],
+ > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- @include media(mobile) {
- width: calc(100% + 92px);
- left: -46px;
- }
-
- @include media(tablet) {
- left: calc(-12.5% - 58px);
- width: calc(125% + 120px);
- max-width: calc(125% + 119px);
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ @include media(tablet) {
+ left: calc( -12.5% - 13px );
+ width: calc( 125% + 26px );
+ max-width: calc( 125% + 25px );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Group block with background color
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- > .is-block-content > .wp-block-group.has-background {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ &.has-background {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // When the Group block is full width, we can remove the left/right padding
- // and let this inherit the
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // When the Group block is full width, we can remove the left/right padding.
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: $group-block-background__padding 0;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @include media(mobile) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -932,7 +941,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Child blocks: Full alignment
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ > .wp-block-group__inner-container > .wp-block[data-align="full"],
+ > .wp-block-group__inner-container > .wp-block.alignfull {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -946,4 +956,3 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-}
</del></span></pre></div>
<a id="trunksrcwpcontentthemestwentynineteenstylertlcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentynineteen/style-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentynineteen/style-rtl.css 2020-07-24 17:38:27 UTC (rev 48601)
+++ trunk/src/wp-content/themes/twentynineteen/style-rtl.css 2020-07-24 17:46:20 UTC (rev 48602)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5640,7 +5640,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> @-moz-document url-prefix() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .entry .entry-content .has-drop-cap:not(:focus):first-letter {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .entry .entry-content .has-drop-cap:not(:focus)::first-letter {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-top: 0.2em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6023,25 +6023,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * is followed by an H1, or H2 */
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.entry .entry-content .wp-block-separator:not(.wp-block-separator),
-.entry .entry-content hr:not(.wp-block-separator) {
- max-width: 100%;
-}
-
-@media only screen and (min-width: 768px) {
- .entry .entry-content .wp-block-separator:not(.wp-block-separator),
- .entry .entry-content hr:not(.wp-block-separator) {
- max-width: calc(8 * (100vw / 12) - 28px);
- }
-}
-
-@media only screen and (min-width: 1168px) {
- .entry .entry-content .wp-block-separator:not(.wp-block-separator),
- .entry .entry-content hr:not(.wp-block-separator) {
- max-width: calc(6 * (100vw / 12) - 28px);
- }
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> .entry .entry-content .wp-block-separator.is-style-wide,
</span><span class="cx" style="display: block; padding: 0 10px"> .entry .entry-content hr.is-style-wide {
</span><span class="cx" style="display: block; padding: 0 10px"> max-width: 100%;
</span></span></pre>
</div>
</div>
</body>
</html>