37 lines
1.1 KiB
CSS
37 lines
1.1 KiB
CSS
/* ========== Dataview 表格专用样式 ========== */
|
|
/* 针对 block-language-dataview 和 table-view-table */
|
|
|
|
.block-language-dataview table,
|
|
table.table-view-table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.block-language-dataview thead th,
|
|
table.table-view-table thead th {
|
|
padding: 8px 12px !important;
|
|
font-weight: 600;
|
|
background-color: var(--background-modifier-border) !important;
|
|
border-bottom: 2px solid var(--background-modifier-border-focus);
|
|
}
|
|
|
|
.block-language-dataview tbody tr:nth-child(odd),
|
|
table.table-view-table tbody tr:nth-child(odd) {
|
|
background-color: var(--background-primary);
|
|
}
|
|
|
|
.block-language-dataview tbody tr:nth-child(even),
|
|
table.table-view-table tbody tr:nth-child(even) {
|
|
background-color: var(--background-secondary) !important;
|
|
}
|
|
|
|
.block-language-dataview tbody tr:hover td,
|
|
table.table-view-table tbody tr:hover td {
|
|
background-color: var(--background-modifier-hover) !important;
|
|
}
|
|
|
|
.block-language-dataview td,
|
|
table.table-view-table td {
|
|
padding: 6px 12px !important;
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|