Skip to content

Commit

Permalink
Twenty Nineteen: Fixes and improvements.
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44202 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
desrosj committed Dec 14, 2018
1 parent 44a30da commit 5853c65
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentynineteen/functions.php
Expand Up @@ -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
} }
Expand Down
Expand Up @@ -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});
} }
Expand Down
9 changes: 8 additions & 1 deletion src/wp-content/themes/twentynineteen/style-editor.css
Expand Up @@ -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);
} }
} }


Expand Down
11 changes: 7 additions & 4 deletions src/wp-content/themes/twentynineteen/style-editor.scss
Expand Up @@ -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});
} }
} }
} }
Expand Down
Expand Up @@ -13,7 +13,7 @@
<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() )
); );
Expand Down

0 comments on commit 5853c65

Please sign in to comment.