- md5
- c1e05424aafc670d989863e615c168ee
- sha1
- ba7965272f97f4c2674c07d31139694426db598f
- sha256
- 980c926f46382c94cffdacf60976312729e31b79e6bcca6f3ef0381faee592b5
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
/**
* Button
*/
.site .button,
input[type="submit"],
input[type="reset"],
.wp-block-search__button,
.wp-block-button .wp-block-button__link {
// Extend button style
@include button-style();
}
.site .button,
input[type="submit"],
input[type="reset"],
.wp-block-search .wp-block-search__button,
.wp-block-file .wp-block-file__button {
&:active {
color: var(--button--color-text-active);
background-color: var(--button--color-background-active);
}
&:hover {
color: var(--button--color-text-hover);
background: transparent;
}
}
/**
* Block Options
*/
.wp-block-button {
// Target the default and filled button states.
&:not(.is-style-outline) {
.wp-block-button__link {
&:active {
color: var(--button--color-text-active) !important;
background: transparent !important;
border-color: var(--button--color-background);
}
&:hover {
color: var(--button--color-text-hover) !important;
background: transparent !important;
border-color: var(--button--color-background);
}
&:focus {
color: var(--button--color-text) !important;
background: var(--button--color-background) !important;
}
}
}
// Outline Style.
&.is-style-outline {
.wp-block-button__link {
padding: var(--button--padding-vertical) var(--button--padding-horizontal);
&:not(.has-background) {
background: transparent;
}
&:not(.has-background):not(.has-text-color) {
background: transparent;
color: var(--button--color-background);
border-color: var(--button--color-background);
}
&.has-background:not(.has-text-color) {
color: currentColor;
}
&.has-background.has-gray-background-color:not(.has-text-color),
&.has-background.has-dark-gray-background-color:not(.has-text-color),
&.has-background.has-black-background-color:not(.has-text-color) {
color: var(--global--color-white);
}
.is-dark-theme & {
&:not(.has-text-color) {
&.has-background {
color: var(--global--color-dark-gray);
}
&.has-background.has-gray-background-color,
&.has-background.has-dark-gray-background-color,
&.has-background.has-black-background-color {
color: var(--global--color-white);
}
}
}
&.has-text-color,
&.has-background.has-text-color {
border-color: currentColor;
}
&:active,
&:hover {
color: var(--button--color-text) !important;
background: var(--button--color-background) !important;
border-color: var(--button--color-background);
&.has-text-color {
border-color: var(--button--color-background);
}
}
&:focus {
color: var(--button--color-background) !important;
background: transparent !important;
}
}
}
// Squared Style
.is-style-squared .wp-block-button__link {
border-radius: 0;
}
}
.is-style-outline .wp-block-button__link[style*="radius"]:focus,
.wp-block-button a.wp-block-button__link[style*="radius"]:focus {
outline-offset: 2px;
outline: 2px dotted var(--button--color-background);
}
The same content is in 33 releases, WordPress 5.6-beta4 to 5.6.24. See them all, or every version of this file.