9 directories, 58 files

tinai

Home / tinai
.div-chat-scratchpad-buttons {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--BG-panel);
    margin: calc(-1 * var(--DM-margin-h)) calc(-1 * var(--DM-margin-h)) var(--DM-margin-h) calc(-1 * var(--DM-margin-h));
    padding: var(--DM-margin-q) var(--DM-margin-h);
}

/* Extend over the drawer grip area so the sticky bar spans the full scroll
   width; matching padding keeps the buttons aligned as without the grip */
.div-structure-chat-container.side-drawer-active .div-chat-scratchpad-buttons {
    margin-left: calc(-1 * (var(--side-drawer-grip-size) + var(--DM-margin-h)));
    padding-left: calc(var(--side-drawer-grip-size) + var(--DM-margin-h));
}

/* Scratchpads are document-like: top-align the content so the sticky bar
   sits at the top of the scroll area even when the content is shorter than
   the viewport (chat mode keeps its bottom-aligned 1fr auto layout) */
.div-chat-container-scroll:has(.div-chat-scratchpad-buttons) .simplebar-content {
    grid-template-rows: auto 1fr;
}
.div-scratchpad-toc {
    display: flex;
    flex-direction: column;
    gap: var(--DM-margin-q);
}

.div-scratchpad-toc-title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 8pt;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* Two-class specificity: the generic .div-structure-chat-container button
   rule (height: 24pt, uppercase, ...) would otherwise clamp these entries. */
.div-side-drawer .div-scratchpad-toc-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-shrink: 0;
    height: auto;
    min-height: 0;
    text-align: left;
    text-transform: none;
    line-height: 1.3;
    cursor: pointer;
    border: 1pt solid var(--BD-panel);
    border-radius: var(--DM-margin-q);
    background-color: var(--BG-panel);
    padding: var(--DM-margin-q);
}

.div-scratchpad-toc-entry:hover {
    background-color: var(--BG-panel2);
    box-shadow: 0 0 6px var(--BD-panel);
}

.span-scratchpad-toc-title {
    font-weight: bold;
}

.span-scratchpad-toc-description {
    font-size: 8pt;
    opacity: 0.7;
}

.div-scratchpad-toc-entry.toc-entry-orphan {
    opacity: 0.45;
    cursor: default;
}

/* Scratchpad edit flash, mirroring the document editor's highlight-fade
   (the keyframes live once in document.css). */
.scratchpad-item-flash {
    animation: item-flash 3s ease-out forwards;
}

/* Scratchpad context override of the shared side-drawer chrome (base and
   drawer variables in shared.css): reserves the grip track in the chat
   container */
.div-structure-chat-container.side-drawer-active {
    position: relative;
    overflow: hidden;
}

.div-structure-chat-container.side-drawer-active .div-chat-container {
    padding-left: calc(var(--side-drawer-grip-size) + var(--DM-margin-h));
}

/* Pinned open: the content clears the docked drawer while the sticky
   toolbar stays full width; margin (not padding) so backgrounds and
   dividers move with their blocks */
.div-structure-chat-container.side-drawer-active:has(.div-side-drawer.pinned.side-open) #id-div-response-render > :not(.div-chat-scratchpad-buttons) {
    margin-left: var(--side-drawer-width);
}
🌐
scratchpad.css ×
Type: Web, text/plain
3.12 Kilobytes
Last Modified 2026-11-04 09:48:28
⬇ Download File