Use child CSS selectors so we only have to attach class to the table body
authorKarl O. Pinc <kop@karlpinc.com>
Wed, 25 Sep 2024 16:40:58 +0000 (11:40 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Wed, 25 Sep 2024 16:40:58 +0000 (11:40 -0500)
src/pgwui_sql/static/show_whitespace.css
src/pgwui_sql/templates/sql.mak

index 69c86f23ff38eabc412ae273ab8c7bea5e98d97f..1dbd30d081b33bf24f945d41d51b24f5238e0190 100644 (file)
@@ -21,7 +21,7 @@
  * Karl O. Pinc <kop@karlpinc.com>
  */
 
-td.sqltext { text-decoration-line: underline;
-             text-decoration-color: silver;
-             text-decoration-style: double; }
+tbody.sqltext > tr > td { text-decoration-line: underline;
+                          text-decoration-color: silver;
+                          text-decoration-style: double; }
 
index 29a801adac3ff90ce1356f404c9256e948a5b4a8..182ca091a7d6053309faeec13f5f9989f8db0d6e 100644 (file)
 <%def name="render_row(data)">
   <tr>
     % for item in data:
-      <td class="sqltext">${item}</td>
+      <td>${item}</td>
     % endfor
   </tr>
 </%def>
               % if result_row.heading is not None:
                   ${self.render_heading(result_row.heading.data)}
               % endif
-              <tbody>
+              <tbody class="sqltext">
                 % for row in result_row.rows:
                     ${self.render_row(row.data)}
                 % endfor