Twenty Nineteen: Fixes and improvements.

This commit fixes the final differences between the version of Twenty Nineteen in core and the one in GitHub. The two are now identical.

See #45424.
Built from https://develop.svn.wordpress.org/branches/5.0@44202


git-svn-id: http://core.svn.wordpress.org/branches/5.0@44032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2018-12-15 11:14:29 +00:00
parent 09b7e36205
commit 362b7a42cf
6 changed files with 19 additions and 8 deletions

View File

@ -246,7 +246,7 @@ function twentynineteen_skip_link_focus_fix() {
// The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`. // The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`.
?> ?>
<script> <script>
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
</script> </script>
<?php <?php
} }

View File

@ -428,6 +428,7 @@
&.alignright, &.alignright,
&.alignleft { &.alignleft {
@include media(tablet) { @include media(tablet) {
padding: $size__spacing-unit calc(2 * #{$size__spacing-unit}); padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
} }

View File

@ -332,12 +332,19 @@ figcaption,
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover { .wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
padding: calc(1.375 * 1rem);
}
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover p,
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover p {
padding-left: 0;
padding-right: 0;
} }
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover, .wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover,
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover { .wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
padding: 1rem; padding: calc(2.75 * 1rem) calc(2.75 * 1rem) calc(3.125 * 1rem);
} }
} }

View File

@ -294,12 +294,15 @@ figcaption,
.wp-block-cover { .wp-block-cover {
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
} padding: calc(1.375 * #{$size__spacing-unit});
@include media(tablet) { p {
padding-left: 0;
padding-right: 0;
}
.wp-block-cover { @include media(tablet) {
padding: $size__spacing-unit; padding: calc(2.75 * #{$size__spacing-unit}) calc(2.75 * #{$size__spacing-unit}) calc(3.125 * #{$size__spacing-unit});
} }
} }
} }

View File

@ -13,7 +13,7 @@ if ( (bool) get_the_author_meta( 'description' ) ) : ?>
<span class="author-heading"> <span class="author-heading">
<?php <?php
printf( printf(
/* translators: %s: post author */ /* translators: %s: post author */
__( 'Published by %s', 'twentynineteen' ), __( 'Published by %s', 'twentynineteen' ),
esc_html( get_the_author() ) esc_html( get_the_author() )
); );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0.2-alpha-44201'; $wp_version = '5.0.2-alpha-44202';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.