-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
347 lines (304 loc) · 9.21 KB
/
style.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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
:root {
--white-color: #FFFFFF;
--tinted-grey: #fafafa;
--steel-grey: #929292;
--fossil-grey: #888888;
--lightGrey-color: #6c6c6c;
--light-greyTwo: #626262;
--darkGrey-color: #3a3a3a;
--strongShade-grey: #303030;
--onyx-black: #000000;
--sunnyYellow-color: #ffe60a;
--mustard-yellow: #f5dc00;
--bright-greenMint: #0affd9;
--lightGreen-color: #00f5ce;
--lime-green: #10ea00;
--neonBright-green: #0ed600;
--veryDark-cyan: #006c6b;
--darkTeal-color: #005857;
--skyBlue-color: #7cccfc;
--ocean-blue: #002fc6;
--darkOcean-blue: #002bb2;
--midnight-blue: #001b75;
--milkyWay-deepBlue: #001761;
--bright-pink: #ff0afe;
--sharp-retroPink: #f500f4;
--rich-red: #ed0014;
--venetian-red: #d90012;
}
html{
overflow: hidden;
}
body {
margin: 0;
font-family: 'Gochi Hand', 'Just Another Hand', cursive;
/* width: 100vw; */
width: calc(var(--vw, 1vw) * 100);
height: 100vh;
overflow: auto;
}
/* background signal screen */
.no-signal {
width: 100%;
height: 100%;
position: fixed; /* changed to fixed */
z-index: -1;
background: linear-gradient(to right, var(--ocean-blue) 0%, var(--darkOcean-blue) 14.28571%, var(--darkGrey-color) 14.28571%, var(--strongShade-grey) 28.57143%, var(--bright-pink) 28.57143%, var(--sharp-retroPink) 42.85714%, var(--lightGrey-color) 42.85714%, var(--light-greyTwo) 57.14286%, var(--bright-greenMint) 57.14286%, var(--lightGreen-color) 71.42857%, var(--darkGrey-color) 71.42857%, var(--strongShade-grey) 85.71429%, var(--white-color) 85.71429%, var(--tinted-grey) 100%);
}
.no-signal:before{
top: 0;
height: 68.47826%;
background: linear-gradient(to right, var(--white-color) 0%, var(--tinted-grey) 14.28571%, var(--sunnyYellow-color) 14.28571%, var(--mustard-yellow) 28.57143%, var(--bright-greenMint) 28.57143%, var(--lightGreen-color) 42.85714%, var(--lime-green) 42.85714%, var(--neonBright-green) 57.14286%, var(--bright-pink) 57.14286%, var(--sharp-retroPink) 71.42857%, var(--rich-red) 71.42857%, var(--venetian-red) 85.71429%, var(--ocean-blue) 85.71429%, var(--darkOcean-blue) 100%);
}
.no-signal:before, .no-signal:after {
content: '';
position: absolute;
left: 0;
z-index: 1;
width: 100%;
}
.no-signal:after {
bottom: 0;
height: 21.73913%;
background: linear-gradient(to right, var(--veryDark-cyan) 0%, var(--darkTeal-color) 16.66667%, var(--white-color) 16.66667%, var(--tinted-grey) 33.33333%, var(--midnight-blue) 33.33333%, var(--milkyWay-deepBlue) 50%, var(--lightGrey-color) 50%, var(--light-greyTwo) 66.66667%, var(--steel-grey) 66.66667%, var(--fossil-grey) 83.33333%, var(--darkGrey-color) 83.33333%, var(--strongShade-grey) 100%);
font-family: 'Gochi Hand', 'Just Another Hand', cursive;
}
h1 {
margin: 0;
position: fixed;
width: 100vw;
z-index: 20;
padding: 0.3em;
background-color: var(--onyx-black);
text-align: center;
color: var(--mustard-yellow);
}
/* Styling for TV button */
.tv {
margin: 3.5em 1em auto 1em;
position: fixed;
z-index: 10;
background-color: transparent;
border: none;
height: 10em;
}
.tv img {
width: 10em;
z-index: 5;
}
.tv p {
/* position relaive used to move the <p> up so it appears in the TV */
position: relative;
bottom: 7.7em;
left: 1.7em;
width: 3em;
color: var(--mustard-yellow);
background-color: var(--onyx-black);
/* padding: 1em; */
/* had to change the padding to 0.9em because the background was visible
below the animated tele once shake happened. */
padding: 0.9em;
z-index: -1; /* I'm not sure if it's good practice to use negative z-index but this is the only way to get the text behind the tv */
letter-spacing: 2px;
font-family: 'Gochi Hand', 'Just Another Hand', cursive;
}
.tv img:hover{
/* animation will last for a duration of 1 second */
animation: tele-shake 1s;
/* every time the animation finishes it will immediately start again */
animation-iteration-count: infinite;
}
@keyframes tele-shake {
0% { transform: translate(1.6px, 1.6px) rotate(0deg); }
10% { transform: translate(-1.8px, -2.8px) rotate(-1deg); }
20% { transform: translate(-3.7px, 0.4px) rotate(1deg); }
30% { transform: translate(3.6px, 2.6px) rotate(0deg); }
40% { transform: translate(1.6px, -1.5px) rotate(1deg); }
50% { transform: translate(-1.9px, 2.5px) rotate(-1deg); }
60% { transform: translate(-3.5px, 1.5px) rotate(0deg); }
70% { transform: translate(3.5px, 2.2px) rotate(-1deg); }
80% { transform: translate(-2px, -2px) rotate(1deg); }
90% { transform: translate(1.8px, 2.5px) rotate(0deg); }
100% { transform: translate(1.7px, -2.6px) rotate(-1deg); }
}
/* To-Do List Skeleton: */
.list-container {
background: var(--onyx-black);
max-width: 24em;
top: 30%;
left: 30%;
right: 50%;
min-height: 100px;
border-radius: 0px;
z-index: 2;
margin: 50px auto auto auto;
justify-content: space-evenly;
}
/**/
.main {
margin-top: 6em;
}
/* List input button */
.list-input {
position: relative;
padding: 20px;
}
.list-input input{
/* width: 74%; This is effecting the checkbx width */
height: 15px;
padding: 10px;
color: var(--sharp-retroPink);
position: relative;
border-radius: 0px;
font-family:'Gochi Hand', 'Just Another Hand', cursive;
font-size: 16px;
border-style: solid;
border-color: var(--sharp-retroPink);
background-color: var(--onyx-black);
border-width: 2px;
letter-spacing: 0.1em;
}
.list-input input:focus{
outline:none;
}
.list-input button{
position: relative;
float: right;
font-weight: 500;
font-size: 16px;
background-color: var(--onyx-black);
border: none;
color: var(--sharp-retroPink);
cursor: pointer;
outline: none;
width: 15%;
height: 39px;
border-radius: 0px;
border-style: solid;
border-color: var(--sharp-retroPink);
border-width: 2px;
font-family:'Gochi Hand', 'Just Another Hand', cursive;
padding: 5px;
letter-spacing: 0.1em;
align-items: center;
margin-left: 3px;
}
.delete {
color: var(--venetian-red);
border-color: var(--venetian-red);
}
/* List Headings */
.listCategoryContainer {
background: var(--onyx-black);
width: auto;
z-index: 2;
padding: 20px;
position: relative;
position: relative;
margin: 0;
margin-bottom: 50px;
height: 40px;
}
.listCategoryTitle {
color: var(--white-color);
font-size: 24px;
word-wrap: break-word;
text-align: center;
letter-spacing: 0.1em;
margin-bottom: 50%;
padding-top: 0%;
}
/* static animation for signal failure effect */
.tv-static {
position: fixed;
z-index: -1;
margin: auto;
width: 100vw;
height: 100vh;
background-image: repeating-conic-gradient(var(--sharp-retroPink), var(--skyBlue-color) 0.00085%);
background-size: cover;
background-position: center;
animation: error-static 0.5s steps(2, jump-both) infinite both;
transform: translate3d(0, 0, 0);
}
@keyframes error-static {
0% {
-webkit-transform: scale(1) translateY(0);
transform: scale(1) translateY(0);
-webkit-transform-origin: 50% 16%;
transform-origin: 50% 100%;
}
100% {
-webkit-transform: scale(1.25) translateY(-15px);
transform: scale(1.25) translateY(-15px);
-webkit-transform-origin: top;
transform-origin: top;
}
}
.movie-name {
width: 100%;
margin: 0 auto;
display: flex;
align-items: center;
margin-bottom: 5px;
background-color: var(--onyx-black);
}
.movie-name input.new-film {
width: 70%;
}
/* Titles to be added to list: */
.titles{
border-radius: 0px;
width: 91.3%;
position: relative;
background-color: var(--white-color);
padding: 30px 20px;
margin-top: 10px;
}
/* Strike through movie title */
.movie-title {
color: var(--white-color);
width: 90%;
position: relative;
overflow: hidden; /* hides the strikethrough on default */
}
.movie-title::after { /* creates a pseudo-element that is a child of the movie title */
position: absolute;
border-top: 2px solid var(--white-color); /* the border is acting as the line through*/
top: calc(50% - 0.1em); /* move the border down to the middle of the text */
left: 0;
width: 100%; /* length of the border aka striketrough */
content: ''; /* only works with this added! */
display: block;
transform: translateX(-100%); /* this is offsetting it 100% to the side */
transition: transform .25s ease-in-out;
}
.movie-title.strikethrough::after {
transform: translateX(0); /* This brings the border back to the text */
}
@media (max-width: 700px) {
.tv {
margin: 0;
z-index: 20;
}
.tv img {
width: 7em;
}
.tv p {
bottom: 7.2em;
left: 1.7em;
font-size: 10px;
line-height: 10px;
}
}
@media (max-width: 600px) {
.main {
margin-top: 7em;
}
}
@media (max-width: 415px) {
.main {
margin-right: 1em;
margin-left: 1em;
}
}