aboutsummaryrefslogtreecommitdiff
path: root/templates/@theme-base/pm-styles/_pm-scrollshadow.scss
blob: 6f23256cd9fd7d2af28267e8423bb5a8e37d795d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
		}
	}
}