/* * Palette lives here rather than in the markup so the blocks and containers lists, which share * these class names, stay identical apart from their accent. */ .blocks-list-root { display: flex; flex-direction: column; height: 100%; min-height: 0; } .blocks-list-loading { display: flex; align-items: center; justify-content: center; height: 8rem; } .blocks-list-search { width: 100%; padding: 8px 0; } .blocks-list-search mat-form-field { width: 100%; } .blocks-list-empty { padding-top: 2.5rem; color: #94a3b8; text-align: center; } .blocks-list-items { display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 0; padding-bottom: 12px; overflow-y: auto; } /* Flat by default: a palette you drag from should not compete with the canvas. */ .blocks-list-card { padding: 7px 8px; border: 1px solid #e2e8f0; border-left: 3px solid #cbd5e1; border-radius: 6px; background: #ffffff; box-shadow: none; /* The whole card is the drag source, so say so. */ cursor: grab; transition: background-color 0.12s ease, border-color 0.12s ease; } .blocks-list-card:hover { border-color: #cbd5e1; background: #f8fafc; } .blocks-list-card:active { cursor: grabbing; } .blocks-list-card--container { border-left-color: #a78bfa; } .blocks-list-card-row { display: flex; align-items: center; gap: 6px; min-width: 0; } .blocks-list-card-kind { flex: 0 0 auto; font-size: 16px; width: 16px; height: 16px; line-height: 16px; color: #94a3b8; } .blocks-list-card-kind--interactive { color: #0ea5e9; } .blocks-list-card-kind--container { color: #7c3aed; } .blocks-list-card-meta { flex: 1 1 auto; min-width: 0; } .blocks-list-card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: #0f172a; } .blocks-list-card-sub { font-size: 11px; color: #64748b; } .blocks-list-card-info { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: none; border-radius: 999px; background: transparent; color: #cbd5e1; cursor: help; } .blocks-list-card:hover .blocks-list-card-info { color: #64748b; } .blocks-list-card-info--open { background: #e2e8f0; color: #334155; } .blocks-list-card-info .mat-icon { font-size: 16px; width: 16px; height: 16px; line-height: 16px; } /* Expanded in place: these descriptions run to several hundred characters. */ .blocks-list-card-copy { margin: 6px 0 2px; padding-top: 6px; border-top: 1px dashed #e2e8f0; font-size: 11.5px; line-height: 1.45; color: #475569; cursor: text; }