summaryrefslogtreecommitdiffstats
path: root/src/components/PaginationCursor/PaginationCursor.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-25 11:47:59 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-25 11:49:56 +0100
commit71942c86311a9d1ddf4ae486d811f8393786e855 (patch)
tree4e14e1f1ff083dabbb483ba2f12874666c1d6ced /src/components/PaginationCursor/PaginationCursor.module.scss
parent82702fbe2d0607e7ca8a02c878b2e79a21664b7c (diff)
chore: display a progress bar before load more button
Since I'm using cursor pagination, users cannot know if there is a lot of posts available. With this cursor, they can verify the progression.
Diffstat (limited to 'src/components/PaginationCursor/PaginationCursor.module.scss')
-rw-r--r--src/components/PaginationCursor/PaginationCursor.module.scss28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/components/PaginationCursor/PaginationCursor.module.scss b/src/components/PaginationCursor/PaginationCursor.module.scss
new file mode 100644
index 0000000..35484ea
--- /dev/null
+++ b/src/components/PaginationCursor/PaginationCursor.module.scss
@@ -0,0 +1,28 @@
+@use "@styles/abstracts/functions" as fun;
+
+.wrapper {
+ margin: var(--spacing-sm) auto var(--spacing-md);
+ width: max-content;
+
+ .bar[value] {
+ display: block;
+ width: 30ch;
+ height: fun.convert-px(13);
+ appearance: none;
+ background: var(--color-bg-tertiary);
+ border: fun.convert-px(1) solid var(--color-primary-darker);
+ border-radius: 1em;
+ box-shadow: inset 0 0 fun.convert-px(4) fun.convert-px(1)
+ var(--color-shadow-light);
+
+ &::-webkit-progress-value {
+ background-color: var(--color-primary-dark);
+ border-radius: 1em;
+ }
+
+ &::-moz-progress-bar {
+ background-color: var(--color-primary-dark);
+ border-radius: 1em;
+ }
+ }
+}