This commit is contained in:
fantasticit 2022-12-21 16:54:11 +08:00
parent c6abfab7c8
commit b0e32f0c94
1 changed files with 235 additions and 232 deletions

View File

@ -1,12 +1,14 @@
/* stylelint-disable */
$tableBorderColor: var(--semi-color-border);
$tableHeaderBgColor: var(--semi-color-fill-0);
$tableSelectedBorderColor: rgb(0 101 255);
$tableSelectedCellBgColor: transparent;
$tableSelectedControlBgColor: #2584ff;
$tableResizeHandleBgColor: #adf;
.tableWrapper {
.ProseMirror {
$tableBorderColor: var(--semi-color-border);
$tableHeaderBgColor: var(--semi-color-fill-0);
$tableSelectedBorderColor: rgb(0 101 255);
$tableSelectedCellBgColor: transparent;
$tableSelectedControlBgColor: #2584ff;
$tableResizeHandleBgColor: #adf;
.tableWrapper {
position: relative;
margin: 0.5em 0px;
@ -15,9 +17,9 @@ $tableResizeHandleBgColor: #adf;
margin-top: -20px;
}
}
}
}
.scrollWrapper {
.scrollWrapper {
overflow-y: hidden;
overflow-x: auto;
padding-left: 28px;
@ -30,9 +32,9 @@ $tableResizeHandleBgColor: #adf;
border-right: 1px solid transparent;
-webkit-transition: border 250ms ease-in-out 0s;
transition: border 250ms ease-in-out 0s;
}
}
table {
table {
width: 100%;
border-collapse: collapse;
border-radius: 4px;
@ -267,9 +269,9 @@ table {
border-color: $tableSelectedBorderColor;
}
}
}
}
.column-resize-handle {
.column-resize-handle {
position: absolute;
top: 0;
right: -2px;
@ -277,9 +279,10 @@ table {
width: 4px;
pointer-events: none;
background-color: $tableResizeHandleBgColor;
}
}
.resize-cursor {
.resize-cursor {
cursor: ew-resize;
cursor: col-resize; /* stylelint-disable declaration-block-no-duplicate-properties */
}
}