Skip to content

Commit 22eb28a

Browse files
committed
feat (skip-links): set top value with --wp-admin--admin-bar--height
1 parent f3d1afb commit 22eb28a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/scss/03-base/_variables-css.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
/*
4242
* Admin bar
4343
*/
44-
--wp-admin-bar-height: 0rem;
44+
--wp-admin-bar-height: var(--wp-admin--admin-bar--height, 0rem);
4545

4646
.admin-bar {
47-
--wp-admin-bar-height: 46px;
47+
--wp-admin-bar-height: var(--wp-admin--admin-bar--height, 46px);
4848
}
4949

5050
/*
@@ -76,7 +76,7 @@
7676
*/
7777
&:not(.scroll-top) {
7878
.admin-bar {
79-
--wp-admin-bar-height: 0rem;
79+
--wp-admin-bar-height: var(--wp-admin--admin-bar--height, 0rem);
8080
}
8181
}
8282
}
@@ -86,7 +86,7 @@
8686
* Admin bar
8787
*/
8888
.admin-bar {
89-
--wp-admin-bar-height: 32px;
89+
--wp-admin-bar-height: var(--wp-admin--admin-bar--height, 32px);
9090
}
9191
}
9292

src/scss/05-components/_skip-links.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.skip-links {
22
position: absolute;
3-
top: 0;
3+
top: var(--wp-admin-bar-height);
44
left: 0;
55
z-index: 10;
66
display: flex;

0 commit comments

Comments
 (0)