From f0b03b4ada5eefe59d9692a649ef157b0b49b22f Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 4 Oct 2021 23:02:23 +0100 Subject: [PATCH] add styling for mardown tables --- .../editor-client/src/sass/tab-info.scss | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss b/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss index feaf826c5..fcbc020f9 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/tab-info.scss @@ -233,7 +233,32 @@ div.red-ui-info-table { } } } - + table { + border-collapse: collapse; + margin : 8px 0 8px 0; + min-width : 300px; + box-shadow : 0 0 2px rgb(0 0 0 / 15%); + overflow : hidden; + border-radius : 4px; + } + table thead tr { + background-color: var(--red-ui-primary-text-color); //$primary-text-color; + color: var(--red-ui-primary-background); //$primary-background + text-align: left; + } + table th, + table td { + padding: 6px 8px; + } + table tbody tr { + border-bottom: 1px solid var(--red-ui-tertiary-background); //$tertiary-background + } + table tbody tr:nth-of-type(even) { + background-color: var(--red-ui-primary-background); //$primary-background; + } + table tbody tr:last-of-type { + border-bottom: 2px solid var(--red-ui-primary-text-color); //$primary-text-color; + } } .red-ui-sidebar-info-stack { height: 100%;