139 lines
3.0 KiB
CSS
139 lines
3.0 KiB
CSS
.thot-work-area-panel-host {
|
|
position: relative;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
container-name: work-area;
|
|
container-type: inline-size;
|
|
}
|
|
|
|
.thot-work-area-panel {
|
|
position: absolute;
|
|
z-index: 50;
|
|
inset-block: 0.75rem;
|
|
inset-inline-start: 50%;
|
|
inset-inline-end: auto;
|
|
display: flex;
|
|
width: 60%;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
border: 1px solid oklch(var(--border));
|
|
border-radius: 0.75rem;
|
|
color: oklch(var(--card-foreground));
|
|
background-color: oklch(var(--background));
|
|
background-image: none;
|
|
box-shadow:
|
|
0 30px 84px oklch(0.12 0.02 20 / 0.3),
|
|
0 8px 22px oklch(0.12 0.02 20 / 0.18);
|
|
transform: translateX(-50%);
|
|
container-name: work-area-panel;
|
|
container-type: inline-size;
|
|
}
|
|
|
|
.thot-work-area-panel:focus-visible {
|
|
outline: 2px solid oklch(var(--ring));
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.thot-work-area-panel__header {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
padding: 1rem 1rem 0.875rem 1.25rem;
|
|
border-bottom: 1px solid oklch(var(--primary-foreground) / 0.18);
|
|
color: oklch(var(--primary-foreground));
|
|
background-color: oklch(var(--primary));
|
|
background-image: none;
|
|
box-shadow: inset 0 -1px 0 oklch(var(--primary-foreground) / 0.18);
|
|
}
|
|
|
|
.thot-work-area-panel__heading {
|
|
min-width: 0;
|
|
}
|
|
|
|
.thot-work-area-panel__eyebrow {
|
|
margin: 0;
|
|
color: inherit;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.6875rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
line-height: 1.35;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.thot-work-area-panel__title {
|
|
margin: 0.25rem 0 0;
|
|
color: inherit;
|
|
font-family: var(--font-heading);
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
letter-spacing: -0.025em;
|
|
line-height: 1.18;
|
|
}
|
|
|
|
.thot-work-area-panel__description {
|
|
max-width: 68ch;
|
|
margin: 0.45rem 0 0;
|
|
color: inherit;
|
|
font-size: 0.875rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.thot-work-area-panel__close {
|
|
flex: none;
|
|
border-color: oklch(var(--primary-foreground) / 0.22);
|
|
color: inherit;
|
|
background: oklch(var(--primary-foreground) / 0.1);
|
|
}
|
|
|
|
.thot-work-area-panel__close:hover {
|
|
color: inherit;
|
|
background: oklch(var(--primary-foreground) / 0.18);
|
|
}
|
|
|
|
.thot-work-area-panel__body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 1.25rem;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.thot-work-area-panel__body--empty {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.thot-work-area-panel__body--flush {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
.thot-work-area-panel__footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding: 0.875rem 1.25rem;
|
|
border-top: 1px solid oklch(var(--border));
|
|
background: oklch(var(--muted) / 0.32);
|
|
}
|
|
|
|
.thot-work-area-panel__footer--split {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
@container work-area (max-width: 47.999rem) {
|
|
.thot-work-area-panel {
|
|
inset-block: 0.5rem;
|
|
width: calc(100% - 1rem);
|
|
}
|
|
}
|