aboutsummaryrefslogtreecommitdiff
path: root/templates/@theme-base/pm-styles/_pm-scrollshadow.scss
diff options
context:
space:
mode:
Diffstat (limited to 'templates/@theme-base/pm-styles/_pm-scrollshadow.scss')
-rw-r--r--templates/@theme-base/pm-styles/_pm-scrollshadow.scss37
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/@theme-base/pm-styles/_pm-scrollshadow.scss b/templates/@theme-base/pm-styles/_pm-scrollshadow.scss
new file mode 100644
index 0000000..6f23256
--- /dev/null
+++ b/templates/@theme-base/pm-styles/_pm-scrollshadow.scss
@@ -0,0 +1,37 @@
+$scrollshadow-height: .5rem !default;
+
+.scrollshadow {
+
+ &-sticky {
+ position: sticky;
+ display: block;
+ height: $scrollshadow-height;
+
+ &--top {
+ top: 0;
+ background-image: radial-gradient(farthest-side at 50% 0, var(--bordercolor-input, #acb0bf), transparent);
+ }
+
+ &--bottom {
+ bottom: 0;
+ background-image: radial-gradient(farthest-side at 50% 100%, var(--bordercolor-input, #acb0bf), transparent);
+ }
+ }
+
+ &-static {
+ position: absolute;
+ display: block;
+ left: 0;
+ right: 0;
+ height: $scrollshadow-height;
+ background: var(--bgcolor-main-area, #fff);
+
+ &--top {
+ top: 0;
+ }
+
+ &--bottom {
+ bottom: 0;
+ }
+ }
+}