From 453c613ef4cdf2a53b00e5ad23d079594f9965ae Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 9 Dec 2022 14:16:28 +0100 Subject: [PATCH] UI font tweaks --- plugs/directive/query_directive.ts | 2 +- web/styles/main.scss | 4 ---- web/styles/theme.scss | 15 ++++++++++----- website/CHANGELOG.md | 2 ++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/plugs/directive/query_directive.ts b/plugs/directive/query_directive.ts index 365eeb06..efc35a4e 100644 --- a/plugs/directive/query_directive.ts +++ b/plugs/directive/query_directive.ts @@ -17,7 +17,7 @@ export async function queryDirectiveRenderer( const results = await events.dispatchEvent( `query:${parsedQuery.table}`, { query: parsedQuery, pageName: pageName }, - 10 * 1000, + 30 * 1000, ); if (results.length === 0) { return ""; diff --git a/web/styles/main.scss b/web/styles/main.scss index 4460c96d..2984979b 100644 --- a/web/styles/main.scss +++ b/web/styles/main.scss @@ -72,9 +72,7 @@ } .sb-current-page { - font-weight: bold; flex: 1; - font-size: 28px; overflow: hidden; white-space: nowrap; @@ -85,8 +83,6 @@ input.sb-edit-page-name { background: transparent; - font-weight: bold; - font-size: 28px; white-space: nowrap; text-align: left; border: 0; diff --git a/web/styles/theme.scss b/web/styles/theme.scss index 735a222f..394b280e 100644 --- a/web/styles/theme.scss +++ b/web/styles/theme.scss @@ -1,12 +1,17 @@ #sb-root { - font-family: Arial; --highlight-color: #464cfc; + --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-family: var(--ui-font); } #sb-top { - background-color: rgb(213, 213, 213); - border-bottom: rgb(193, 193, 193) 1px solid; - color: rgb(55, 55, 55); + background-color: #e1e1e1; + border-bottom: #cacaca 1px solid; +} + +#sb-top input.sb-edit-page-name { + // font-weight: bold; + font-size: 28px; } .sb-panel { @@ -74,7 +79,7 @@ } .sb-filter-box .sb-header input { - font-family: "Arial"; + font-family: var(--ui-font); color: #000; } diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md index 9c573471..2e42f218 100644 --- a/website/CHANGELOG.md +++ b/website/CHANGELOG.md @@ -7,7 +7,9 @@ release. * Replaced the `--password` flag with `--user` taking a basic auth combination of username and password, e.g. `--user pete:1234`. Authentication now uses standard basic auth. This should fix attachments not working with password-protected setups. * Added support for ~~strikethrough~~ syntax. +* New logo! Contributed by [petercoyne](https://github.com/silverbulletmd/silverbullet/pull/177) * New button icons, from [feather](https://feathericons.com/) +* UI font tweaks ---