Skip to content

Commit b90ab63

Browse files
committed
Global Header: Bring back custom property for header offset
This value is used elsewhere in the Local Navigation Bar CSS, and in the parent theme. Removing it causes alignment issues when the value is undefined. Follow-up to #665 Fixes #672
1 parent 82ed784 commit b90ab63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mu-plugins/blocks/global-header-footer/postcss/_common.pcss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
html {
2222
--wp--custom--alignment--scroll-bar-width: 8px;
2323

24+
/* Offset from the top of the page. */
25+
--wp-global-header-offset: calc(var(--wp-global-header-height, 0px) + var(--wp-admin--admin-bar--height, 0px));
2426
height: unset; /* Let height use default browser height. */
2527
}
2628

0 commit comments

Comments
 (0)