mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-08-06 06:47:38 +00:00
change anchor method
This updates the position try results by using a different method of setting the area of the anchored element. Rather than using the inset properties with `anchor()`, it uses `position-area`.
This commit is contained in:
@@ -6,18 +6,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-list {
|
.menu-list {
|
||||||
position : fixed;
|
position : absolute;
|
||||||
z-index : 1000;
|
z-index : 1000;
|
||||||
inset-block-start: anchor(bottom);
|
position-area : block-end span-inline-end;
|
||||||
inset-inline-start: anchor(left);
|
position-try: flip-inline flip-block;
|
||||||
position-try: flip-inline;
|
|
||||||
color: inherit; // [popover] gets a `canvastext` color value from useragent.
|
color: inherit; // [popover] gets a `canvastext` color value from useragent.
|
||||||
> .menu-wrapper {
|
> .menu-wrapper {
|
||||||
position:relative;
|
position:relative;
|
||||||
> .menu-list {
|
> .menu-list {
|
||||||
margin: 0 0px;
|
margin: 0 0px;
|
||||||
inset-block-start: anchor(top);
|
position-area: inline-end span-block-end;
|
||||||
inset-inline-start: anchor(right);
|
|
||||||
position-try: flip-inline;
|
position-try: flip-inline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user