Twenty Nineteen: Correct line height for Button block.
This commit moves `line-height` to the Buttons container and removes the duplicate `outline` property. Props sabernhardt, nidhidhandhukiya, monzuralam, shailu25, hrrarya, karmatosed, harshgajipara, nicolefurlan, fnpen, oglekler, poena, huzaifaalmesbah, audrasjb. Fixes #58443. Built from https://develop.svn.wordpress.org/trunk@57599 git-svn-id: http://core.svn.wordpress.org/trunk@57100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3fae0d4fe5
commit
811de39c6f
|
@ -163,7 +163,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
//! Button
|
||||
//! Buttons
|
||||
.wp-block-buttons {
|
||||
line-height: $font__line-height-heading;
|
||||
}
|
||||
|
||||
.wp-block-button {
|
||||
|
||||
.wp-block-button__link {
|
||||
|
@ -171,13 +175,11 @@
|
|||
border: none;
|
||||
font-size: $font__size-sm;
|
||||
@include font-family( $font__heading );
|
||||
line-height: $font__line-height-heading;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
padding: ($size__spacing-unit * .76) $size__spacing-unit;
|
||||
outline: none;
|
||||
outline: none;
|
||||
|
||||
&:not(.has-background) {
|
||||
background-color: $color__background-button;
|
||||
|
|
|
@ -1004,8 +1004,11 @@ figcaption,
|
|||
}
|
||||
|
||||
/** === Button === */
|
||||
.wp-block-buttons {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link {
|
||||
line-height: inherit;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-size: 0.88889em;
|
||||
font-weight: bold;
|
||||
|
|
|
@ -379,10 +379,13 @@ figcaption,
|
|||
|
||||
/** === Button === */
|
||||
|
||||
.wp-block-buttons {
|
||||
line-height: $font__line-height-heading;
|
||||
}
|
||||
|
||||
.wp-block-button {
|
||||
|
||||
.wp-block-button__link {
|
||||
line-height:inherit;
|
||||
@include font-family( $font__heading );
|
||||
font-size: $font__size-sm;
|
||||
font-weight: bold;
|
||||
|
|
|
@ -5484,18 +5484,20 @@ body.page .main-navigation {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-buttons {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link {
|
||||
transition: background 150ms ease-in-out;
|
||||
border: none;
|
||||
font-size: 0.88889em;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
line-height: 1.2;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
padding: 0.76rem 1rem;
|
||||
outline: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background) {
|
||||
|
|
|
@ -2804,7 +2804,8 @@ body.page .main-navigation {
|
|||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
transition: background 250ms ease-in-out, transform 150ms ease;
|
||||
transition: background 250ms ease-in-out,
|
||||
transform 150ms ease;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
@ -5496,18 +5497,20 @@ body.page .main-navigation {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-buttons {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link {
|
||||
transition: background 150ms ease-in-out;
|
||||
border: none;
|
||||
font-size: 0.88889em;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
line-height: 1.2;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
padding: 0.76rem 1rem;
|
||||
outline: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57598';
|
||||
$wp_version = '6.5-alpha-57599';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue