-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.component.scss
102 lines (98 loc) · 1.98 KB
/
app.component.scss
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.main {
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
background-color: black;
}
.status {
color: greenyellow;
font-size: 25px;
}
.scroll-container {
background-color: black;
color: greenyellow;
border-radius: 5px;
border: 2px solid greenyellow;
width: 40vw;
height: 40vh;
padding: 10px 20px;
overflow-y: scroll;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
&::-webkit-scrollbar { /* Chrome, Safari and Opera */
display: none;
}
.scroll-up-note {
position: fixed;
width: inherit;
text-align: center;
z-index: 3;
display: none;
color: black;
span {
background-color: white;
font-size: 15px;
padding: 5px 10px;
border-radius: 4px;
box-shadow: 0 1px 4px 1px lightgray;
opacity: .8;
&:hover {
cursor: pointer;
opacity: 1;
}
}
}
.scroll-down-note {
position: sticky;
bottom: 0;
width: inherit;
text-align: center;
z-index: 3;
display: none;
color: black;
span {
background-color: white;
font-size: 15px;
padding: 5px 10px;
border-radius: 4px;
box-shadow: 0 1px 4px 1px lightgray;
opacity: .8;
&:hover {
cursor: pointer;
opacity: 1;
}
}
}
&[topScroll]:not([topScroll='0']) {
// content is not scrolled to the top
.scroll-up-note {
display: block;
}
.shadow {
width: 100%;
box-shadow: 0px 20px 50px 30px black;
height: 0.1px;
z-index: 5;
position: sticky;
top: -30px;
}
}
&[bottomScroll]:not([bottomScroll='0']) {
// content is not scrolled to the bottom
.scroll-down-note {
display: block;
}
.bottom-shadow {
width: 100%;
box-shadow: 0 -20px 50px 20px black;
height: 0.1px;
z-index: 5;
position: sticky;
bottom: -10px;
}
}
}