From 516f25801f10ecfa394732312bc99ea7b4afd60d Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 13 Jan 2023 16:56:48 +0100 Subject: [PATCH] More UI improvements --- frontend/src/components/grid.svelte | 4 +- frontend/src/components/objectgrid.svelte | 7 ++-- frontend/src/components/tabbar.svelte | 1 + .../src/organisms/addressbar/index.svelte | 1 + .../organisms/collection-detail/find.svelte | 14 +++++-- .../organisms/collection-detail/index.svelte | 13 +++++- .../organisms/collection-detail/insert.svelte | 40 ++++++++++++++++--- .../organisms/collection-detail/remove.svelte | 7 +++- frontend/src/style.css | 14 +++++++ 9 files changed, 84 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/grid.svelte b/frontend/src/components/grid.svelte index 848dc8e..655e259 100644 --- a/frontend/src/components/grid.svelte +++ b/frontend/src/components/grid.svelte @@ -105,9 +105,9 @@ diff --git a/frontend/src/organisms/collection-detail/remove.svelte b/frontend/src/organisms/collection-detail/remove.svelte index 739eaff..e69e0c6 100644 --- a/frontend/src/organisms/collection-detail/remove.svelte +++ b/frontend/src/organisms/collection-detail/remove.svelte @@ -23,9 +23,14 @@ diff --git a/frontend/src/style.css b/frontend/src/style.css index 1204c45..bdff077 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -10,11 +10,17 @@ body { cursor: default; font-size: 15px; line-height: 15px; + background-color: #eee; } * { vertical-align: middle; box-sizing: border-box; + overscroll-behavior: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; + touch-action: none; } p { @@ -96,3 +102,11 @@ p { code, .code { font-family: Menlo, monospace; } + +@keyframes flashGreen { + 0% { color: #0d0; } + 100% { color: unset; } +} +.flash-green { + animation: 1s ease-out 0s 1 flashGreen; +}