|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+// 移除所有阴影和间隙,使sticky-header在滚动缩小后与浏览器无缝衔接
|
|
|
2
|
+::ng-deep app-sticky-header {
|
|
|
3
|
+ &.locked {
|
|
|
4
|
+ box-shadow: none !important;
|
|
|
5
|
+ background-color: transparent !important;
|
|
|
6
|
+
|
|
|
7
|
+ .header-content {
|
|
|
8
|
+ box-shadow: none !important;
|
|
|
9
|
+ margin: 0 !important; // 移除5px间隙
|
|
|
10
|
+ border-top: none !important; // 移除顶部边框
|
|
|
11
|
+ border-radius: 0 !important; // 确保无圆角
|
|
|
12
|
+ }
|
|
|
13
|
+ }
|
|
|
14
|
+
|
|
|
15
|
+ &.compact {
|
|
|
16
|
+ .header-content {
|
|
|
17
|
+ box-shadow: none !important;
|
|
|
18
|
+ border-top: none !important;
|
|
|
19
|
+ border-radius: 0 !important;
|
|
|
20
|
+ }
|
|
|
21
|
+ }
|
|
|
22
|
+}
|
|
|
23
|
+
|
|
|
24
|
+// 调整内容区域顶部间隙
|
|
|
25
|
+:host {
|
|
|
26
|
+ ::ng-deep .content-area > div {
|
|
|
27
|
+ padding-top: 0 !important; // 移除默认的5px顶部间隙
|
|
|
28
|
+ }
|
|
|
29
|
+
|
|
|
30
|
+ // 确保sticky-header与内容无缝衔接
|
|
|
31
|
+ ::ng-deep app-sticky-header {
|
|
|
32
|
+ margin-bottom: 0 !important;
|
|
|
33
|
+
|
|
|
34
|
+ .sticky-header {
|
|
|
35
|
+ top: 0 !important;
|
|
|
36
|
+ }
|
|
|
37
|
+
|
|
|
38
|
+ &.locked {
|
|
|
39
|
+ top: 0 !important;
|
|
|
40
|
+
|
|
|
41
|
+ .header-content {
|
|
|
42
|
+ border-top-width: 0 !important;
|
|
|
43
|
+ border-bottom: 1px solid #e2e8f0 !important; // 保留底部边框
|
|
|
44
|
+ }
|
|
|
45
|
+ }
|
|
|
46
|
+ }
|
|
|
47
|
+}
|