File size: 3,031 Bytes
8145bee 1ad1eea 8145bee 1ad1eea 8145bee 1ad1eea 8145bee 1ad1eea 8145bee 1ad1eea 8145bee 1ad1eea 8145bee 1ad1eea 8145bee 1ad1eea 8145bee | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | .assistant-panel {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100%;
background: var(--lp-surface);
color: var(--lp-ink);
border-left: var(--lp-hairline-width) solid var(--lp-line);
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
opacity: 0;
transform: translateX(var(--lp-home-tile-inset));
transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing),
opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing);
}
.assistant-panel[data-state="open"] { opacity: 1; transform: none; }
.assistant-panel[data-state="closed"] { pointer-events: none; }
.assistant-panel-head,
.assistant-panel-composer-foot {
display: flex;
align-items: center;
gap: var(--lp-home-grid-gap);
}
.assistant-panel-head { padding: var(--lp-home-tile-inset); }
.assistant-panel-head h2 {
flex: 1;
margin: 0;
font-size: var(--lp-fs-sm);
font-weight: var(--lp-fw-semibold);
}
/* Only the close control. The composer, send button and chips are the page's, styled by assistant.css. */
.assistant-panel-close {
border: 0;
background: transparent;
font: inherit;
color: inherit;
padding: 0;
cursor: pointer;
display: grid;
place-items: center;
width: var(--lp-home-pagination-control-size);
height: var(--lp-home-pagination-control-size);
border-radius: var(--lp-r-md);
}
.assistant-panel-close svg {
width: var(--lp-home-tile-inset);
height: var(--lp-home-tile-inset);
}
.assistant-panel-close:focus-visible,
.assistant-panel-full:focus-visible {
outline: var(--lp-hairline-width) solid var(--lp-blue-deep);
outline-offset: var(--lp-home-pagination-gap);
}
.assistant-panel-log {
flex: 1;
overflow: auto;
min-height: 0;
padding: var(--lp-home-tile-inset);
}
/* The dock's opening line sits above the page's suggestion chips. */
.assistant-panel .as-opening { padding: var(--lp-content-inset) 0; }
.assistant-panel-opening {
margin: 0 0 var(--lp-home-tile-inset);
font-size: var(--lp-fs-md);
font-weight: var(--lp-fw-semibold);
}
.assistant-panel-status {
margin: 0 0 var(--lp-home-tile-inset);
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
}
/* Placement only. The field, prompt and send button are the page's `.as-field`, `.as-prompt` and `.as-send`. */
.assistant-panel-composer { padding: 0 var(--lp-home-tile-inset) var(--lp-home-tile-inset); }
.assistant-panel-full {
flex: 1;
min-width: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
text-decoration: none;
}
.assistant-panel-problem {
min-height: calc(var(--lp-fs-2xs) * var(--lp-lh));
margin: var(--lp-home-pagination-gap) 0 0;
font-size: var(--lp-fs-2xs);
color: var(--lp-red-deep);
}
@media (hover: hover) and (pointer: fine) {
.assistant-panel-close:hover { background: var(--lp-wash); }
.assistant-panel-full:hover { color: var(--lp-ink); text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
.assistant-panel { transition: none; transform: none; }
}
|