From 1e574a81c34c296dfc1e64a7e8a0a00aa1c86e31 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 2 Aug 2022 14:40:04 +0200 Subject: [PATCH] Work on #10 theming --- CHANGELOG.md | 2 +- packages/web/components/filter.tsx | 20 +- packages/web/components/panel.tsx | 2 +- packages/web/components/top_bar.tsx | 10 +- packages/web/editor.tsx | 26 +-- packages/web/index.html | 1 + packages/web/style.ts | 72 ++++---- packages/web/styles/constants.scss | 5 - packages/web/styles/editor.scss | 213 ++-------------------- packages/web/styles/filter_box.scss | 45 ++--- packages/web/styles/main.scss | 59 ++---- packages/web/styles/theme.css | 272 ++++++++++++++++++++++++++++ 12 files changed, 381 insertions(+), 346 deletions(-) mode change 100644 => 120000 CHANGELOG.md delete mode 100644 packages/web/styles/constants.scss create mode 100644 packages/web/styles/theme.css diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 2b618be5..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -See [website/CHANGELOG.md](https://github.com/silverbulletmd/silverbullet/blob/main/website/CHANGELOG.md) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 120000 index 00000000..6a281943 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +website/CHANGELOG.md \ No newline at end of file diff --git a/packages/web/components/filter.tsx b/packages/web/components/filter.tsx index 2da6d049..d94d8d33 100644 --- a/packages/web/components/filter.tsx +++ b/packages/web/components/filter.tsx @@ -124,9 +124,9 @@ export function FilterList({ let exiting = false; const returnEl = ( -
-
-
+
+
+
-
+
{matchingOptions && matchingOptions.length > 0 ? matchingOptions.map((option, idx) => (
{ setSelectionOption(idx); @@ -207,18 +207,20 @@ export function FilterList({ onSelect(option); }} > - + {icon && } ", "")! : escapeHtml(option.name), }} > - {option.hint && {option.hint}} + {option.hint && ( + {option.hint} + )}
)) : null} diff --git a/packages/web/components/panel.tsx b/packages/web/components/panel.tsx index a32e7bdc..f029a29e 100644 --- a/packages/web/components/panel.tsx +++ b/packages/web/components/panel.tsx @@ -54,7 +54,7 @@ export function Panel({ }, []); return ( -
+