Преглед изворни кода

webui: fix markdown table (#15081)

* webui: fix markdown table

* webui: fix table display with themes
Alex Wu пре 5 месеци
родитељ
комит
22f060c9c4
2 измењених фајлова са 18 додато и 1 уклоњено
  1. BIN
      tools/server/public/index.html.gz
  2. 18 1
      tools/server/webui/src/index.scss

BIN
tools/server/public/index.html.gz


+ 18 - 1
tools/server/webui/src/index.scss

@@ -31,7 +31,24 @@ html {
   hr {
   hr {
     @apply my-4 border-base-content/20 border-1;
     @apply my-4 border-base-content/20 border-1;
   }
   }
-  /* TODO: fix markdown table */
+  table {
+    @apply w-full border-collapse text-sm font-sans my-4 text-base-content;
+  }
+  thead {
+    @apply bg-base-200 text-base-content;
+  }
+  th {
+    @apply border border-base-300 px-4 py-2 text-left font-semibold;
+  }
+  td {
+    @apply border border-base-300 px-4 py-2 align-top;
+  }
+  tbody tr:nth-child(even) {
+    @apply bg-base-100;
+  }
+  tbody tr:hover {
+    @apply bg-base-200;
+  }
 }
 }
 
 
 .btn-mini {
 .btn-mini {