From 613da3c175a69d80336fd3fdbca37bffd7386c94 Mon Sep 17 00:00:00 2001 From: zhangyingqi Date: Thu, 29 Jun 2023 14:35:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BCE-FE-1706=E6=96=87=E6=A1=A3=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=A4=A7=E7=BA=B2=E5=8F=AF=E6=94=B6=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/doc.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/examples/doc.css b/examples/doc.css index a7f139622..e07deb50e 100644 --- a/examples/doc.css +++ b/examples/doc.css @@ -453,6 +453,7 @@ overflow: auto; word-break: normal; /* word-break: keep-all; */ + border-left: 1px solid #ddd; } .markdown-body table:not(.table) th { @@ -477,6 +478,33 @@ body.dark .markdown-body table:not(.table) tr:nth-child(2n) { background: none; } +.markdown-body table td:first-child, +.markdown-body table th:first-child { + position: sticky; + left: 0; + z-index: 10; + background-color: #fff; + border-left: 0px !important; +} + +.markdown-body table td:first-child::after, +.markdown-body table th:first-child::after { + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.1); + position: absolute; + top: 0; + right: 0; + bottom: -1px; + width: 30px; + transform: translate(100%); + transition: box-shadow 0.3s; + content: ''; + pointer-events: none; +} + +.markdown-body table tr:nth-child(2n) td:first-child { + background-color: #f8f8f8; +} + /* modified by zhangjun08 * 更改文档中的图片展示样式 */ From 862bf5fa0e715e27ee7f1a8b34e9ab289caf0bb1 Mon Sep 17 00:00:00 2001 From: zhangyingqi Date: Fri, 7 Jul 2023 14:37:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E3=80=81=E4=BA=8B=E4=BB=B6table=E5=9B=BA=E5=AE=9A=E5=88=97?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/doc.css b/examples/doc.css index e07deb50e..cfd4e4f7c 100644 --- a/examples/doc.css +++ b/examples/doc.css @@ -493,7 +493,7 @@ body.dark .markdown-body table:not(.table) tr:nth-child(2n) { position: absolute; top: 0; right: 0; - bottom: -1px; + bottom: 0px; width: 30px; transform: translate(100%); transition: box-shadow 0.3s;