From 77c4b502154b7d4726f6449c1eac008c769ed48e Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Tue, 4 Mar 2025 11:14:10 +0200 Subject: [PATCH] style(next)/SQL Console: tweak appearance --- src/public/stylesheets/theme-next/shell.css | 52 +++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css index db66ef3f4..7ca1a2974 100644 --- a/src/public/stylesheets/theme-next/shell.css +++ b/src/public/stylesheets/theme-next/shell.css @@ -1691,7 +1691,9 @@ div.bookmark-folder-widget .note-link .bx { transform: translateY(4%); } -/* Search */ +/* + * Search + */ .search-result-widget-content .note-path .path-bracket { display: inline; @@ -1702,7 +1704,51 @@ div.bookmark-folder-widget .note-link .bx { font-weight: normal; } -/* Help */ +/* + * SQL Console + */ + +/* Table buttons */ + +.sql-table-schemas-widget .sql-table-schemas button { + --color: var(--main-text-color); + --background: var(--card-background-color); + + display: inline-block; + box-shadow: 2px 2px 2px var(--card-shadow-color); + margin-top: 4px; + vertical-align: baseline; + border: unset; + border-radius: 12px; + padding: 2px 12px; + background: var(--background) !important; + color: var(--color) !important; + line-height: unset; + cursor: help; +} + +.sql-table-schemas-widget .sql-table-schemas button:hover, +.sql-table-schemas-widget .sql-table-schemas button:active, +.sql-table-schemas-widget .sql-table-schemas button:focus-visible { + --background: var(--card-background-press-color); + --color: var(--main-text-color); +} + +/* Tooltip */ + +.tooltip .table-schema { + font-family: var(--monospace-font-family); + font-size: .85em; +} + +/* Data type */ +.tooltip .table-schema td:nth-child(2) { + color: var(--muted-text-color); +} + +/* + * Help + */ .help-dialog .modal-content { --modal-background-color: var(--help-background-color); @@ -1974,4 +2020,4 @@ div.promoted-attribute-cell .multiplicity:has(span) { margin-left: 8px; margin-right: calc(var(--pa-card-padding-left) - var(--pa-card-padding-right)); font-size: 0; /* Prevent whitespaces creating a gap between buttons */ -} +} \ No newline at end of file