railly_agentfiles/styles.css

1576 lines
27 KiB
CSS

.workspace-leaf-content[data-type="agentfiles-view"] .view-header {
display: none;
}
.workspace-leaf-content[data-type="agentfiles-view"] .view-content {
padding: 0 !important;
height: 100%;
}
.as-hidden {
display: none !important;
}
.as-container {
display: grid;
grid-template-columns: 200px 280px 1fr;
height: 100%;
overflow: hidden;
}
.as-panel {
overflow-y: auto;
height: 100%;
}
.as-panel-sidebar {
border-right: 1px solid var(--background-modifier-border);
padding: 8px 0;
}
.as-panel-list {
border-right: 1px solid var(--background-modifier-border);
}
.as-panel-detail {
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Sidebar */
.as-sidebar-section {
margin-bottom: 8px;
}
.as-sidebar-title {
font-size: var(--font-smallest);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
padding: 4px 16px;
margin-bottom: 2px;
}
.as-sidebar-item {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 16px;
cursor: pointer;
font-size: var(--font-ui-small);
color: var(--text-normal);
border-radius: var(--radius-s);
margin: 0 4px;
}
.as-sidebar-item:hover {
background: var(--background-modifier-hover);
}
.as-sidebar-item.is-active {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
.as-sidebar-item.is-active .as-sidebar-icon {
color: var(--text-on-accent);
}
.as-sidebar-item.is-active .as-sidebar-count {
color: var(--text-on-accent);
opacity: 0.8;
}
.as-sidebar-icon {
display: flex;
align-items: center;
color: var(--text-muted);
width: 16px;
height: 16px;
}
.as-sidebar-icon svg {
width: 14px;
height: 14px;
}
.as-sidebar-label {
flex: 1;
}
.as-sidebar-count {
font-size: var(--font-smallest);
color: var(--text-faint);
min-width: 20px;
text-align: right;
}
.as-sidebar-empty {
font-size: var(--font-smallest);
color: var(--text-faint);
padding: 4px 16px;
font-style: italic;
}
/* Search */
.as-search {
padding: 8px;
border-bottom: 1px solid var(--background-modifier-border);
}
.as-search-input {
width: 100%;
padding: 6px 10px;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
background: var(--background-primary);
color: var(--text-normal);
font-size: var(--font-ui-small);
outline: none;
}
.as-search-input:focus {
border-color: var(--interactive-accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--interactive-accent) 25%, transparent);
}
/* List */
.as-list-items {
padding: 4px;
}
.as-list-empty {
padding: 24px 16px;
text-align: center;
color: var(--text-faint);
font-size: var(--font-ui-small);
}
.as-skill-card {
padding: 8px 12px;
border-radius: var(--radius-s);
cursor: pointer;
margin-bottom: 2px;
}
.as-skill-card:hover {
background: var(--background-modifier-hover);
}
.as-skill-card.is-selected {
background: var(--background-modifier-active-hover);
}
.as-skill-header {
display: flex;
align-items: center;
gap: 4px;
}
.as-skill-name {
font-size: var(--font-ui-small);
font-weight: 500;
color: var(--text-normal);
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.as-skill-star {
color: var(--color-yellow);
display: flex;
align-items: center;
}
.as-skill-star svg {
width: 12px;
height: 12px;
}
.as-skill-desc {
font-size: var(--font-smallest);
color: var(--text-muted);
margin-top: 2px;
line-height: 1.4;
}
.as-skill-meta {
display: flex;
align-items: center;
gap: 4px;
margin-top: 4px;
}
.as-type-tag {
font-size: 10px;
padding: 1px 6px;
border-radius: var(--radius-s);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.03em;
background: var(--background-modifier-hover);
color: var(--text-muted);
border: 1px solid var(--background-modifier-border);
}
.as-tool-badge {
display: inline-flex;
align-items: center;
justify-content: center;
}
.as-tool-badge-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--tool-color);
}
.as-tool-badge {
color: var(--tool-color);
}
.as-tool-svg {
display: block;
}
.as-tool-name-badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: var(--font-ui-smaller);
padding: 2px 8px;
border: 1px solid var(--tool-color);
border-radius: 10px;
font-weight: 500;
white-space: nowrap;
color: var(--tool-color);
flex-shrink: 0;
}
/* Detail — toolbar */
.as-detail {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.as-detail-toolbar {
padding: 10px 16px 8px;
border-bottom: 1px solid var(--background-modifier-border);
flex-shrink: 0;
}
.as-toolbar-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.as-toolbar-left {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1;
}
.as-detail-title {
font-size: var(--font-ui-medium);
font-weight: 600;
color: var(--text-normal);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.as-toolbar-right {
display: flex;
gap: 4px;
flex-shrink: 0;
}
.as-toolbar-btn {
background: none;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
padding: 4px 8px;
cursor: pointer;
color: var(--text-muted);
display: flex;
align-items: center;
}
.as-toolbar-btn:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.as-toolbar-btn svg {
width: 14px;
height: 14px;
}
.as-detail-meta-bar {
display: flex;
gap: 8px;
margin-top: 6px;
flex-wrap: wrap;
}
.as-meta-item {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
background: var(--background-secondary);
padding: 2px 8px;
border-radius: var(--radius-s);
}
.as-meta-type {
text-transform: uppercase;
letter-spacing: 0.03em;
font-weight: 500;
}
/* Detail — empty */
.as-detail-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
color: var(--text-faint);
gap: 8px;
font-size: var(--font-ui-small);
}
.as-detail-empty-icon svg {
width: 48px;
height: 48px;
opacity: 0.3;
}
/* Detail — frontmatter */
.as-frontmatter {
border-bottom: 1px solid var(--background-modifier-border);
padding: 12px 20px;
display: flex;
flex-direction: column;
gap: 6px;
background: var(--background-secondary);
}
.as-fm-prop {
display: flex;
align-items: baseline;
gap: 8px;
line-height: 1.5;
}
.as-fm-key {
color: var(--text-faint);
font-weight: 500;
white-space: nowrap;
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
min-width: 80px;
}
.as-fm-key::after {
content: ":";
}
.as-fm-value {
color: var(--text-normal);
font-size: var(--font-ui-small);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.as-fm-value-long {
color: var(--text-normal);
font-size: var(--font-ui-small);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Detail — body / preview */
.as-detail-body {
flex: 1;
overflow-y: auto;
min-height: 0;
}
.as-detail-preview {
padding: 12px 20px;
}
.as-detail-preview pre {
background: var(--code-background);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
padding: 12px 16px;
overflow-x: auto;
position: relative;
}
.as-detail-preview pre code {
font-family: var(--font-monospace);
font-size: var(--code-size);
color: var(--code-normal);
background: none;
padding: 0;
border-radius: 0;
}
.as-detail-preview code {
font-family: var(--font-monospace);
font-size: var(--code-size);
color: var(--code-normal);
background: var(--code-background);
padding: 2px 4px;
border-radius: var(--radius-s);
}
.as-detail-preview .copy-code-button {
position: absolute;
top: 6px;
right: 6px;
padding: 4px 8px;
font-size: var(--font-smallest);
background: var(--background-modifier-hover);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
color: var(--text-muted);
cursor: pointer;
opacity: 0;
transition: opacity 0.15s;
}
.as-detail-preview pre:hover .copy-code-button {
opacity: 1;
}
/* Detail — editor */
.as-detail-body-editor {
display: flex;
flex-direction: column;
}
.as-editor-textarea {
flex: 1;
width: 100%;
padding: 12px 20px;
background: var(--background-primary);
color: var(--text-normal);
border: none;
resize: none;
font-family: var(--font-monospace);
font-size: var(--font-ui-small);
line-height: 1.6;
outline: none;
tab-size: 2;
min-height: 0;
}
.as-save-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 16px;
border-top: 1px solid var(--background-modifier-border);
background: var(--background-secondary);
flex-shrink: 0;
}
.as-save-btn {
padding: 4px 16px;
border-radius: var(--radius-s);
background: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
cursor: pointer;
font-size: var(--font-ui-small);
font-weight: 500;
}
.as-save-btn:hover {
opacity: 0.9;
}
.as-save-hint {
font-size: var(--font-smallest);
color: var(--text-faint);
}
/* Skillkit usage badges */
.as-usage-badge {
font-size: 10px;
padding: 1px 5px;
border-radius: var(--radius-s);
background: var(--interactive-accent);
color: var(--text-on-accent);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.as-badge-stale {
font-size: 10px;
padding: 1px 5px;
border-radius: var(--radius-s);
background: var(--background-modifier-error);
color: var(--text-on-accent);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.as-badge-heavy {
font-size: 10px;
padding: 1px 5px;
border-radius: var(--radius-s);
background: var(--color-yellow);
color: var(--background-primary);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* Detail usage bar */
.as-detail-usage-bar {
display: flex;
gap: 8px;
margin-top: 4px;
align-items: center;
}
.as-usage-stat {
font-size: var(--font-ui-smaller);
color: var(--text-accent);
font-weight: 500;
}
/* Skillkit CTA */
.as-skillkit-cta {
margin: 8px 8px 0;
padding: 10px 12px;
border-radius: var(--radius-s);
border: 1px dashed var(--background-modifier-border);
background: var(--background-secondary);
}
.as-skillkit-icon {
color: var(--text-faint);
margin-bottom: 4px;
}
.as-skillkit-icon svg {
width: 16px;
height: 16px;
}
.as-skillkit-title {
font-size: var(--font-ui-small);
font-weight: 600;
color: var(--text-normal);
margin-bottom: 2px;
}
.as-skillkit-desc {
font-size: var(--font-smallest);
color: var(--text-muted);
line-height: 1.4;
margin-bottom: 6px;
}
.as-skillkit-cmd {
margin-bottom: 4px;
}
.as-skillkit-cmd code {
font-size: var(--font-smallest);
font-family: var(--font-monospace);
background: var(--code-background);
padding: 2px 6px;
border-radius: var(--radius-s);
color: var(--code-normal);
}
.as-skillkit-link {
font-size: var(--font-smallest);
color: var(--text-accent);
cursor: pointer;
text-decoration: none;
}
.as-skillkit-link:hover {
text-decoration: underline;
}
/* Dashboard panel */
.as-panel-dashboard {
grid-column: 2 / -1;
overflow-y: auto;
padding: 12px 28px 20px;
container-type: inline-size;
}
.as-dash-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80px 0;
gap: 12px;
}
.as-dash-spinner {
width: 24px;
height: 24px;
border: 2px solid var(--background-modifier-border);
border-top-color: var(--interactive-accent);
border-radius: 50%;
animation: as-spin 0.6s linear infinite;
}
@keyframes as-spin {
to { transform: rotate(360deg); }
}
.as-dash-loading-text {
font-size: var(--font-ui-small);
color: var(--text-muted);
}
.as-dash-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
text-align: center;
color: var(--text-muted);
}
.as-dash-empty-icon svg {
width: 48px;
height: 48px;
opacity: 0.3;
margin-bottom: 12px;
}
.as-dash-empty h3 {
margin: 0 0 4px;
color: var(--text-normal);
}
.as-dash-empty p {
margin: 0 0 12px;
font-size: var(--font-ui-small);
}
.as-dash-install-cmd {
margin-bottom: 8px;
}
.as-dash-install-cmd code {
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
background: var(--code-background);
padding: 4px 10px;
border-radius: var(--radius-s);
}
/* Dashboard layout */
.as-dash-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
@container (max-width: 600px) {
.as-dash-row {
grid-template-columns: 1fr;
}
.as-dash-stats {
grid-template-columns: repeat(2, 1fr) !important;
}
}
/* Dashboard sections */
.as-dash-section {
margin-bottom: 24px;
}
.as-dash-title {
font-size: var(--font-ui-small);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 10px;
}
/* Stat cards */
.as-dash-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.as-dash-stats-sm {
grid-template-columns: repeat(4, 1fr);
}
.as-stat-card {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
padding: 12px;
text-align: center;
}
.as-stat-icon {
color: var(--text-faint);
margin-bottom: 4px;
}
.as-stat-icon svg {
width: 16px;
height: 16px;
}
.as-stat-value {
font-size: 20px;
font-weight: 700;
color: var(--text-normal);
font-variant-numeric: tabular-nums;
}
.as-stat-label {
font-size: var(--font-smallest);
color: var(--text-muted);
margin-top: 2px;
}
/* Bar chart */
.as-dash-bars {
display: flex;
flex-direction: column;
gap: 4px;
}
.as-bar-row {
display: flex;
align-items: center;
gap: 8px;
}
.as-bar-name {
font-size: var(--font-ui-smaller);
color: var(--text-normal);
width: 140px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-monospace);
}
.as-bar-wrap {
flex: 1;
height: 16px;
background: var(--background-secondary);
border-radius: var(--radius-s);
overflow: hidden;
}
.as-bar-fill {
height: 100%;
width: var(--bar-w, 0%);
background: var(--interactive-accent);
border-radius: var(--radius-s);
min-width: 2px;
transition: width 0.3s;
}
.as-bar-count {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
width: 32px;
text-align: right;
font-variant-numeric: tabular-nums;
}
/* Health donut */
.as-dash-health-row {
display: flex;
gap: 20px;
align-items: center;
}
.as-donut {
width: 80px;
height: 80px;
border-radius: 50%;
background: conic-gradient(
var(--interactive-accent) calc(var(--pct) * 1%),
var(--background-modifier-border) calc(var(--pct) * 1%)
);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
flex-shrink: 0;
}
.as-donut::before {
content: "";
position: absolute;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--background-primary);
}
.as-donut-label {
font-size: 16px;
font-weight: 700;
color: var(--text-normal);
position: relative;
z-index: 1;
}
.as-donut-sub {
font-size: var(--font-smallest);
color: var(--text-muted);
position: relative;
z-index: 1;
}
.as-health-details {
flex: 1;
}
.as-health-line {
font-size: var(--font-ui-small);
color: var(--text-normal);
margin-bottom: 4px;
}
.as-health-warn {
color: var(--text-error);
}
.as-budget-bar {
height: 6px;
background: var(--background-modifier-border);
border-radius: 3px;
overflow: hidden;
margin: 6px 0;
}
.as-budget-fill {
height: 100%;
width: var(--bar-w, 0%);
background: var(--interactive-accent);
border-radius: 3px;
transition: width 0.3s;
}
.as-budget-over {
background: var(--text-error);
}
/* Burn chart */
.as-burn-chart {
display: flex;
align-items: flex-end;
gap: 4px;
height: 100px;
margin-top: 12px;
}
.as-burn-col {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
justify-content: flex-end;
}
.as-burn-bar {
width: 100%;
height: var(--bar-h, 2%);
background: var(--interactive-accent);
border-radius: 2px 2px 0 0;
min-height: 2px;
transition: height 0.3s;
cursor: default;
}
.as-burn-date {
font-size: 9px;
color: var(--text-faint);
margin-top: 4px;
}
/* Model breakdown */
.as-model-breakdown {
margin-top: 10px;
display: flex;
flex-direction: column;
gap: 4px;
}
.as-model-row {
display: flex;
align-items: center;
gap: 8px;
font-size: var(--font-ui-smaller);
}
.as-model-name {
color: var(--text-normal);
font-family: var(--font-monospace);
flex: 1;
}
.as-model-calls {
color: var(--text-muted);
}
.as-model-cost {
color: var(--text-accent);
font-weight: 500;
}
/* Context tax */
.as-ctx-bar {
display: flex;
height: 20px;
border-radius: var(--radius-s);
overflow: hidden;
margin-bottom: 8px;
}
.as-ctx-part {
height: 100%;
width: var(--bar-w, 0%);
cursor: default;
}
.as-ctx-claude { background: var(--interactive-accent); }
.as-ctx-skills { background: var(--color-yellow); }
.as-ctx-memory { background: var(--color-green); }
.as-ctx-legend {
display: flex;
gap: 16px;
margin-bottom: 10px;
}
.as-ctx-legend-item {
display: flex;
align-items: center;
gap: 4px;
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.as-ctx-dot {
width: 8px;
height: 8px;
border-radius: 2px;
display: inline-block;
}
.as-ctx-costs {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.as-ctx-costs div {
margin-bottom: 2px;
}
.as-ctx-savings {
color: var(--color-green);
font-weight: 500;
}
/* Stale list */
.as-stale-list {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.as-stale-item {
font-size: var(--font-ui-smaller);
padding: 2px 8px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
color: var(--text-muted);
}
.as-stale-more {
font-size: var(--font-ui-smaller);
color: var(--text-faint);
padding: 2px 8px;
}
.as-stale-hint {
margin-top: 8px;
font-size: var(--font-ui-smaller);
color: var(--text-faint);
}
.as-stale-hint code {
font-family: var(--font-monospace);
background: var(--code-background);
padding: 1px 4px;
border-radius: var(--radius-s);
}
/* Warning and conflict badges */
.as-badge-warn {
font-size: 10px;
padding: 1px 5px;
border-radius: var(--radius-s);
background: var(--color-orange);
color: var(--background-primary);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.as-badge-conflict {
font-size: 10px;
padding: 1px 5px;
border-radius: var(--radius-s);
background: var(--background-modifier-error);
color: var(--text-on-accent);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* Detail: warnings section */
.as-warnings {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 20px;
border-bottom: 1px solid var(--background-modifier-border);
}
.as-warnings-icon {
color: var(--color-orange);
flex-shrink: 0;
}
.as-warnings-icon svg {
width: 12px;
height: 12px;
}
.as-warnings-list {
display: flex;
flex-wrap: wrap;
gap: 4px 12px;
}
.as-warnings-item {
font-size: var(--font-smallest);
color: var(--color-orange);
}
/* Detail: usage section */
.as-usage-section {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 20px;
border-bottom: 1px solid var(--background-modifier-border);
}
.as-usage-left {
display: flex;
align-items: baseline;
gap: 6px;
}
.as-usage-count {
font-size: 20px;
font-weight: 700;
color: var(--text-normal);
}
.as-usage-label {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.as-usage-last {
font-size: var(--font-ui-smaller);
color: var(--text-faint);
}
.as-usage-spark {
color: var(--interactive-accent);
}
.as-sparkline {
display: block;
}
/* Detail: section titles */
.as-section-title {
font-size: var(--font-smallest);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 6px;
}
/* Detail: conflicts section */
.as-conflicts-section {
padding: 10px 20px;
border-bottom: 1px solid var(--background-modifier-border);
}
.as-conflict-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.as-conflict-name {
font-size: var(--font-ui-smaller);
color: var(--text-normal);
font-family: var(--font-monospace);
width: 140px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.as-conflict-bar-wrap {
flex: 1;
height: 6px;
background: var(--background-modifier-border);
border-radius: 3px;
overflow: hidden;
}
.as-conflict-bar {
height: 100%;
width: var(--bar-w, 0%);
background: var(--background-modifier-error);
border-radius: 3px;
}
.as-conflict-score {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
width: 32px;
text-align: right;
}
/* Detail: traces section */
.as-traces-section {
padding: 10px 20px;
border-bottom: 1px solid var(--background-modifier-border);
}
.as-traces-table {
display: flex;
flex-direction: column;
gap: 2px;
}
.as-trace-row {
display: flex;
align-items: center;
gap: 8px;
font-size: var(--font-ui-smaller);
}
.as-trace-date {
color: var(--text-muted);
width: 50px;
}
.as-trace-model {
color: var(--text-normal);
font-family: var(--font-monospace);
width: 60px;
overflow: hidden;
text-overflow: ellipsis;
}
.as-trace-tokens {
color: var(--text-muted);
width: 40px;
text-align: right;
}
.as-trace-cost {
color: var(--text-accent);
width: 50px;
text-align: right;
}
.as-trace-duration {
color: var(--text-faint);
width: 40px;
text-align: right;
}
.as-traces-hint {
font-size: var(--font-smallest);
color: var(--text-faint);
font-family: var(--font-monospace);
margin-top: 6px;
}
/* Detail: prune action */
.as-prune-section {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 20px;
background: color-mix(in srgb, var(--background-modifier-error) 10%, transparent);
border-bottom: 1px solid var(--background-modifier-border);
}
.as-prune-btn {
padding: 4px 12px;
border-radius: var(--radius-s);
background: var(--background-modifier-error);
color: var(--text-on-accent);
border: none;
cursor: pointer;
font-size: var(--font-ui-smaller);
font-weight: 500;
}
.as-prune-btn:hover {
opacity: 0.9;
}
.as-prune-hint {
font-size: var(--font-smallest);
color: var(--text-faint);
}
/* Dashboard: action buttons */
.as-dash-title-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.as-dash-title-row .as-dash-title {
margin-bottom: 0;
}
.as-action-btn {
padding: 4px 12px;
border-radius: var(--radius-s);
background: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
cursor: pointer;
font-size: var(--font-ui-smaller);
font-weight: 500;
}
.as-action-btn:hover {
opacity: 0.9;
}
.as-action-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.as-toolbar-btn-danger:hover {
color: var(--text-error);
border-color: var(--text-error);
}
.as-action-btn-danger {
background: var(--background-modifier-error);
}
/* Marketplace */
.as-panel-marketplace {
grid-column: 2 / -1;
overflow: hidden;
display: flex;
flex-direction: column;
}
.as-mp-search {
padding: 12px 16px;
border-bottom: 1px solid var(--background-modifier-border);
flex-shrink: 0;
}
.as-mp-search-input {
width: 100%;
padding: 8px 12px;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
background: var(--background-primary);
color: var(--text-normal);
font-size: var(--font-ui-small);
outline: none;
}
.as-mp-search-input:focus {
border-color: var(--interactive-accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--interactive-accent) 25%, transparent);
}
.as-mp-body {
display: grid;
grid-template-columns: 280px 1fr;
flex: 1;
overflow: hidden;
}
.as-mp-list {
overflow-y: auto;
border-right: 1px solid var(--background-modifier-border);
padding: 4px;
}
.as-mp-preview {
overflow-y: auto;
padding: 16px 24px;
}
.as-mp-hint {
padding: 24px 16px;
text-align: center;
color: var(--text-faint);
font-size: var(--font-ui-small);
}
.as-mp-loading {
padding: 16px;
text-align: center;
color: var(--text-muted);
font-size: var(--font-ui-small);
}
/* Marketplace cards */
.as-mp-card {
padding: 8px 12px;
border-radius: var(--radius-s);
cursor: pointer;
margin-bottom: 2px;
}
.as-mp-card:hover {
background: var(--background-modifier-hover);
}
.as-mp-card.is-selected {
background: var(--background-modifier-active-hover);
}
.as-mp-card-header {
display: flex;
align-items: center;
gap: 6px;
}
.as-mp-card-name {
font-size: var(--font-ui-small);
font-weight: 500;
color: var(--text-normal);
flex: 1;
}
.as-mp-installed-badge {
font-size: 10px;
padding: 1px 6px;
border-radius: var(--radius-s);
background: var(--color-green);
color: var(--background-primary);
font-weight: 500;
}
.as-mp-card-source {
font-size: var(--font-smallest);
color: var(--text-faint);
font-family: var(--font-monospace);
margin-top: 2px;
}
.as-mp-card-meta {
display: flex;
align-items: center;
gap: 4px;
margin-top: 4px;
}
.as-mp-dl-icon {
color: var(--text-faint);
display: flex;
align-items: center;
}
.as-mp-dl-icon svg {
width: 12px;
height: 12px;
}
.as-mp-card-installs {
font-size: var(--font-smallest);
color: var(--text-muted);
}
/* Marketplace preview */
.as-mp-preview-header {
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--background-modifier-border);
}
.as-mp-preview-name {
font-size: var(--font-ui-medium);
font-weight: 600;
color: var(--text-normal);
}
.as-mp-preview-source {
font-size: var(--font-ui-smaller);
color: var(--text-faint);
font-family: var(--font-monospace);
margin-top: 2px;
}
.as-mp-preview-stats {
display: flex;
align-items: center;
gap: 4px;
margin-top: 6px;
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.as-mp-installed-label {
font-size: var(--font-ui-smaller);
color: var(--color-green);
font-weight: 500;
margin-top: 8px;
}
.as-mp-install-row {
margin-top: 8px;
}
.as-mp-install-btn {
padding: 6px 20px;
border-radius: var(--radius-s);
background: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
cursor: pointer;
font-size: var(--font-ui-small);
font-weight: 500;
}
.as-mp-install-btn:hover {
opacity: 0.9;
}
.as-mp-install-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.as-mp-rendered {
font-size: var(--font-ui-small);
}
.as-mp-preview-content pre {
background: var(--code-background);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
padding: 12px 16px;
overflow-x: auto;
}
.as-mp-preview-content code {
font-family: var(--font-monospace);
font-size: var(--code-size);
}
.as-mp-section-title {
font-size: var(--font-smallest);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
padding: 8px 12px 4px;
}
/* Install modal */
.as-install-modal h3 {
margin: 0 0 4px;
}
.as-install-source {
font-size: var(--font-ui-smaller);
color: var(--text-faint);
font-family: var(--font-monospace);
margin: 0 0 12px;
}
.as-mp-install-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
}
.as-mp-uninstall-btn {
padding: 4px 12px;
border-radius: var(--radius-s);
background: none;
border: 1px solid var(--background-modifier-border);
color: var(--text-muted);
cursor: pointer;
font-size: var(--font-ui-smaller);
}
.as-mp-uninstall-btn:hover {
color: var(--text-error);
border-color: var(--text-error);
}
.as-mp-uninstall-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}