This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch code-style
in repository 
https://gitbox.apache.org/repos/asf/incubator-streampark-website.git

commit d0dcd665c386c19d23582d5f690db86ca6e992c9
Author: benjobs <[email protected]>
AuthorDate: Sat Jun 8 14:17:19 2024 +0800

    [Improve] code style improvement
---
 docs/components/TableData.less |  5 ++---
 src/css/custom/index.less      | 31 +++++++++++++++++++++----------
 2 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/docs/components/TableData.less b/docs/components/TableData.less
index e6b7565c..99b036c5 100644
--- a/docs/components/TableData.less
+++ b/docs/components/TableData.less
@@ -1,8 +1,7 @@
 .table-data {
   font-size: 14px;
-
   th, td {
-    padding: 0.6rem
+    padding: 0.6rem;
   }
 
   .icon-check {
@@ -69,4 +68,4 @@
   background: rgba(0, 0, 0, .5);
   color: #fff;
   font-size: 14px;
-}
\ No newline at end of file
+}
diff --git a/src/css/custom/index.less b/src/css/custom/index.less
index fe9bfe08..4f64b4ce 100644
--- a/src/css/custom/index.less
+++ b/src/css/custom/index.less
@@ -160,16 +160,21 @@ article[itemprop="blogPost"] {
 }
 
 code {
-  font-weight: 600;
-  padding: 1px 2px;
-  font-size: 12px;
-  background-color: var(--ifm-code-background) !important;
-
+  background-color: #edf2fa;
+  border: none;
+  word-break: normal;
+  padding: 3px 4px;
+  border-radius: 4px;
   span {
     font-style: normal !important;
   }
 }
 
+[data-theme='dark'] code {
+  background-color: var(--ifm-code-background) !important;
+  font-weight: bolder;
+}
+
 .markdown h1:first-child {
   font-size: 32px !important;
 }
@@ -201,9 +206,7 @@ code {
 }
 
 .table-of-contents__link:hover,
-.table-of-contents__link:hover code,
-.table-of-contents__link--active,
-.table-of-contents__link--active code {
+.table-of-contents__link--active {
   font-weight: 600;
   color: var(--click-color-text);
 }
@@ -930,7 +933,7 @@ button.DocSearch {
   fill: white;
 }
 
-// -- custom -- 
+// -- custom --
 
 /** global */
 
@@ -1155,4 +1158,12 @@ img {
     max-width: 1920px !important;
     min-width: 1200px !important;
   }
-}
\ No newline at end of file
+}
+
+.table-data {
+  thead tr td {
+    background-color: var(--ifm-table-head-background);
+  }
+  border: 1px solid var(--ifm-table-head-background);
+}
+

Reply via email to