funkwhale/front/src/components/ui/popover.scss

91 lines
1.7 KiB
SCSS

.funkwhale.popover-container {
width: max-content;
}
.funkwhale.popover-outer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99999;
&:not(.is-mobile) {
pointer-events: none;
}
}
.funkwhale {
&.popover {
border: 1px solid var(--fw-border-color);
background-color: color-mix(in oklab, var(--background-color) 98%, var(--color));
.popover-item:hover {
background-color: color-mix(in oklab, var(--hover-background-color) 98%, var(--color));
}
hr {
border-bottom: 1px solid var(--fw-border-color);
}
@include light-theme {
--fw-border-color: var(--fw-gray-500);
}
@include dark-theme {
--fw-border-color: var(--fw-gray-800);
.popover-item:hover {
background-color: var(--hover-background-color);
}
}
pointer-events: auto;
&.is-mobile {
width: 90vw;
margin: 0 5vw;
left: 0 !important;
box-shadow: 0 0 0 1000vh rgba(0,0,0,0.2),
0 0 100vh rgba(0,0,0,0.6);
}
position: absolute;
padding: 16px;
border-radius: var(--fw-border-radius);
min-width: 246px;
z-index: 999;
font-size: 0.875rem;
hr {
padding-top: 12px;
margin-bottom: 12px;
}
.popover-item {
cursor: pointer;
color: var(--color) !important;
text-decoration: none;
padding-left: 8px;
height: 32px;
display: flex;
align-items: center;
border-radius: var(--fw-border-radius);
white-space: nowrap;
> .bi:first-child {
margin-right: 16px;
}
> .bi:last-child {
margin-right: 8px;
}
> .after {
margin-left: auto;
}
}
}
}