mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 21:27:48 -05:00
Add scroll lock, replace CSS anchors with floating layer, and various fixes (#3407)
This commit is contained in:
@@ -1,38 +1,24 @@
|
||||
.triggerContainer {
|
||||
display: contents;
|
||||
|
||||
> * {
|
||||
anchor-name: var(--menu-anchor);
|
||||
}
|
||||
}
|
||||
|
||||
.popover {
|
||||
position: fixed;
|
||||
position-area: block-end span-inline-end;
|
||||
margin: var(--s-2) 0;
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
outline: none;
|
||||
border-radius: var(--radius-box);
|
||||
background-color: var(--color-bg-high);
|
||||
border: var(--border-style);
|
||||
width: max-content;
|
||||
max-width: calc(100vw - var(--s-4));
|
||||
max-width: var(--floating-available-width, 100vw);
|
||||
font-size: var(--font-sm);
|
||||
font-weight: var(--weight-semi);
|
||||
padding: var(--s-2);
|
||||
color: var(--color-text);
|
||||
|
||||
&[data-placement="bottom end"],
|
||||
&[data-placement="bottom right"] {
|
||||
position-area: block-end span-inline-start;
|
||||
}
|
||||
}
|
||||
|
||||
.opensLeft {
|
||||
position-area: block-end span-inline-start;
|
||||
}
|
||||
|
||||
.scrolling {
|
||||
max-height: 300px !important;
|
||||
max-height: min(300px, var(--floating-available-height, 100vh));
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user