Explorar o código

webui: fix markdown table (#15081)

* webui: fix markdown table

* webui: fix table display with themes
Alex Wu hai 5 meses
pai
achega
22f060c9c4
Modificáronse 2 ficheiros con 18 adicións e 1 borrados
  1. BIN=BIN
      tools/server/public/index.html.gz
  2. 18 1
      tools/server/webui/src/index.scss

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


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

@@ -31,7 +31,24 @@ html {
   hr {
     @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 {