Files
antigravity-usage-monitor/sidecars/panel/src/styles/views-tables.css
T

88 lines
1.7 KiB
CSS

/*
* 步骤明细与模型汇总数据表样式表 (views-tables.css).
* 包含:
* 1. 表格专属自定义滚动容器修饰 (.table-scroll-host)
* 2. 表格滚动视口 (.table-viewport)
* 3. 粘性表头与紧凑高密度数据表 (.data-table)
*/
/* --- 1. 表格专属滚动容器与视口 (Table Scroll Host & Viewport) --- */
.table-scroll-host {
flex: 1;
min-height: 0;
gap: 4px;
padding-top: 2px;
padding-right: 0;
border: none;
border-top: 1px solid var(--border-hairline);
border-radius: 0;
background: var(--surface-panel);
}
.table-viewport {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
background: var(--surface-panel);
}
/* --- 2. 粘性表头数据表 (Sticky-Header Data Table) --- */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 11px;
}
.data-table th,
.data-table td {
padding: 5px 4px;
text-align: left;
border-bottom: 1px solid var(--border-hairline);
white-space: nowrap;
}
.data-table th:first-child,
.data-table td:first-child {
padding-left: 7px;
}
.data-table th:last-child,
.data-table td:last-child {
text-align: right;
padding-right: 10px;
}
.data-table th {
position: sticky;
top: 0;
z-index: 2;
background: var(--surface-panel);
color: var(--text-secondary);
font-weight: 600;
}
.data-table tbody tr:hover {
background: var(--surface-hover);
}
.steps-header-controls {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.steps-inline-scope-select {
flex: 1 1 120px;
min-width: 120px;
}
.steps-inline-scope-select .select-trigger {
height: 22px;
padding: 0 6px;
font-size: 11px;
border: 1px solid var(--border-hairline);
background: var(--surface-subtle);
}