mirror of
https://github.com/liubinfighter/csv-lite.git
synced 2026-07-22 12:20:28 +00:00
fix:avoid overwriting core styling, add .csv-lite-table
This commit is contained in:
parent
622c66500a
commit
9edfd3e04c
1 changed files with 20 additions and 25 deletions
45
styles.css
45
styles.css
|
|
@ -8,40 +8,35 @@ If your plugin does not need CSS, delete this file.
|
|||
*/
|
||||
|
||||
/* 表格样式 */
|
||||
table {
|
||||
.csv-lite-table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
table-layout: fixed; /* 使用固定表格布局 */
|
||||
}
|
||||
|
||||
table,
|
||||
td,
|
||||
th {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.csv-lite-table td,
|
||||
.csv-lite-table th {
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: 4px 8px;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
th {
|
||||
}
|
||||
|
||||
.csv-lite-table th {
|
||||
background-color: var(--background-secondary);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
input {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.csv-lite-divider {
|
||||
margin: 2px 0;
|
||||
border: none;
|
||||
width: 100%;
|
||||
resize: none;
|
||||
overflow: hidden;
|
||||
min-height: 24px;
|
||||
line-height: 1.5;
|
||||
padding: 2px 0;
|
||||
}
|
||||
border-top: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.csv-lite-cell-long {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.csv-cell-input {
|
||||
height: auto;
|
||||
}
|
||||
|
|
@ -156,4 +151,4 @@ table {
|
|||
background-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue