Skip to content

Commit

Permalink
Move skip link target styles to local nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jan 29, 2024
1 parent 6060e20 commit 7773409
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions mu-plugins/blocks/local-navigation-bar/postcss/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions mu-plugins/blocks/sidebar-container/postcss/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7773409

Please sign in to comment.