Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(overlay): lift a toolbar the way the chips beside it are lifted
Elian Doranb241887f3f75
diff --git a/apps/client/src/widgets/collections/geomap/SearchBox.css b/apps/client/src/widgets/collections/geomap/SearchBox.cssindex 425550d29b..29a4bca3e6 100644--- a/apps/client/src/widgets/collections/geomap/SearchBox.css+++ b/apps/client/src/widgets/collections/geomap/SearchBox.css@@ -11,7 +11,6 @@to, which stays light over a dark map. */background: var(--geo-map-panel-background);color: var(--geo-map-panel-text-color);- border-color: var(--geo-map-panel-border-color);}/* The bar is the field, icon and all, so it takes the focus outline an input group takes (see thediff --git a/apps/client/src/widgets/react/OverlayToolbar.css b/apps/client/src/widgets/react/OverlayToolbar.cssindex 8aa80479d9..f12152c1a6 100644--- a/apps/client/src/widgets/react/OverlayToolbar.css+++ b/apps/client/src/widgets/react/OverlayToolbar.css@@ -1,7 +1,8 @@/*- * A bar standing over a canvas: the same surface, border and blur a menu is drawn on, so that- * everything floating over a map — bars, panels, whatever else — reads as one family rather than as- * pieces from three places. Where each bar stands is settled by whoever puts it there.+ * A bar standing over a canvas: the surface and blur a menu is drawn on, lifted the way the control+ * groups beside it are, so that everything floating over a map — bars, chips, panels — reads as one+ * family rather than as pieces from three places. Where each bar stands is settled by whoever puts+ * it there.*/.tn-overlay-toolbar {position: absolute;@@ -11,9 +12,11 @@padding: 4px;background: var(--menu-background-color, #fff);color: var(--menu-text-color, inherit);- border: 1px solid var(--dropdown-border-color, var(--main-border-color, #0000002e));- border-radius: 8px;- box-shadow: 0 2px 8px #0003;+ border-radius: var(--overlay-button-border-radius, 6px);+ /* Two edges rather than four, the light in this app coming from the top leading corner — the+ same lift a run of buttons is given (see OverlayControlGroup.css). */+ border-right: 1px solid var(--overlay-button-shadow-color, var(--main-border-color, #0000002e));+ border-bottom: 1px solid var(--overlay-button-shadow-color, var(--main-border-color, #0000002e));/* The frosting a menu is given, rather than a blur of this bar's own: the theme sets what glasslooks like in the app (see shell.css in theme-next, the one theme that sets it), and a barover a map is the one place it is looked through at something with colour in it. Nothing to