-
Notifications
You must be signed in to change notification settings - Fork 0
/
daysof.css
250 lines (221 loc) · 4.55 KB
/
daysof.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
:root {
--tempBorder: solid red;
}
.card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 600px;
height: 600px;
background-color: azure;
border-radius: 5%;
margin-bottom: 30px;
}
.namer {
margin-top: 20px;
margin-bottom: 15%;
font-size: large;
}
.banner {
text-align: center;
font-size: 60px;
color: white;
width: 100%;
padding: 40px;
padding-bottom: 90px;
}
body {
display: flex;
align-items: center;
flex-direction: column;
z-index: 1;
}
::-webkit-scrollbar {
width: 0px;
}
html {
overflow: auto;
overflow-x: hidden;
}
/* Hide scrollbar for chrome */
body::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
body {
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}
/* adds sticky bg */
.background {
z-index: -1;
height: 100vh;
position: fixed;
left: 0;
top: 0;
width: 100%;
background: linear-gradient(rgba(153, 1, 172, 1), rgba(0, 212, 255, 1));
}
.buttonspace {
display: flex;
position: relative;
width: 200px;
height: 200px;
}
#menubutton {
width: 200px;
height: 200px;
position: absolute;
top: 0px;
left: 0px;
opacity: 0;
/*
hidden maakes it unclickable opacity 0 enusres clickability
visibility: hidden;
*/
}
.menubuttonlabel {
margin: 10px;
width: 200px;
height: 160px;
position: absolute;
top: 0px;
left: 0px;
display: block;
cursor: pointer;
transition: all 0.3s;
border-top: solid red 5px;
border-bottom: solid red 5px;
justify-content: center;
}
#menubutton:checked + .menubuttonlabel {
height: 0px;
top: 80px;
transform: rotate(45deg);
}
.menubuttonlabel::after {
/* content olmadan göremezsin */
content: "";
height: 5px;
width: 160px;
position: absolute;
display: block;
background-color: red;
top: 80px;
left: 20px;
transition: all 0.5s;
}
#menubutton:checked + .menubuttonlabel::after {
transform: rotate(90deg);
top: 0px;
left: 0px;
width: 200px;
height: 10px;
}
/* Pyramidddddddd*/
.pyraContain {
display: flex;
flex-direction: column;
height: 300px;
width: 300px;
transition: all 1.2s;
position: relative; /* allows childs be a relative to this parent*/
}
.pyraContain:hover {
box-shadow: 0px 0px 10px 10px rgb(167, 1, 1);
}
.pyraBase {
height: 60px;
width: 140px;
background-color: brown;
clip-path: polygon(0 100%, 100% 100%, 75% 0, 25% 0);
/* it gives x y points (50% 0%): Top vertex of the diamond,
positioned at 50% of the width and 0% of the height of the clipping box. */
z-index: 3;
position: absolute;
bottom: 20px;
right: 30px;
border-top: 1px brown solid;
}
.pyraTop {
width: 72px;
height: 60px;
background-color: brown;
z-index: 3;
position: absolute;
bottom: 80px;
right: 64px;
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.pyraEye {
background: white;
z-index: 1;
position: absolute;
bottom: 40px;
right: 70px;
width: 60px;
height: 30px;
border-radius: 50% / 50%;
overflow: hidden; /* to hide pupil made with after element*/
}
.pyraEye::after {
display: inline-block; /* to show after*/
content: ""; /* to show after*/
background-color: black;
width: 10px;
height: 10px;
transform: translate(45px, 5px);
border-radius: 50%;
}
.sun {
position: absolute;
height: 30px;
width: 30px;
border-right: 20px solid yellow;
border-bottom: 20px solid yellow;
background-color: white;
border-bottom-right-radius: 100%;
}
.sky {
height: 250px;
width: 300px;
background-color: skyblue;
}
.sands {
height: 50px;
width: 300px;
background-color: sandybrown;
}
.pyraContain > * {
transition: all 1s; /* Apply a 1.2-second transition to all children */
}
.pyraContain:hover .sun {
height: 0px;
width: 0px;
border-right: 0px solid yellow;
border-bottom: 0px solid yellow;
}
.pyraContain:hover .sky {
background-color: rgb(25, 71, 90);
}
.pyraContain:hover .pyraTop {
bottom: 120px;
}
.pyraContain:hover .pyraEye {
bottom: 85px;
box-shadow: 0px 0px 55px 25px rgba(171, 255, 45, 0.9);
}
.pyraContain:hover .pyraEye::after {
animation: eyeLeftRight 5s ease-in-out infinite alternate;
}
@keyframes eyeLeftRight {
from {
transform: translate(45px, 5px); /* Initial scale */
}
to {
transform: translate(5px, 5px); /* Final scale */
}
}