From e144652e70f0b71f1f276df9898d6daf08b71772 Mon Sep 17 00:00:00 2001 From: splincode Date: Tue, 16 Jul 2024 13:06:51 +0300 Subject: [PATCH] feat: improve border color for table --- .../src/components/editor-socket/styles/table.less | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/projects/editor/src/components/editor-socket/styles/table.less b/projects/editor/src/components/editor-socket/styles/table.less index 68698a7f7..5e2c09c6a 100644 --- a/projects/editor/src/components/editor-socket/styles/table.less +++ b/projects/editor/src/components/editor-socket/styles/table.less @@ -23,7 +23,6 @@ table td { position: relative; min-width: 1em; height: 2rem; - border: 0.125rem solid var(--tui-background-neutral-1-hover); padding: 0.1875rem 0.3125rem; vertical-align: top; box-sizing: border-box; @@ -34,8 +33,7 @@ table th { position: relative; min-width: 1em; height: 2rem; - border: 2px solid var(--tui-background-neutral-1-hover); - padding: 0.1875rem 0.3125; + padding: 0.1875rem 0.3125rem; vertical-align: top; box-sizing: border-box; word-break: break-word; @@ -45,6 +43,15 @@ table th { min-height: 2rem; } +table td, +table th { + border: 0.125rem solid rgb(233, 233, 231); + + [tuiTheme='dark'] & { + border: 0.125rem solid rgb(47, 47, 47); + } +} + /* stylelint-disable-next-line */ table .column-resize-handle { position: absolute;