ultrawidify/src/ui/res/styles/player-menu.css

131 lines
2.1 KiB
CSS
Raw Normal View History

@import "tailwindcss";
@import "tailwindcss/utilities";
2025-12-29 02:34:46 +01:00
.uw-menu-root {
@apply h-full w-full font-mono text-stone-200 text-[16px] flex flex-row bg-transparent;
2025-12-29 11:32:49 +01:00
2026-01-02 17:47:42 +01:00
pointer-events: none;
2025-12-29 14:28:00 +01:00
transition: opacity 120ms ease;
&:not(.uw-visible) {
pointer-events: none;
opacity: 0;
}
&.uw-hidden {
pointer-events: none;
opacity: 0;
}
&.uw-visible {
2026-01-02 17:47:42 +01:00
/* pointer-events: auto; */
2025-12-29 14:28:00 +01:00
opacity: 1;
}
2025-12-29 11:32:49 +01:00
&.uw-menu-left {
@apply justify-start;
}
&.uw-menu-right {
@apply justify-end;
}
&.uw-menu-left, &.uw-menu-right {
&.uw-menu-top {
@apply items-start;
}
&.uw-menu-ycenter {
@apply items-center;
}
&.uw-menu-bottom {
@apply items-end;
}
}
&.uw-menu-center {
@apply flex-col items-center;
&.uw-menu-top {
@apply justify-start;
}
&.uw-menu-bottom {
@apply justify-end;
}
}
2025-12-29 02:34:46 +01:00
* {
@apply font-mono text-stone-200 text-[1em];
}
}
2025-12-29 11:32:49 +01:00
2026-01-02 17:47:42 +01:00
.uw-trigger, .uw-menu-item, .uw-menu-trigger {
pointer-events: auto;
}
2025-12-29 11:32:49 +01:00
.uw-submenu {
2026-01-02 17:47:42 +01:00
@apply absolute flex-col gap-0;
2025-12-29 11:32:49 +01:00
2025-12-29 14:28:00 +01:00
opacity: 0;
2026-01-02 17:47:42 +01:00
display: none;
2025-12-29 14:28:00 +01:00
pointer-events: none;
/* we'll also animate a bit */
transition: opacity 120ms ease, width 120ms ease;
2025-12-29 14:28:00 +01:00
&.uw-menu-left {
2025-12-29 11:32:49 +01:00
@apply left-full;
}
&.uw-menu-right {
@apply right-full;
}
&.uw-menu-left, &.uw-menu-right {
&.uw-menu-top {
@apply top-0;
2025-12-29 11:32:49 +01:00
}
&.uw-menu-ycenter {
top: 50%;
transform: translateY(-50%);
2025-12-29 11:32:49 +01:00
}
&.uw-menu-bottom {
@apply bottom-0;
}
}
&.uw-menu-center {
@apply left-1/2 -translate-x-1/2 flex-row;
&.uw-menu-top {
@apply bottom-0;
}
&.uw-menu-bottom {
@apply top-0;
}
}
* {
@apply font-mono text-stone-200 text-[1em];
}
}
2025-12-29 14:28:00 +01:00
.uw-menu-item, .uw-menu-trigger {
2026-01-02 17:47:42 +01:00
2025-12-29 14:28:00 +01:00
&:hover > .uw-submenu,
&:focus-within > .uw-submenu {
2026-01-02 17:47:42 +01:00
display: flex;
z-index: 200;
2025-12-29 14:28:00 +01:00
opacity: 1 !important;
pointer-events: auto;
}
}
2025-12-29 11:32:49 +01:00
.uw-trigger {
@apply p-4 relative block
bg-stone-950/75 backdrop-blur-[1em] backdrop-brightness-75 backdrop-saturate-50
text-nowrap
;
&:hover {
@apply text-primary-200 bg-stone-800/75;
}
}