Twenty Twenty-One: Add missing styles for `<button>` element.

Props poena, slaFFik.
Fixes #52029.
Built from https://develop.svn.wordpress.org/trunk@49988


git-svn-id: http://core.svn.wordpress.org/trunk@49689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-01-20 07:05:58 +00:00
parent b3bb99b3d7
commit a0db82e9c8
5 changed files with 64 additions and 5 deletions

View File

@ -1298,10 +1298,6 @@ body {
background-color: #d1e4dd; background-color: #d1e4dd;
} }
button {
cursor: pointer;
}
.clear:before, .clear:before,
.clear:after, .clear:after,
.entry-content:before, .entry-content:before,
@ -2256,6 +2252,19 @@ a:hover {
text-decoration: none; text-decoration: none;
} }
button {
border: 3px solid transparent;
border-radius: 0;
cursor: pointer;
display: block;
font-weight: 500;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.25rem;
line-height: 1.5;
padding: 15px 30px;
text-decoration: none;
}
input[type=submit] { input[type=submit] {
border: 3px solid transparent; border: 3px solid transparent;
border-radius: 0; border-radius: 0;
@ -2325,6 +2334,10 @@ input[type=reset] {
color: #d1e4dd; color: #d1e4dd;
} }
button:not(:hover):not(:active):not(.has-text-color) {
color: #d1e4dd;
}
input[type=submit]:not(:hover):not(:active):not(.has-text-color) { input[type=submit]:not(:hover):not(:active):not(.has-text-color) {
color: #d1e4dd; color: #d1e4dd;
} }
@ -2349,6 +2362,10 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color) {
color: #28303d; color: #28303d;
} }
.has-background button:not(:hover):not(:active):not(.has-text-color) {
color: #28303d;
}
.has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color) { .has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color) {
color: #28303d; color: #28303d;
} }
@ -2373,6 +2390,10 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color) {
color: #28303d; color: #28303d;
} }
.has-background button:not(:hover):not(:active):not(.has-text-color).has-background {
color: #28303d;
}
.has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color).has-background { .has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color).has-background {
color: #28303d; color: #28303d;
} }
@ -2397,6 +2418,10 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color) {
background-color: #28303d; background-color: #28303d;
} }
button:not(:hover):not(:active):not(.has-background) {
background-color: #28303d;
}
input[type=submit]:not(:hover):not(:active):not(.has-background) { input[type=submit]:not(:hover):not(:active):not(.has-background) {
background-color: #28303d; background-color: #28303d;
} }
@ -2421,6 +2446,10 @@ input[type=reset]:not(:hover):not(:active):not(.has-background) {
background-color: #28303d; background-color: #28303d;
} }
.has-background button:not(:hover):not(:active):not(.has-background) {
background-color: #28303d;
}
.has-background input[type=submit]:not(:hover):not(:active):not(.has-background) { .has-background input[type=submit]:not(:hover):not(:active):not(.has-background) {
background-color: #28303d; background-color: #28303d;
} }
@ -2443,6 +2472,8 @@ input[type=reset]:not(:hover):not(:active):not(.has-background) {
.site .button:hover, .site .button:hover,
.site .button:active, .site .button:active,
button:hover,
button:active,
input[type=submit]:hover, input[type=submit]:hover,
input[type=submit]:active, input[type=submit]:active,
input[type=reset]:hover, input[type=reset]:hover,
@ -2459,6 +2490,7 @@ input[type=reset]:active,
} }
.site .button:focus, .site .button:focus,
button:focus,
input[type=submit]:focus, input[type=submit]:focus,
input[type=reset]:focus, input[type=reset]:focus,
.wp-block-search .wp-block-search__button:focus, .wp-block-search .wp-block-search__button:focus,
@ -2474,6 +2506,12 @@ input[type=reset]:focus,
color: #39414d; color: #39414d;
} }
button:disabled {
background-color: rgba(255, 255, 255, 0.5);
border-color: rgba(255, 255, 255, 0.5);
color: #39414d;
}
input[type=submit]:disabled { input[type=submit]:disabled {
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
border-color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.5);

View File

@ -2,6 +2,7 @@
* Button * Button
*/ */
.site .button, .site .button,
button,
input[type="submit"], input[type="submit"],
input[type="reset"], input[type="reset"],
.wp-block-search .wp-block-search__button, .wp-block-search .wp-block-search__button,

View File

@ -1705,6 +1705,7 @@ a:hover {
* Button * Button
*/ */
.site .button, .site .button,
button,
input[type=submit], input[type=submit],
input[type=reset], input[type=reset],
.wp-block-search .wp-block-search__button, .wp-block-search .wp-block-search__button,
@ -1723,6 +1724,7 @@ input[type=reset],
} }
.site .button:not(:hover):not(:active):not(.has-text-color), .site .button:not(:hover):not(:active):not(.has-text-color),
button:not(:hover):not(:active):not(.has-text-color),
input[type=submit]:not(:hover):not(:active):not(.has-text-color), input[type=submit]:not(:hover):not(:active):not(.has-text-color),
input[type=reset]:not(:hover):not(:active):not(.has-text-color), input[type=reset]:not(:hover):not(:active):not(.has-text-color),
.wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color), .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color),
@ -1732,6 +1734,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
} }
.has-background .site .button:not(:hover):not(:active):not(.has-text-color), .has-background .site .button:not(:hover):not(:active):not(.has-text-color),
.has-background button:not(:hover):not(:active):not(.has-text-color),
.has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color), .has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color),
.has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color), .has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color),
.has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color), .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color),
@ -1741,6 +1744,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
} }
.has-background .site .button:not(:hover):not(:active):not(.has-text-color).has-background, .has-background .site .button:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background button:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color).has-background, .has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color).has-background, .has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color).has-background, .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color).has-background,
@ -1750,6 +1754,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
} }
.site .button:not(:hover):not(:active):not(.has-background), .site .button:not(:hover):not(:active):not(.has-background),
button:not(:hover):not(:active):not(.has-background),
input[type=submit]:not(:hover):not(:active):not(.has-background), input[type=submit]:not(:hover):not(:active):not(.has-background),
input[type=reset]:not(:hover):not(:active):not(.has-background), input[type=reset]:not(:hover):not(:active):not(.has-background),
.wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background), .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background),
@ -1759,6 +1764,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-background),
} }
.has-background .site .button:not(:hover):not(:active):not(.has-background), .has-background .site .button:not(:hover):not(:active):not(.has-background),
.has-background button:not(:hover):not(:active):not(.has-background),
.has-background input[type=submit]:not(:hover):not(:active):not(.has-background), .has-background input[type=submit]:not(:hover):not(:active):not(.has-background),
.has-background input[type=reset]:not(:hover):not(:active):not(.has-background), .has-background input[type=reset]:not(:hover):not(:active):not(.has-background),
.has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background), .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background),
@ -1769,6 +1775,8 @@ input[type=reset]:not(:hover):not(:active):not(.has-background),
.site .button:hover, .site .button:hover,
.site .button:active, .site .button:active,
button:hover,
button:active,
input[type=submit]:hover, input[type=submit]:hover,
input[type=submit]:active, input[type=submit]:active,
input[type=reset]:hover, input[type=reset]:hover,
@ -1785,6 +1793,7 @@ input[type=reset]:active,
} }
.site .button:focus, .site .button:focus,
button:focus,
input[type=submit]:focus, input[type=submit]:focus,
input[type=reset]:focus, input[type=reset]:focus,
.wp-block-search .wp-block-search__button:focus, .wp-block-search .wp-block-search__button:focus,
@ -1795,6 +1804,7 @@ input[type=reset]:focus,
} }
.site .button:disabled, .site .button:disabled,
button:disabled,
input[type=submit]:disabled, input[type=submit]:disabled,
input[type=reset]:disabled, input[type=reset]:disabled,
.wp-block-search .wp-block-search__button:disabled, .wp-block-search .wp-block-search__button:disabled,

View File

@ -1715,6 +1715,7 @@ a:hover {
* Button * Button
*/ */
.site .button, .site .button,
button,
input[type=submit], input[type=submit],
input[type=reset], input[type=reset],
.wp-block-search .wp-block-search__button, .wp-block-search .wp-block-search__button,
@ -1733,6 +1734,7 @@ input[type=reset],
} }
.site .button:not(:hover):not(:active):not(.has-text-color), .site .button:not(:hover):not(:active):not(.has-text-color),
button:not(:hover):not(:active):not(.has-text-color),
input[type=submit]:not(:hover):not(:active):not(.has-text-color), input[type=submit]:not(:hover):not(:active):not(.has-text-color),
input[type=reset]:not(:hover):not(:active):not(.has-text-color), input[type=reset]:not(:hover):not(:active):not(.has-text-color),
.wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color), .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color),
@ -1742,6 +1744,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
} }
.has-background .site .button:not(:hover):not(:active):not(.has-text-color), .has-background .site .button:not(:hover):not(:active):not(.has-text-color),
.has-background button:not(:hover):not(:active):not(.has-text-color),
.has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color), .has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color),
.has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color), .has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color),
.has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color), .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color),
@ -1751,6 +1754,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
} }
.has-background .site .button:not(:hover):not(:active):not(.has-text-color).has-background, .has-background .site .button:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background button:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color).has-background, .has-background input[type=submit]:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color).has-background, .has-background input[type=reset]:not(:hover):not(:active):not(.has-text-color).has-background,
.has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color).has-background, .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color).has-background,
@ -1760,6 +1764,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
} }
.site .button:not(:hover):not(:active):not(.has-background), .site .button:not(:hover):not(:active):not(.has-background),
button:not(:hover):not(:active):not(.has-background),
input[type=submit]:not(:hover):not(:active):not(.has-background), input[type=submit]:not(:hover):not(:active):not(.has-background),
input[type=reset]:not(:hover):not(:active):not(.has-background), input[type=reset]:not(:hover):not(:active):not(.has-background),
.wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background), .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background),
@ -1769,6 +1774,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-background),
} }
.has-background .site .button:not(:hover):not(:active):not(.has-background), .has-background .site .button:not(:hover):not(:active):not(.has-background),
.has-background button:not(:hover):not(:active):not(.has-background),
.has-background input[type=submit]:not(:hover):not(:active):not(.has-background), .has-background input[type=submit]:not(:hover):not(:active):not(.has-background),
.has-background input[type=reset]:not(:hover):not(:active):not(.has-background), .has-background input[type=reset]:not(:hover):not(:active):not(.has-background),
.has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background), .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-background),
@ -1779,6 +1785,8 @@ input[type=reset]:not(:hover):not(:active):not(.has-background),
.site .button:hover, .site .button:hover,
.site .button:active, .site .button:active,
button:hover,
button:active,
input[type=submit]:hover, input[type=submit]:hover,
input[type=submit]:active, input[type=submit]:active,
input[type=reset]:hover, input[type=reset]:hover,
@ -1795,6 +1803,7 @@ input[type=reset]:active,
} }
.site .button:focus, .site .button:focus,
button:focus,
input[type=submit]:focus, input[type=submit]:focus,
input[type=reset]:focus, input[type=reset]:focus,
.wp-block-search .wp-block-search__button:focus, .wp-block-search .wp-block-search__button:focus,
@ -1805,6 +1814,7 @@ input[type=reset]:focus,
} }
.site .button:disabled, .site .button:disabled,
button:disabled,
input[type=submit]:disabled, input[type=submit]:disabled,
input[type=reset]:disabled, input[type=reset]:disabled,
.wp-block-search .wp-block-search__button:disabled, .wp-block-search .wp-block-search__button:disabled,

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.7-alpha-49987'; $wp_version = '5.7-alpha-49988';
/** /**
* 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.