From 6f0c14cc07ed834a5096c6f3e35036eded46e447 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 14 Apr 2021 09:00:30 -0700 Subject: [PATCH 1/4] Make filter editor / bulk editor 'sticky' on scroll --- .../document-list/document-list.component.html | 8 ++++---- .../document-list/document-list.component.scss | 9 +++++++++ src-ui/src/theme.scss | 6 +++++- src-ui/src/theme_dark.scss | 4 ++++ 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index 45b6fad37..8b91949a8 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -75,7 +75,7 @@ -
+
@@ -99,7 +99,7 @@
- + @@ -174,10 +174,10 @@
- +
- + diff --git a/src-ui/src/app/components/document-list/document-list.component.scss b/src-ui/src/app/components/document-list/document-list.component.scss index 28f765e29..ab67d9572 100644 --- a/src-ui/src/app/components/document-list/document-list.component.scss +++ b/src-ui/src/app/components/document-list/document-list.component.scss @@ -34,3 +34,12 @@ $paperless-card-breakpoints: ( right: 0 !important; left: auto !important; } + +.sticky-top { + z-index: 1000; // below main navbar + top: calc(7rem - 2px); // height of navbar (mobile) + + @media (min-width: 768px) { + top: 3.5rem; // height of navbar + } +} diff --git a/src-ui/src/theme.scss b/src-ui/src/theme.scss index df2aea003..113968a9f 100644 --- a/src-ui/src/theme.scss +++ b/src-ui/src/theme.scss @@ -4,4 +4,8 @@ $primaryFaded: #d1ddd2; $theme-colors: ( "primary": $primary -); \ No newline at end of file +); + +.bg-body { + background-color: #fff; +} diff --git a/src-ui/src/theme_dark.scss b/src-ui/src/theme_dark.scss index 996f9da3d..25abac773 100644 --- a/src-ui/src/theme_dark.scss +++ b/src-ui/src/theme_dark.scss @@ -37,6 +37,10 @@ $border-color-dark-mode: #47494f; } } + .bg-body { + background-color: $bg-dark-mode !important; + } + .text-light { color: $text-color-dark-mode !important; } From 43d05b2e6de157b680fd48c7d04f5a9a00361f76 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 14 Apr 2021 09:00:57 -0700 Subject: [PATCH 2/4] Hide visible underlying shadows on filter / bulk editor --- .../app/components/document-list/document-list.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index 8b91949a8..d11eb7f90 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -75,7 +75,7 @@ -
+
From c266cd6aaece00434deb4b47f74d1e93e5b641ed Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 14 Apr 2021 09:34:39 -0700 Subject: [PATCH 3/4] Spacing tweaks, mobile breakpoint --- .../app/components/document-list/document-list.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index d11eb7f90..1b805bb2e 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -75,7 +75,7 @@ -
+
From a4fef056edd778d6c116641b3d4f3b32d3d933c9 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 14 Apr 2021 13:24:03 -0700 Subject: [PATCH 4/4] Fix breakpoint File missing from last commit --- .../app/components/document-list/document-list.component.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.scss b/src-ui/src/app/components/document-list/document-list.component.scss index ab67d9572..ee50852f0 100644 --- a/src-ui/src/app/components/document-list/document-list.component.scss +++ b/src-ui/src/app/components/document-list/document-list.component.scss @@ -39,7 +39,7 @@ $paperless-card-breakpoints: ( z-index: 1000; // below main navbar top: calc(7rem - 2px); // height of navbar (mobile) - @media (min-width: 768px) { + @media (min-width: 580px) { top: 3.5rem; // height of navbar } }