phonograph/sass/_basic-dropdown.scss

41 lines
628 B
SCSS
Raw Normal View History

@use 'globals';
.basic-dropdown {
&__button {
anchor-name: --anchor-button;
}
&__popover {
&:popover-open {
@include globals.popover;
padding: 0;
position: absolute;
position-anchor: --anchor-button;
top: anchor(bottom);
}
}
&__menu {
list-style-type: none;
margin: 0;
padding: 8px 0;
& > li {
padding: 0;
&:hover {
background: #0001;
}
2025-10-25 05:32:22 +00:00
& > button, & > [role="button"] {
@include globals.reset-button;
2025-10-25 05:32:22 +00:00
@include globals.reset-anchor;
2025-10-25 05:32:22 +00:00
display: block;
padding: 8px 16px;
}
}
}
}