:where(:root) {
--ggs-ease: var(--wp--custom--ggs--motion--ease, cubic-bezier(0.22, 1, 0.36, 1));
--ggs-duration-fast: calc(var(--wp--custom--ggs--motion--duration-fast, 180ms) * var(--wp--custom--ggs--motion--scale, 1));
--ggs-duration: calc(var(--wp--custom--ggs--motion--duration, 280ms) * var(--wp--custom--ggs--motion--scale, 1));
--ggs-duration-slow: calc(var(--wp--custom--ggs--motion--duration-slow, 450ms) * var(--wp--custom--ggs--motion--scale, 1));
}
@media (prefers-reduced-motion: reduce) {
:where(:root) {
--ggs-duration-fast: min(calc(var(--wp--custom--ggs--motion--duration-fast, 180ms) * var(--wp--custom--ggs--motion--scale, 1)), 120ms);
--ggs-duration: var(--ggs-duration-fast);
--ggs-duration-slow: var(--ggs-duration-fast);
}
} @layer ggs-interactions {
:where(body:not(.wp-admin), .editor-styles-wrapper) :where(a, summary, [role="tab"]) {
transition-duration: var(--ggs-duration-fast);
transition-property: color, background-color, border-color, text-decoration-color, opacity, box-shadow;
transition-timing-function: var(--ggs-ease);
}
:where(body:not(.wp-admin), .editor-styles-wrapper) :where(
button,
[role="button"],
input:is([type="button"], [type="submit"], [type="reset"]),
.wp-element-button,
.wp-block-button__link,
.button
) {
transition-duration: var(--ggs-duration);
transition-property: color, background-color, border-color, text-decoration-color, opacity, box-shadow;
transition-timing-function: var(--ggs-ease);
} :where(body:not(.wp-admin), .editor-styles-wrapper) :where(
input:not([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"], [type="hidden"]),
select,
textarea
) {
transition-duration: var(--ggs-duration-fast);
transition-property: color, background-color, border-color;
transition-timing-function: var(--ggs-ease);
} :where(body:not(.wp-admin), .editor-styles-wrapper) :where(:focus-visible) {
transition-duration: 0s;
}
}