diff --git a/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss b/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss index 0a4b69567..cc94af9ad 100644 --- a/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss +++ b/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss @@ -123,6 +123,13 @@ } } +@media (min-width: 890px) { + /* stylelint-disable selector-id-pattern */ + #wp--skip-link--target { + scroll-margin-top: var(--wp--custom--local-navigation-bar--spacing--height, 0); + } +} + /* Set up the custom properties. These can be overridden by settings in theme.json. */ :where(body) { --wp--custom--local-navigation-bar--spacing--height: 60px; diff --git a/mu-plugins/blocks/sidebar-container/postcss/style.pcss b/mu-plugins/blocks/sidebar-container/postcss/style.pcss index ba5353fa2..fe8bcdd4e 100644 --- a/mu-plugins/blocks/sidebar-container/postcss/style.pcss +++ b/mu-plugins/blocks/sidebar-container/postcss/style.pcss @@ -71,13 +71,6 @@ } } -@media (min-width: 890px) { - /* stylelint-disable selector-id-pattern */ - #wp--skip-link--target { - scroll-margin-top: var(--wp--custom--local-navigation-bar--spacing--height, 0); - } -} - /* Set up the custom properties. These can be overridden by settings in theme.json. */ :where(body) { --wp--custom--wporg-sidebar-container--spacing--margin--top: var(--wp--preset--spacing--edge-space);