97 lines
2.0 KiB
CSS

.hux-workspace-toggle {
background: color-mix(in srgb, var(--bg-primary, #0a101b) 88%, #174653);
border: 1px solid rgb(94 231 215 / 45%);
border-radius: 999px;
bottom: max(5.8rem, calc(env(safe-area-inset-bottom) + 4.5rem));
box-shadow: 0 10px 32px rgb(0 0 0 / 32%);
color: var(--text-primary, #e7eef6);
cursor: pointer;
font: inherit;
padding: 0.55rem 0.9rem;
position: fixed;
right: max(1rem, env(safe-area-inset-right));
z-index: 115;
}
.hux-workspace-drawer {
background: color-mix(in srgb, var(--bg-primary, #0a101b) 97%, #102f3a);
border-left: 1px solid rgb(118 181 193 / 30%);
bottom: 0;
box-shadow: -18px 0 48px rgb(0 0 0 / 34%);
color: var(--text-primary, #e7eef6);
max-width: 100%;
overflow: auto;
position: fixed;
right: 0;
top: 0;
width: min(42rem, 94vw);
z-index: 160;
}
.hux-workspace-drawer[hidden] {
display: none !important;
}
.hux-workspace-drawer__header {
align-items: center;
backdrop-filter: blur(12px);
background: rgb(10 16 27 / 88%);
border-bottom: 1px solid rgb(118 181 193 / 24%);
display: flex;
justify-content: space-between;
padding: 0.8rem 1rem;
position: sticky;
top: 0;
z-index: 1;
}
.hux-workspace-drawer__header h2 {
font-size: 0.92rem;
margin: 0;
}
.hux-workspace-drawer__header button {
background: transparent;
border: 1px solid rgb(118 181 193 / 30%);
border-radius: 999px;
color: inherit;
cursor: pointer;
font: inherit;
padding: 0.4rem 0.7rem;
}
.hux-workspace-drawer__content {
display: grid;
gap: 0.8rem;
padding: 0.8rem;
}
.hux-workspace-wave {
min-width: 0;
}
.hux-workspace-toggle:focus-visible,
.hux-workspace-drawer button:focus-visible {
outline: 2px solid #5ee7d7;
outline-offset: 2px;
}
@media (max-width: 640px) {
.hux-workspace-drawer {
width: 100%;
}
}
@media (prefers-reduced-motion: no-preference) {
.hux-workspace-toggle {
transition: background-color 120ms ease, border-color 120ms ease;
}
}
@media (forced-colors: active) {
.hux-workspace-drawer,
.hux-workspace-toggle {
border-color: CanvasText;
}
}