From 4e1498dd49cfbfd8fe4c197a0d06ccc29eacd8ea Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Fri, 27 Mar 2026 23:17:55 +0100 Subject: [PATCH] chore: minor page tweaks --- src/_components/grid.vto | 2 +- src/build.vto | 1 + src/common/pages/dashboard.js | 2 +- src/styles/diffuse/page.css | 12 +++++++++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/_components/grid.vto b/src/_components/grid.vto index 805de6e8..6f58d6d2 100644 --- a/src/_components/grid.vto +++ b/src/_components/grid.vto @@ -38,7 +38,7 @@ >
{{ if item.kind === "prelude" }} diff --git a/src/build.vto b/src/build.vto index fd5191c7..f114ad70 100644 --- a/src/build.vto +++ b/src/build.vto @@ -109,6 +109,7 @@ examples: While you have the ability to do whatever you want in a custom facet, the existing facets are designed to work a certain way; so here's some things to keep in mind:

    +
  • Prelude (feature) facets are loaded in alphabetical order by the facet loader.
  • Most elements are configured in broadcast mode so they communicate across tabs. There are a few exceptions such as inputs, where we prefer parallelisation.
  • All URLs in a facet are relative to the root of Diffuse (not the root of the server) due to the base element in the header of the facet loader.
diff --git a/src/common/pages/dashboard.js b/src/common/pages/dashboard.js index 2154df00..29ffc812 100644 --- a/src/common/pages/dashboard.js +++ b/src/common/pages/dashboard.js @@ -185,7 +185,7 @@ function _renderList(output, listEl) {
  • ${title} diff --git a/src/styles/diffuse/page.css b/src/styles/diffuse/page.css index 07351a98..f861bcd1 100644 --- a/src/styles/diffuse/page.css +++ b/src/styles/diffuse/page.css @@ -307,8 +307,18 @@ textarea { padding: var(--space-md); position: relative; + --grid-item-gradient-opacity: 0.125; + + @media (prefers-color-scheme: dark) { + --grid-item-gradient-opacity: 0.075; + } + &::before { - background: var(--grid-item-gradient, none); + background: linear-gradient( + to bottom, + oklch(from var(--grid-item-color, transparent) l c h / var(--grid-item-gradient-opacity)), + transparent 65% + ); content: ""; inset: 0; pointer-events: none; -- knotmirror 0.0.1