/* Worktree creation card in the composer context stack: the dock column and panel surface of the Goal, Todo, and Queue cards. */ .dock { box-sizing: border-box; width: calc( 100% - var(--dsh-composer-side-clearance) - var(--dsh-composer-side-clearance) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) ); margin: 0 auto; } .card { position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: calc(var(--dsh-composer-card-max-width) - 4 * var(--dsh-composer-dock-inset)); margin: 0 auto; padding: 10px 8px 6px 12px; border: 0; --dsw-elevation-stroke-color: var(--dsw-alias-border-l1); border-radius: var(--dsw-radius-md); box-shadow: var(--dsw-elevation-panel); color: var(--dsw-alias-label-primary); font-size: 13px; line-height: 20px; /* Elevated surface, as the menu background below makes it: the failure text scrolls once it reaches its height cap, so the thumb takes the l2 pair. Declared on the card, whose custom properties inherit down to the box that scrolls (see ui-theme styles/scrollbar.css for the rebinding contract). */ --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2); --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2); } .card::before { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--dsw-specific-menu); backdrop-filter: var(--dsw-menu-backdrop-filter); content: ''; pointer-events: none; } .header { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 4px; } .glyph { flex: none; color: var(--dsw-alias-label-tertiary); } .warning { flex: none; color: var(--dsw-alias-state-warn-primary); } .title { flex: none; font-weight: 500; } .branch, .code { min-width: 0; overflow: hidden; color: var(--dsw-alias-label-tertiary); font-family: var(--ds-font-family-code); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } .steps { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 0 22px; list-style: none; } .step { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--dsw-alias-label-secondary); } .step[data-state='running'] { color: var(--dsw-alias-label-primary); } .step[data-state='failed'] { color: var(--dsw-alias-state-error-primary); } .step svg { flex: none; } .done { color: var(--dsw-alias-state-success-primary); } .failed { color: var(--dsw-alias-state-error-primary); } /* An empty ring for a step that has not started, the size of the step glyphs. */ .waiting { flex: none; box-sizing: border-box; width: 14px; height: 14px; border: 1.5px solid var(--dsw-alias-label-dimmed); border-radius: 50%; corner-shape: round; } .details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 2px 0 0 22px; color: var(--dsw-alias-label-secondary); font-size: 12px; line-height: 18px; } .details dt { color: var(--dsw-alias-label-tertiary); } .details dd { margin: 0; } .message { max-height: 120px; overflow-y: auto; overflow-wrap: anywhere; white-space: pre-wrap; } .footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; } .disclosure { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px; border: 0; border-radius: var(--dsw-radius-sm); background: transparent; color: var(--dsw-alias-label-tertiary); font: inherit; font-size: 12px; cursor: pointer; } .disclosure:focus-visible { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-secondary); } @media (hover: hover) { .disclosure:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-secondary); } } .chevron, .chevronOpen { flex: none; transition: transform 120ms ease; } .chevronOpen { transform: rotate(90deg); } .actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-left: auto; } /* Explanation and restore failure under the header of the removed-worktree card. */ .note, .error { margin: 0 0 0 22px; color: var(--dsw-alias-label-secondary); font-size: 12px; line-height: 18px; } .error { color: var(--dsw-alias-state-error-primary); overflow-wrap: anywhere; }