Skip to content

Commit 3b04d43

Browse files
authored
Fix adminbar miss alignment issue (#4257)
Fixes #4256
1 parent 4947f78 commit 3b04d43

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

hypha/static_src/sass/components/_admin-bar.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
@use "../abstracts/variables";
33

44
.admin-bar {
5-
position: relative;
6-
inset-inline-end: 50%;
7-
inset-inline-start: 50%;
8-
width: 100vw;
95
padding: variables.$mobile-gutter;
10-
margin-inline-end: -50vw;
11-
margin-inline-start: -50vw;
6+
margin-inline: calc(0px - variables.$mobile-gutter);
127
color: variables.$color--white;
138
background-color: variables.$color--dark-grey;
149

1510
@include mixins.media-query(xl) {
1611
padding-inline: 0;
12+
margin-inline: calc(50% - 50vw);
1713
}
1814

1915
&__inner {

0 commit comments

Comments
 (0)