<!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>[46701] trunk/src/wp-content/themes/twentytwenty: Bundled Themes: Update Twenty Twenty.</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/46701">46701</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/46701","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2019-11-11 12:27:21 +0000 (Mon, 11 Nov 2019)</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 Themes: Update Twenty Twenty.
This brings Twenty Twenty in sync with GitHub. For a full list of changes since 5.3 RC4, see https://github.com/WordPress/twentytwenty/compare/c267289...898792b.
Props williampatton, poena, andersnoren, desrosj, schlessera, leprincenoir, alextran, aristath, b-07.
See <a href="https://core.trac.wordpress.org/ticket/48110">#48110</a>, <a href="https://core.trac.wordpress.org/ticket/48386">#48386</a>, <a href="https://core.trac.wordpress.org/ticket/48450">#48450</a>, <a href="https://core.trac.wordpress.org/ticket/48505">#48505</a>.
Fixes <a href="https://core.trac.wordpress.org/ticket/48557">#48557</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockrtlcss">trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockcss">trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetsjscustomizecontrolsjs">trunk/src/wp-content/themes/twentytwenty/assets/js/customize-controls.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetsjsindexjs">trunk/src/wp-content/themes/twentytwenty/assets/js/index.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyclassesclasstwentytwentynonlatinlanguagesphp">trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyfooterphp">trunk/src/wp-content/themes/twentytwenty/footer.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyfunctionsphp">trunk/src/wp-content/themes/twentytwenty/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyinccustomcssphp">trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyincstartercontentphp">trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyprintcss">trunk/src/wp-content/themes/twentytwenty/print.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentystylertlcss">trunk/src/wp-content/themes/twentytwenty/style-rtl.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentystylecss">trunk/src/wp-content/themes/twentytwenty/style.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockrtlcss"></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/twentytwenty/assets/css/editor-style-block-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -319,6 +319,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 0.842em;
</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">+.editor-styles-wrapper p.has-normal-font-size,
</ins><span class="cx" style="display: block; padding: 0 10px"> .editor-styles-wrapper p.has-regular-font-size {
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockcss"></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/twentytwenty/assets/css/editor-style-block.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -319,6 +319,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 0.842em;
</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">+.editor-styles-wrapper p.has-normal-font-size,
</ins><span class="cx" style="display: block; padding: 0 10px"> .editor-styles-wrapper p.has-regular-font-size {
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetsjscustomizecontrolsjs"></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/twentytwenty/assets/js/customize-controls.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/js/customize-controls.js 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/assets/js/customize-controls.js 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,4 +1,4 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* global twentyTwentyBgColors, twentyTwentyColor, Color, jQuery, wp, _ */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* global twentyTwentyBgColors, twentyTwentyColor, jQuery, wp, _ */
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Customizer enhancements for a better user experience.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -74,11 +74,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .toCSS();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Get secondary color.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- value[ context ].secondary = Color( {
- h: colors.bgColorObj.h(),
- s: colors.bgColorObj.s() / 2,
- l: ( colors.textColorObj.l() * 0.57 ) + ( colors.bgColorObj.l() * 0.43 )
- } ).toCSS();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ value[ context ].secondary = colors.bgColorObj
+ .clone()
+ .getReadableContrastingColor( colors.bgColorObj )
+ .s( colors.bgColorObj.s() / 2 )
+ .toCSS();
</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"> // Change the value.
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetsjsindexjs"></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/twentytwenty/assets/js/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/js/index.js 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/assets/js/index.js 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,10 +30,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( window.NodeList && ! NodeList.prototype.forEach ) {
</span><span class="cx" style="display: block; padding: 0 10px"> NodeList.prototype.forEach = function( callback, thisArg ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var i;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var len = this.length;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> thisArg = thisArg || window;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- for ( i = 0; i < this.length; i++ ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ for ( i = 0; i < len; i++ ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> callback.call( thisArg, this[ i ], i, this );
</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">@@ -68,6 +69,21 @@
</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">+// Add a class to the body for when touch is enabled for browsers that don't support media queries
+// for interaction media features. Adapted from <https://codepen.io/Ferie/pen/vQOMmO>
+( function() {
+ var matchMedia = function() {
+ // Include the 'heartz' as a way to have a non matching MQ to help terminate the join. See <https://git.io/vznFH>.
+ var prefixes = [ '-webkit-', '-moz-', '-o-', '-ms-' ];
+ var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' );
+ return window.matchMedia && window.matchMedia( query ).matches;
+ };
+
+ if ( ( 'ontouchstart' in window ) || ( window.DocumentTouch && document instanceof window.DocumentTouch ) || matchMedia() ) {
+ document.body.classList.add( 'touch-enabled' );
+ }
+}() );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* -----------------------------------------------------------------------------------------------
</span><span class="cx" style="display: block; padding: 0 10px"> Cover Modals
</span><span class="cx" style="display: block; padding: 0 10px"> --------------------------------------------------------------------------------------------------- */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -523,37 +539,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> self = self.parentElement;
</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">-
- /**
- * Toggles `focus` class to allow submenu access on tablets.
- */
- ( function( menuObj ) {
- var touchStartFn, j,
- parentLink = menuObj.querySelectorAll( '.primary-menu .menu-item-has-children > a' );
-
- if ( 'ontouchstart' in window ) {
- touchStartFn = function( e ) {
- var menuItem = this.parentNode;
-
- if ( ! menuItem.classList.contains( 'focus' ) ) {
- e.preventDefault();
- for ( j = 0; j < menuItem.parentNode.children.length; ++j ) {
- if ( menuItem === menuItem.parentNode.children[j] ) {
- continue;
- }
- menuItem.parentNode.children[i].classList.remove( 'focus' );
- }
- menuItem.classList.add( 'focus' );
- } else {
- menuItem.classList.remove( 'focus' );
- }
- };
-
- for ( j = 0; j < parentLink.length; ++j ) {
- parentLink[j].addEventListener( 'touchstart', touchStartFn, false );
- }
- }
- }( menu ) );
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }; // twentytwenty.primaryMenu
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyclassesclasstwentytwentynonlatinlanguagesphp"></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/twentytwenty/classes/class-twentytwenty-non-latin-languages.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,7 +19,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Get custom CSS.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Return CSS for non-latin language, if available, or null
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return void
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyfooterphp"></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/twentytwenty/footer.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/footer.php 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/footer.php 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,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"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo bloginfo( 'name' ); ?></a>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </p><!-- .footer-copyright -->
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <p class="powered-by-wordpress">
</span><span class="cx" style="display: block; padding: 0 10px"> <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyfunctionsphp"></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/twentytwenty/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/functions.php 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/functions.php 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,9 +19,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Custom Logo
</span><span class="cx" style="display: block; padding: 0 10px"> * WP Body Open
</span><span class="cx" style="display: block; padding: 0 10px"> * Register Sidebars
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Enqueue block editor assets
- * Enqueue classic editor styles
- * Block editor settings
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Enqueue Block Editor Assets
+ * Enqueue Classic Editor Styles
+ * Block Editor Settings
</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">@@ -119,8 +119,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Add support for full and wide align images.
</span><span class="cx" style="display: block; padding: 0 10px"> add_theme_support( 'align-wide' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Adds starter content to highlight the theme on fresh sites.
- add_theme_support( 'starter-content', twentytwenty_get_starter_content() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /*
+ * Adds starter content to highlight the theme on fresh sites.
+ * This is done conditionally to avoid loading the starter content on every
+ * page load, as it is a one-off operation only needed once in the customizer.
+ */
+ if ( is_customize_preview() ) {
+ require get_template_directory() . '/inc/starter-content.php';
+ add_theme_support( 'starter-content', twentytwenty_get_starter_content() );
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Add theme support for selective refresh for widgets.
</span><span class="cx" style="display: block; padding: 0 10px"> add_theme_support( 'customize-selective-refresh-widgets' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -167,9 +174,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Custom CSS.
</span><span class="cx" style="display: block; padding: 0 10px"> require get_template_directory() . '/inc/custom-css.php';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-// Custom starter content to highlight the theme on fresh sites.
-require get_template_directory() . '/inc/starter-content.php';
-
</del><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Register and Enqueue Styles.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -531,7 +535,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => _x( 'Regular', 'Name of the regular font size in the block editor', 'twentytwenty' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'shortName' => _x( 'M', 'Short name of the regular font size in the block editor.', 'twentytwenty' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'size' => 21,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'slug' => 'regular',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'slug' => 'normal',
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => _x( 'Large', 'Name of the large font size in the block editor', 'twentytwenty' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -692,26 +696,26 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $elements = array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'content' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'accent' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( '.color-accent', '.color-accent-hover:hover', '.color-accent-hover:focus', ':root .has-accent-color', '.has-drop-cap:not(:focus):first-letter', '.wp-block-button.is-style-outline', 'a' ),
- 'border-color' => array( 'blockquote', '.border-color-accent', '.border-color-accent-hover:hover', '.border-color-accent-hover:focus' ),
- 'background' => array( 'button:not(.toggle)', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file .wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.bg-accent', '.bg-accent-hover:hover', '.bg-accent-hover:focus', ':root .has-accent-background-color', '.comment-reply-link' ),
- 'fill' => array( '.fill-children-accent', '.fill-children-accent *' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( '.color-accent', '.color-accent-hover:hover', '.color-accent-hover:focus', ':root .has-accent-color', '.has-drop-cap:not(:focus):first-letter', '.wp-block-button.is-style-outline', 'a' ),
+ 'border-color' => array( 'blockquote', '.border-color-accent', '.border-color-accent-hover:hover', '.border-color-accent-hover:focus' ),
+ 'background-color' => array( 'button:not(.toggle)', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file .wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.bg-accent', '.bg-accent-hover:hover', '.bg-accent-hover:focus', ':root .has-accent-background-color', '.comment-reply-link' ),
+ 'fill' => array( '.fill-children-accent', '.fill-children-accent *' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'background' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( ':root .has-background-color', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.wp-block-button', '.comment-reply-link' ),
- 'background' => array( ':root .has-background-background-color' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( ':root .has-background-color', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.wp-block-button', '.comment-reply-link', '.has-background.has-primary-background-color:not(.has-text-color)', '.has-background.has-primary-background-color *:not(.has-text-color)', '.has-background.has-accent-background-color:not(.has-text-color)', '.has-background.has-accent-background-color *:not(.has-text-color)' ),
+ 'background-color' => array( ':root .has-background-background-color' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'text' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( 'body', '.entry-title a', ':root .has-primary-color' ),
- 'background' => array( ':root .has-primary-background-color' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( 'body', '.entry-title a', ':root .has-primary-color' ),
+ 'background-color' => array( ':root .has-primary-background-color' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'secondary' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( 'cite', 'figcaption', '.wp-caption-text', '.post-meta', '.entry-content .wp-block-archives li', '.entry-content .wp-block-categories li', '.entry-content .wp-block-latest-posts li', '.wp-block-latest-comments__comment-date', '.wp-block-latest-posts__post-date', '.wp-block-embed figcaption', '.wp-block-image figcaption', '.wp-block-pullquote cite', '.comment-metadata', '.comment-respond .comment-notes', '.comment-respond .logged-in-as', '.pagination .dots', '.entry-content hr:not(.has-background)', 'hr.styled-separator', ':root .has-secondary-color' ),
- 'background' => array( ':root .has-secondary-background-color' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( 'cite', 'figcaption', '.wp-caption-text', '.post-meta', '.entry-content .wp-block-archives li', '.entry-content .wp-block-categories li', '.entry-content .wp-block-latest-posts li', '.wp-block-latest-comments__comment-date', '.wp-block-latest-posts__post-date', '.wp-block-embed figcaption', '.wp-block-image figcaption', '.wp-block-pullquote cite', '.comment-metadata', '.comment-respond .comment-notes', '.comment-respond .logged-in-as', '.pagination .dots', '.entry-content hr:not(.has-background)', 'hr.styled-separator', ':root .has-secondary-color' ),
+ 'background-color' => array( ':root .has-secondary-background-color' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'borders' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'border-color' => array( 'pre', 'fieldset', 'input', 'textarea', 'table', 'table *', 'hr' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'background' => array( 'caption', 'code', 'code', 'kbd', 'samp', '.wp-block-table.is-style-stripes tbody tr:nth-child(odd)', ':root .has-subtle-background-background-color' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'background-color' => array( 'caption', 'code', 'code', 'kbd', 'samp', '.wp-block-table.is-style-stripes tbody tr:nth-child(odd)', ':root .has-subtle-background-background-color' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> 'border-bottom-color' => array( '.wp-block-table.is-style-stripes' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'border-top-color' => array( '.wp-block-latest-posts.is-grid li' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'color' => array( ':root .has-subtle-background-color' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -719,16 +723,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'header-footer' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'accent' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( 'body:not(.overlay-header) .primary-menu > li > a', 'body:not(.overlay-header) .primary-menu > li > .icon', '.modal-menu a', '.footer-menu a, .footer-widgets a', '#site-footer .wp-block-button.is-style-outline', '.wp-block-pullquote:before', '.singular:not(.overlay-header) .entry-header a', '.archive-header a', '.header-footer-group .color-accent', '.header-footer-group .color-accent-hover:hover' ),
- 'background' => array( '.social-icons a', '#site-footer button:not(.toggle)', '#site-footer .button', '#site-footer .faux-button', '#site-footer .wp-block-button__link', '#site-footer .wp-block-file__button', '#site-footer input[type="button"]', '#site-footer input[type="reset"]', '#site-footer input[type="submit"]' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( 'body:not(.overlay-header) .primary-menu > li > a', 'body:not(.overlay-header) .primary-menu > li > .icon', '.modal-menu a', '.footer-menu a, .footer-widgets a', '#site-footer .wp-block-button.is-style-outline', '.wp-block-pullquote:before', '.singular:not(.overlay-header) .entry-header a', '.archive-header a', '.header-footer-group .color-accent', '.header-footer-group .color-accent-hover:hover' ),
+ 'background-color' => array( '.social-icons a', '#site-footer button:not(.toggle)', '#site-footer .button', '#site-footer .faux-button', '#site-footer .wp-block-button__link', '#site-footer .wp-block-file__button', '#site-footer input[type="button"]', '#site-footer input[type="reset"]', '#site-footer input[type="submit"]' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'background' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( '.social-icons a', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ),
- 'background' => array( '#site-header', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal', '.menu-modal-inner', '.search-modal-inner', '.archive-header', '.singular .entry-header', '.singular .featured-media:before', '.wp-block-pullquote:before' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( '.social-icons a', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ),
+ 'background-color' => array( '#site-header', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal', '.menu-modal-inner', '.search-modal-inner', '.archive-header', '.singular .entry-header', '.singular .featured-media:before', '.wp-block-pullquote:before' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'text' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'color' => array( '.header-footer-group', 'body:not(.overlay-header) #site-header .toggle', '.menu-modal .toggle' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'background' => array( 'body:not(.overlay-header) .primary-menu ul' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'background-color' => array( 'body:not(.overlay-header) .primary-menu ul' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> 'border-bottom-color' => array( 'body:not(.overlay-header) .primary-menu > li > ul:after' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'border-left-color' => array( 'body:not(.overlay-header) .primary-menu ul ul:after' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -736,8 +740,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'color' => array( '.site-description', 'body:not(.overlay-header) .toggle-inner .toggle-text', '.widget .post-date', '.widget .rss-date', '.widget_archive li', '.widget_categories li', '.widget cite', '.widget_pages li', '.widget_meta li', '.widget_nav_menu li', '.powered-by-wordpress', '.to-the-top', '.singular .entry-header .post-meta', '.singular:not(.overlay-header) .entry-header .post-meta a' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'borders' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'border-color' => array( '.header-footer-group pre', '.header-footer-group fieldset', '.header-footer-group input', '.header-footer-group textarea', '.header-footer-group table', '.header-footer-group table *', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal nav *', '.footer-widgets-outer-wrapper', '.footer-top' ),
- 'background' => array( '.header-footer-group table caption', 'body:not(.overlay-header) .header-inner .toggle-wrapper::before' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'border-color' => array( '.header-footer-group pre', '.header-footer-group fieldset', '.header-footer-group input', '.header-footer-group textarea', '.header-footer-group table', '.header-footer-group table *', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal nav *', '.footer-widgets-outer-wrapper', '.footer-top' ),
+ 'background-color' => array( '.header-footer-group table caption', 'body:not(.overlay-header) .header-inner .toggle-wrapper::before' ),
</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></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyinccustomcssphp"></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/twentytwenty/inc/custom-css.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -129,7 +129,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Background color.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $background && $background !== $background_default ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- twentytwenty_generate_css( '.editor-styles-wrapper', 'background', '#' . $background );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ twentytwenty_generate_css( '.editor-styles-wrapper', 'background-color', '#' . $background );
+ twentytwenty_generate_css( '.has-background.has-primary-background-color:not(.has-text-color),.has-background.has-primary-background-color *:not(.has-text-color),.has-background.has-accent-background-color:not(.has-text-color),.has-background.has-accent-background-color *:not(.has-text-color)', 'color', '#' . $background );
</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"> // Borders color.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -164,7 +165,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Background color.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $background && $background !== $background_default ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- twentytwenty_generate_css( 'body#tinymce.wp-editor.content', 'background', '#' . $background );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ twentytwenty_generate_css( 'body#tinymce.wp-editor.content', 'background-color', '#' . $background );
</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"> // Text color.
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyincstartercontentphp"></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/twentytwenty/inc/starter-content.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -175,10 +175,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'primary' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => __( 'Primary', 'twentytwenty' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'items' => array(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
+ 'page_about',
+ 'page_blog',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'page_contact',
</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">- // Assign a menu to the "expanded" (modal) menu location.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // This replicates primary just to demonstrate the expanded menu.
</ins><span class="cx" style="display: block; padding: 0 10px"> 'expanded' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => __( 'Primary', 'twentytwenty' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'items' => array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -185,6 +188,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
</span><span class="cx" style="display: block; padding: 0 10px"> 'page_about',
</span><span class="cx" style="display: block; padding: 0 10px"> 'page_blog',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'page_contact',
</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"> // Assign a menu to the "social" location.
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyprintcss"></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/twentytwenty/print.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/print.css 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/print.css 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -66,6 +66,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> h2.entry-title,
</span><span class="cx" style="display: block; padding: 0 10px"> h3,
</span><span class="cx" style="display: block; padding: 0 10px"> h4,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .has-normal-font-size,
</ins><span class="cx" style="display: block; padding: 0 10px"> .has-regular-font-size,
</span><span class="cx" style="display: block; padding: 0 10px"> .has-large-font-size,
</span><span class="cx" style="display: block; padding: 0 10px"> .comments-header {
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentystylertlcss"></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/twentytwenty/style-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/style-rtl.css 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/style-rtl.css 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -180,6 +180,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> position: absolute !important;
</span><span class="cx" style="display: block; padding: 0 10px"> width: 1px;
</span><span class="cx" style="display: block; padding: 0 10px"> word-wrap: normal !important;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ word-break: normal;
</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"> .screen-reader-text:focus {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -826,6 +827,29 @@
</span><span class="cx" style="display: block; padding: 0 10px"> text-decoration: underline;
</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">+input[type="text"]:focus,
+input[type="email"]:focus,
+input[type="url"]:focus,
+input[type="password"]:focus,
+input[type="number"]:focus,
+input[type="tel"]:focus,
+input[type="range"]:focus,
+input[type="date"]:focus,
+input[type="month"]:focus,
+input[type="week"]:focus,
+input[type="time"]:focus,
+input[type="datetime"]:focus,
+input[type="datetime-local"]:focus,
+input[type="color"]:focus,
+textarea:focus {
+ border-color: currentColor;
+}
+
+input[type="search"]:focus {
+ outline: thin dotted;
+ outline-offset: -4px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Tables ------------------------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> table {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1679,6 +1703,38 @@
</span><span class="cx" style="display: block; padding: 0 10px"> transform: rotate(-180deg);
</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">+/*
+ * Enable nav submenu expansion with tapping on arrows on large-viewport
+ * touch interfaces (e.g. tablets or laptops with touch screens).
+ * These rules are supported by all browsers (>IE11) and when JS is disabled.
+ */
+@media (any-pointer: coarse) {
+
+ .primary-menu > li.menu-item-has-children > a {
+ padding-left: 0;
+ margin-left: 2rem;
+ }
+
+ .primary-menu ul li.menu-item-has-children > a {
+ margin-left: 4.5rem;
+ padding-left: 0;
+ width: unset;
+ }
+
+}
+
+/* Repeat previous rules for IE11 (when JS enabled for polyfill). */
+body.touch-enabled .primary-menu > li.menu-item-has-children > a {
+ padding-left: 0;
+ margin-left: 2rem;
+}
+
+body.touch-enabled .primary-menu ul li.menu-item-has-children > a {
+ margin-left: 4.5rem;
+ padding-left: 0;
+ width: unset;
+}
+
</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"> /* 5. Menu Modal
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2685,6 +2741,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 0.842em;
</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">+.entry-content .has-normal-font-size,
</ins><span class="cx" style="display: block; padding: 0 10px"> .entry-content .has-regular-font-size {
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2864,6 +2921,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Block: Columns ---------------------------- */
</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-columns.alignfull,
+.alignfull:not(.has-background) .wp-block-columns {
+ padding-right: 2rem;
+ padding-left: 2rem;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .wp-block-column {
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 3.2rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2991,6 +3054,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> max-width: 100%;
</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">+.alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) {
+ padding-right: 2rem;
+ padding-left: 2rem;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Block: Image ------------------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Block: Media And Text --------------------- */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3175,10 +3243,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> background: #dcd7ca;
</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-table.is-style-stripes {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+figure.wp-block-table.is-style-stripes {
</ins><span class="cx" style="display: block; padding: 0 10px"> border-bottom: none;
</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-table.is-style-stripes table {
+ border-collapse: inherit;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Block: Quote ------------------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-quote p,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4349,36 +4421,6 @@
</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 ( max-width: 599px ) {
-
- /* Blocks -------------------------------- */
-
- /* BLOCK: COLUMNS */
-
- .alignfull:not(.has-background) .wp-block-column > p:not(.has-background-color),
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- max-width: calc(100% - 4rem);
- margin: auto;
- }
-}
-
-@media ( min-width: 600px ) and ( max-width: 781px ) {
-
- /* Blocks -------------------------------- */
-
- /* BLOCK: COLUMNS */
-
- .alignfull:not(.has-background) .wp-block-column:nth-child(odd) > p:not(.has-background-color),
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-right: 2rem;
- }
-
- .alignfull:not(.has-background) .wp-block-column:nth-child(even) > p:not(.has-background-color),
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-left: 2rem;
- }
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> @media ( min-width: 660px ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Blocks -------------------------------- */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5279,15 +5321,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 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">- .alignfull .wp-block-column:first-child > p,
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-right: 2rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block-columns.alignwide + .wp-block-columns.alignwide,
+ .wp-block-columns.alignfull + .wp-block-columns.alignfull {
+ margin-top: -2.8rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- .alignfull:not(.has-background) .wp-block-column:last-child > p,
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-left: 2rem;
- }
</del><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 ( min-width: 1000px ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5512,7 +5549,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-columns.alignwide + .wp-block-columns.alignwide,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-columns.alignfull + .wp-block-columns.alignfull {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin-top: -5.2rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin-top: -4.8rem;
</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"> /* BLOCK: GALLERY */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentystylecss"></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/twentytwenty/style.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/style.css 2019-11-11 11:49:29 UTC (rev 46700)
+++ trunk/src/wp-content/themes/twentytwenty/style.css 2019-11-11 12:27:21 UTC (rev 46701)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -180,6 +180,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> position: absolute !important;
</span><span class="cx" style="display: block; padding: 0 10px"> width: 1px;
</span><span class="cx" style="display: block; padding: 0 10px"> word-wrap: normal !important;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ word-break: normal;
</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"> .screen-reader-text:focus {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -832,6 +833,29 @@
</span><span class="cx" style="display: block; padding: 0 10px"> text-decoration: underline;
</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">+input[type="text"]:focus,
+input[type="email"]:focus,
+input[type="url"]:focus,
+input[type="password"]:focus,
+input[type="number"]:focus,
+input[type="tel"]:focus,
+input[type="range"]:focus,
+input[type="date"]:focus,
+input[type="month"]:focus,
+input[type="week"]:focus,
+input[type="time"]:focus,
+input[type="datetime"]:focus,
+input[type="datetime-local"]:focus,
+input[type="color"]:focus,
+textarea:focus {
+ border-color: currentColor;
+}
+
+input[type="search"]:focus {
+ outline: thin dotted;
+ outline-offset: -4px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Tables ------------------------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> table {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1687,6 +1711,38 @@
</span><span class="cx" style="display: block; padding: 0 10px"> transform: rotate(180deg);
</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">+/*
+ * Enable nav submenu expansion with tapping on arrows on large-viewport
+ * touch interfaces (e.g. tablets or laptops with touch screens).
+ * These rules are supported by all browsers (>IE11) and when JS is disabled.
+ */
+@media (any-pointer: coarse) {
+
+ .primary-menu > li.menu-item-has-children > a {
+ padding-right: 0;
+ margin-right: 2rem;
+ }
+
+ .primary-menu ul li.menu-item-has-children > a {
+ margin-right: 4.5rem;
+ padding-right: 0;
+ width: unset;
+ }
+
+}
+
+/* Repeat previous rules for IE11 (when JS enabled for polyfill). */
+body.touch-enabled .primary-menu > li.menu-item-has-children > a {
+ padding-right: 0;
+ margin-right: 2rem;
+}
+
+body.touch-enabled .primary-menu ul li.menu-item-has-children > a {
+ margin-right: 4.5rem;
+ padding-right: 0;
+ width: unset;
+}
+
</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"> /* 5. Menu Modal
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2699,6 +2755,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 0.842em;
</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">+.entry-content .has-normal-font-size,
</ins><span class="cx" style="display: block; padding: 0 10px"> .entry-content .has-regular-font-size {
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2878,6 +2935,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Block: Columns ---------------------------- */
</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-columns.alignfull,
+.alignfull:not(.has-background) .wp-block-columns {
+ padding-left: 2rem;
+ padding-right: 2rem;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .wp-block-column {
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 3.2rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3005,6 +3068,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> max-width: 100%;
</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">+.alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) {
+ padding-left: 2rem;
+ padding-right: 2rem;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Block: Image ------------------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Block: Media And Text --------------------- */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3189,10 +3257,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> background: #dcd7ca;
</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-table.is-style-stripes {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+figure.wp-block-table.is-style-stripes {
</ins><span class="cx" style="display: block; padding: 0 10px"> border-bottom: none;
</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-table.is-style-stripes table {
+ border-collapse: inherit;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Block: Quote ------------------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-quote p,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4371,36 +4443,6 @@
</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 ( max-width: 599px ) {
-
- /* Blocks -------------------------------- */
-
- /* BLOCK: COLUMNS */
-
- .alignfull:not(.has-background) .wp-block-column > p:not(.has-background-color),
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- max-width: calc(100% - 4rem);
- margin: auto;
- }
-}
-
-@media ( min-width: 600px ) and ( max-width: 781px ) {
-
- /* Blocks -------------------------------- */
-
- /* BLOCK: COLUMNS */
-
- .alignfull:not(.has-background) .wp-block-column:nth-child(odd) > p:not(.has-background-color),
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-left: 2rem;
- }
-
- .alignfull:not(.has-background) .wp-block-column:nth-child(even) > p:not(.has-background-color),
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-right: 2rem;
- }
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> @media ( min-width: 660px ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Blocks -------------------------------- */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5313,15 +5355,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 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">- .alignfull .wp-block-column:first-child > p,
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-left: 2rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .wp-block-columns.alignwide + .wp-block-columns.alignwide,
+ .wp-block-columns.alignfull + .wp-block-columns.alignfull {
+ margin-top: -2.8rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- .alignfull:not(.has-background) .wp-block-column:last-child > p,
- .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
- padding-right: 2rem;
- }
</del><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 ( min-width: 1000px ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5546,7 +5583,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-columns.alignwide + .wp-block-columns.alignwide,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-columns.alignfull + .wp-block-columns.alignfull {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin-top: -5.2rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin-top: -4.8rem;
</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"> /* BLOCK: GALLERY */
</span></span></pre>
</div>
</div>
</body>
</html>