-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
169 lines (136 loc) · 3.24 KB
/
styles.css
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
html {
font-size: 48px;
--pcb-black-bg: #111217;
--pcb-black-text: #f2f2f2;
--pcb-pink-bg: #cd8ba9;
--pcb-pink-text: #d6b1c2;
--pcb-pink-text-highlight: #ffe7f8;
--pcb-purple-bg: #aa49dc;
--pcb-purple-text: #c29cdd;
--pcb-purple-text-highlight: #faddff;
--pcb-orange-bg: #c2593c;
--pcb-orange-text: #cf8e77;
--pcb-orange-text-highlight: #fffdee;
--pcb-blue-bg: #1a507b;
--pcb-blue-text: #5089a6;
--pcb-blue-text-highlight: #e0e0fd;
--pcb-width: 900px;
--pcb-offscreen: -30vh;
}
body {
margin: 0;
height: 500vh;
font-family: Helvetica;
background-color: #000;
}
.github-corner {
position: fixed;
top: 0;
right: 0;
border: 0;
border-radius: 0;
z-index: 99999;
}
.github-corner:hover .octo-arm{
animation:octocat-wave 560ms ease-in-out
}
@keyframes octocat-wave{
0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}
}
@media (max-width:500px){
.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}
}
.sticky-container {
position: sticky;
top: 0;
width: 100%;
height: 100vh;
overflow: hidden;
}
.sticky-container .pcb {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
.sticky-container .pcb h3 {
font-size: 1rem;
margin: 0 0 60px 90px;
width: var(--pcb-width);
}
.sticky-container .pcb img {
display: block;
width: var(--pcb-width);
margin-bottom: var(--pcb-offscreen);
}
/* black */
.sticky-container .pcb.black {
background-color: var(--pcb-black-bg);
z-index: 10;
}
.sticky-container .pcb.black h3 {
color: var(--pcb-black-text);
}
/* pink */
.sticky-container .pcb.pink {
background-color: var(--pcb-pink-bg);
z-index: 20;
clip-path: inset(100% 0px 0px 0px);
}
.sticky-container .pcb.pink h3 {
color: var(--pcb-pink-text);
}
.sticky-container .pcb.pink h3 span {
color: var(--pcb-pink-text-highlight);
}
/* purple */
.sticky-container .pcb.purple {
background-color: var(--pcb-purple-bg);
z-index: 30;
clip-path: inset(100% 0px 0px 0px);
}
.sticky-container .pcb.purple h3 {
color: var(--pcb-purple-text);
}
.sticky-container .pcb.purple h3 span {
color: var(--pcb-purple-text-highlight);
}
/* orange */
.sticky-container .pcb.orange {
background-color: var(--pcb-orange-bg);
z-index: 40;
clip-path: inset(100% 0px 0px 0px);
}
.sticky-container .pcb.orange h3 {
color: var(--pcb-orange-text);
}
.sticky-container .pcb.orange h3 span {
color: var(--pcb-orange-text-highlight);
}
/* blue */
.sticky-container .pcb.blue {
background-color: var(--pcb-blue-bg);
z-index: 50;
clip-path: inset(100% 0px 0px 0px);
}
.sticky-container .pcb.blue h3 {
color: var(--pcb-blue-text);
}
.sticky-container .pcb.blue h3 span {
color: var(--pcb-blue-text-highlight);
}
.sticky-container.no-sticky {
position: relative;
overflow: visible;
}
.sticky-container.no-sticky .pcb {
position: relative;
}
.sticky-container.no-sticky .pcb.blue {
padding-bottom: calc(var(--pcb-offscreen) * -1);
}