word-games-theme 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,518 @@
1
+ ::placeholder {
2
+ font-weight: 400;
3
+ text-transform: capitalize;
4
+ }
5
+
6
+ .modal {
7
+ background: rgba(0, 0, 0, 0.6);
8
+ height: 100%;
9
+ width: 100%;
10
+ display: none;
11
+ pointer-events: none;
12
+ transition: all 0.3s ease-in-out;
13
+ }
14
+
15
+ .modal-content{
16
+ background-color: var(--primary-color);
17
+ box-shadow: 2px 2px 0px 0px #131313FC;
18
+ border-radius: 11px;
19
+ }
20
+ .modal-header{
21
+ border: none !important;
22
+ }
23
+
24
+ .active {
25
+ display: block;
26
+ pointer-events: auto;
27
+ }
28
+
29
+ /* create wordle box css */
30
+ .create-wordle {
31
+ box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
32
+ margin-bottom: 150px;
33
+ padding: 8rem 0;
34
+ background-color: var(--primary-color);
35
+ border-radius: 11px;
36
+ border:2px solid #1F1F1F
37
+ }
38
+
39
+ .alert-container {
40
+ font-size: 15px;
41
+ box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
42
+ position: fixed;
43
+ top: 160px;
44
+ left: 50%;
45
+ transform: translate(-50%, -50%);
46
+ width: 180px;
47
+ padding: 12px 0px;
48
+ text-align: center;
49
+ z-index: 9999999;
50
+ background: #000;
51
+ color: #fff;
52
+ border-radius: 4px;
53
+ }
54
+
55
+ .create-wordle .custom-word {
56
+ font-weight: 600;
57
+ text-transform: uppercase;
58
+ width: 376px !important;
59
+ height: 56px;
60
+ margin: 18px auto;
61
+ text-align: center;
62
+ outline: none;
63
+ border: 2px solid #1F1F1F;
64
+ background: #fff;
65
+ border-radius: 10px;
66
+ color: #000;
67
+ font-size: 12px;
68
+ box-shadow: 1px 2px 0px 0px #000000FC;
69
+ }
70
+
71
+ .wordle-game-link{
72
+ font-size: 13px;
73
+ width: 514px;
74
+ height: 97px;
75
+ display: block;
76
+ border: 2px solid #1F1F1F;
77
+ background: white;
78
+ text-align: center;
79
+ margin: 0 auto;
80
+ display: flex;
81
+ justify-content: center;
82
+ align-items: center;
83
+ border-radius: 10px;
84
+ box-shadow: 1px 2px 0px 0px #000000FC;
85
+
86
+ }
87
+ .create-wordle .generate-word-game-link{
88
+ margin: 5px auto;
89
+ }
90
+ .create-wordle .generate-word-game-link,
91
+ .copy-btn {
92
+ display: block;
93
+ background-color: #FFDA15;
94
+ border: 2px solid black;
95
+ color: #000;
96
+ padding: 17px 15px;
97
+ width: 247px;
98
+ border-radius: 10px;
99
+ font-size: 12px;
100
+ font-weight: 600;
101
+ }
102
+
103
+ .create-wordle .generate-word-game-link:hover,
104
+ .copy-btn:hover {
105
+ color: #fff !important
106
+ }
107
+
108
+ /* modal css for create wordle */
109
+ .close {
110
+ background-color: transparent;
111
+ border: none;
112
+ outline: none;
113
+ }
114
+
115
+ .times-icon {
116
+ font-size: 40px;
117
+ }
118
+
119
+ .modal-header .close {
120
+ margin: -1rem 0rem -1rem auto !important
121
+ }
122
+
123
+ .modal-dialog {
124
+ max-width: 600px !important;
125
+ margin: 0rem auto !important;
126
+ top: 60px !important;
127
+ }
128
+
129
+ .game-play-btn {
130
+ display: block;
131
+ background-color: #FFDA15;
132
+ border: 2px solid black;
133
+ color: #000;
134
+ padding: 17px 15px;
135
+ width: 247px;
136
+ border-radius: 10px;
137
+ font-size: 12px;
138
+ font-weight: 600;
139
+ }
140
+
141
+ .game-play-btn:hover {
142
+ color: #fff !important
143
+ }
144
+
145
+ .social-sharing-icons {
146
+ display: flex;
147
+ justify-content: center;
148
+ }
149
+
150
+
151
+ /* game layout css */
152
+ .game {
153
+ width: 100%;
154
+
155
+ }
156
+
157
+ .game .word-generator-link {
158
+ font-size: 18px;
159
+ background: #f8f9fa;
160
+ padding: 5px 15px;
161
+ color: #404040;
162
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
163
+ border-radius: 4px;
164
+ margin: 0 15px;
165
+ border: 1px solid rgba(0, 0, 0, .1)
166
+ }
167
+
168
+ .game .game-container .game-board {
169
+ width: 350px;
170
+ height: auto;
171
+ margin: 0 auto;
172
+ margin-top: 3px;
173
+ display: flex;
174
+ flex-wrap: wrap;
175
+ justify-content: center;
176
+ }
177
+
178
+ .game .game-container .game-board .tile {
179
+ display: flex;
180
+ justify-content: center;
181
+ align-items: center;
182
+ width: 55px;
183
+ height: 55px;
184
+ text-align: center;
185
+ border: 2px solid #dee1e9;
186
+ border-radius: 5px;
187
+ color: #363535;
188
+ font-size: 28px;
189
+ font-weight: 700;
190
+ margin: 3px;
191
+ max-width: 64px;
192
+ text-transform: uppercase;
193
+ transition: transform 240ms linear;
194
+ }
195
+
196
+ .game .game-container .game-board .tile:focus-visible {
197
+ outline: none !important;
198
+ }
199
+
200
+ .popAni {
201
+ animation: popAni 495ms ease-in-out;
202
+ }
203
+
204
+ .game .game-container .game-keyboard {
205
+ display: flex;
206
+ flex-direction: column;
207
+ width: 50%;
208
+ margin: 0rem auto
209
+ }
210
+
211
+ .game .game-container .game-keyboard-row {
212
+ display: flex;
213
+ flex-direction: row;
214
+ justify-content: center;
215
+ }
216
+
217
+ .game .game-container .key-btn {
218
+ align-items: center;
219
+ background-color: #edeff1;
220
+ border: 2px solid transparent;
221
+ border-radius: 4px;
222
+ color: inherit;
223
+ cursor: pointer;
224
+ display: flex;
225
+ font-size: 16px;
226
+ font-weight: 900;
227
+ justify-content: center;
228
+ margin: 3px;
229
+ min-height: 40px;
230
+ padding: 14px;
231
+ text-decoration: inherit;
232
+
233
+ }
234
+
235
+ .active-alert {
236
+ visibility: visible;
237
+ }
238
+ .share-game{
239
+ font-size: 15px;
240
+ font-weight: 600;
241
+ line-height:
242
+ 22.5px;
243
+ }
244
+
245
+ .tick {
246
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL7SURBVEhL7ZZdSB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
250
+ }
251
+
252
+ .close-icon {
253
+ background: url(/assets/images/close.png) no-repeat;
254
+ height: 20px;
255
+ margin: 10px 0;
256
+ background-position: center;
257
+ background-size: contain;
258
+ }
259
+
260
+ [data-state="active"] {
261
+ border-color: hsl(200, 1%, 34%);
262
+ }
263
+
264
+ [data-state="correct-spot"] {
265
+ color: #fff !important;
266
+ background-color: #6aaa64 !important;
267
+ border: none !important;
268
+ }
269
+
270
+ [data-state="wrong-spot"] {
271
+ color: #fff !important;
272
+ background-color: #c9b458 !important;
273
+ border: none !important;
274
+ }
275
+
276
+ [data-state="wrong-word"] {
277
+ color: white !important;
278
+ background-color: #787c7e !important;
279
+ border: none !important;
280
+ }
281
+
282
+ .shake {
283
+ animation: shake 240ms ease-in-out;
284
+ }
285
+
286
+ .dance {
287
+ animation: dance 495ms ease-in-out;
288
+ }
289
+
290
+ .flip {
291
+ transform: rotateX(90deg);
292
+ }
293
+
294
+ .wordle-game-restart {
295
+ width: 120px;
296
+ margin: 0 auto;
297
+ background: #57ac57;
298
+ color: #fff;
299
+ display: block;
300
+ font-weight: 600;
301
+ padding: 10px;
302
+ border-radius: 5px;
303
+ font-size: 16px;
304
+ margin-bottom: 1rem;
305
+ text-align: center;
306
+ }
307
+
308
+ .wordle-game-restart:hover {
309
+ color: #fff !important;
310
+ text-decoration: none !important;
311
+ }
312
+
313
+ @keyframes shake {
314
+ 10% {
315
+ transform: translateX(-5%);
316
+ }
317
+
318
+ 30% {
319
+ transform: translateX(5%);
320
+ }
321
+
322
+ 50% {
323
+ transform: translateX(-7.5%);
324
+ }
325
+
326
+ 70% {
327
+ transform: translateX(7.5%);
328
+ }
329
+
330
+ 90% {
331
+ transform: translateX(-5%);
332
+ }
333
+
334
+ 100% {
335
+ transform: translateX(0);
336
+ }
337
+ }
338
+
339
+ @keyframes dance {
340
+ 20% {
341
+ transform: translateY(-50%)
342
+ }
343
+
344
+ 40% {
345
+ transform: translateY(5%)
346
+ }
347
+
348
+ 60% {
349
+ transform: translateY(-25%)
350
+ }
351
+
352
+ 80% {
353
+ transform: translateY(2.5%)
354
+ }
355
+
356
+ 90% {
357
+ transform: translateY(-5%)
358
+ }
359
+
360
+ 100% {
361
+ transform: translateY(0%)
362
+ }
363
+ }
364
+
365
+ @keyframes popAni {
366
+ 0% {
367
+ transform: scale(.8);
368
+ opacity: 0;
369
+ }
370
+
371
+ 40% {
372
+ transform: scale(1.1);
373
+ opacity: 1;
374
+ }
375
+ }
376
+
377
+ .alert-Container {
378
+ position: fixed;
379
+ top: 10vh;
380
+ left: 50vw;
381
+ transform: translateX(-50%);
382
+ z-index: 10;
383
+ display: flex;
384
+ flex-direction: column;
385
+ align-items: center;
386
+ }
387
+
388
+ #confetti-canvas {
389
+ width: 100%;
390
+ position: fixed;
391
+ top: 0
392
+ }
393
+
394
+ .gameResult {
395
+ text-align: center;
396
+ width: 100%;
397
+ font-size: 18px;
398
+ font-weight: 900;
399
+ }
400
+
401
+ #result-guess-word {
402
+ background: #f8f9fa;
403
+ width: 100px;
404
+ text-align: center;
405
+ margin: 0 auto;
406
+ padding: 8px;
407
+ border-radius: 5px;
408
+ border: 1px dashed gray;
409
+ margin-top: 1rem;
410
+ font-size: 15px;
411
+ text-transform: uppercase;
412
+ font-weight: 600;
413
+ }
414
+
415
+ .wordle-game-button {
416
+ padding: 0px 15px;
417
+ color: #626568;
418
+ font-size: 14px;
419
+ background: #f5f7fb;
420
+ padding: 8px 5px;
421
+ border: none;
422
+ width: 100%;
423
+ /* font-weight: 700; */
424
+ border-radius: 7px;
425
+ display: flex;
426
+ text-decoration: none;
427
+ cursor: pointer;
428
+ justify-content: center;
429
+ align-items: center;
430
+ align-content: center;
431
+ margin: 6px 0px;
432
+ border: 1px solid rgba(0, 0, 0, 0.1);
433
+ }
434
+
435
+ .wordle-game-button:hover {
436
+ text-decoration: none !important;
437
+ }
438
+
439
+ .share-icon {
440
+ width: 50px;
441
+ height: 50px;
442
+ }
443
+
444
+ #wordle-examples {
445
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
446
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
447
+ padding: 1rem 0rem;
448
+ }
449
+
450
+ .wordle-game-spot {
451
+ padding: 20px;
452
+ border: 2px solid #3a3a3c;
453
+ margin: 2px;
454
+ display: inline-block;
455
+ line-height: 0;
456
+ font-weight: bold;
457
+ text-align: center;
458
+ font-size: 25px;
459
+ }
460
+
461
+ .wordle-game-absent {
462
+ background-color: #3a3a3c !important;
463
+ border-color: #3a3a3c !important;
464
+ color: #fff;
465
+ }
466
+
467
+ .wordle-game-present {
468
+ background-color: #b59f3b !important;
469
+ border-color: #b59f3b !important;
470
+ color: white;
471
+ }
472
+
473
+ .wordle-game-correct {
474
+ background-color: #538d4e !important;
475
+ border-color: #538d4e !important;
476
+ color: white;
477
+ }
478
+
479
+ .wordle-game-spot:before {
480
+ content: "\a0";
481
+ }
482
+
483
+ .wordle-game-spot[title]:before {
484
+ content: attr(title);
485
+ }
486
+
487
+ .wordle-game-row-active .wordle-game-spot {
488
+ border-color: #666;
489
+ }
490
+
491
+ @media (max-width: 768px) {
492
+ #create-wordle-form {
493
+ padding: 0 10px;
494
+ }
495
+
496
+ .create-wordle .custom-word {
497
+ width: 100%;
498
+ }
499
+
500
+ .tile {
501
+ caret-color: transparent;
502
+ cursor: default;
503
+ }
504
+
505
+ #exampleModal,
506
+ .wordletip {
507
+ padding: 15px;
508
+ }
509
+
510
+ .game .game-container .key-btn {
511
+ margin: 2px;
512
+ padding: 15px 10px;
513
+ }
514
+
515
+ .game .game-container .game-keyboard {
516
+ margin-top: 3rem !important;
517
+ }
518
+ }
@@ -0,0 +1,182 @@
1
+ .ws {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ }
7
+
8
+ .ws .errMessage {
9
+ display: none;
10
+ }
11
+
12
+
13
+
14
+ .ws .forms_data {
15
+ border: 2px solid rgba(0, 0, 0, 1);
16
+ padding: 0px 25px;
17
+ padding-top: 15px;
18
+ text-align: center;
19
+ box-shadow: 2px 3px 0px 0px #000000FC;
20
+ border-radius: 13px;
21
+ }
22
+
23
+ .forms_data .wordleSolver-label {
24
+ font-size: 14px;
25
+ font-weight: 600;
26
+ }
27
+
28
+ .forms_data .wordleSolver-field {
29
+ border-radius: 5px;
30
+ margin: 0 5px 0 0 !important;
31
+ font-size: 30px;
32
+ text-transform: uppercase;
33
+ text-align: center;
34
+ width: 48px;
35
+ height: 48px;
36
+ line-height: 55px;
37
+ font-weight: bold;
38
+ border: 1px solid rgba(0, 0, 0, 0.1);
39
+ background: #fff;
40
+ padding: 0 !important;
41
+ outline: none !important;
42
+ }
43
+
44
+ .forms_data .wordleSolver-field:focus {
45
+ box-shadow: unset !important;
46
+ /* border-color: #ced4da !important; */
47
+ }
48
+
49
+ #addMore {
50
+ font-size: 25px;
51
+ background-color: transparent;
52
+ border: none;
53
+ width: 100%;
54
+ text-align: right;
55
+ padding-right: 2px;
56
+ }
57
+
58
+ .wordlesolver-btn {
59
+ padding: 8px 25px;
60
+ font-size: 15px;
61
+ background-color: #FFB21D;
62
+ border-color: #FFB21D;
63
+ /* color: #fff; */
64
+ border-radius: 7px;
65
+ width: 111px;
66
+ font-weight: 900;
67
+ border: 2px solid black;
68
+ }
69
+
70
+ .wordlesolver-btn:focus {
71
+ outline: none;
72
+ box-shadow: unset !important;
73
+ }
74
+
75
+ .wordlesolver-btn:hover {
76
+ color: #fff;
77
+ }
78
+
79
+ .createWordleLink {
80
+ text-align: center;
81
+ display: block;
82
+ /* box-shadow: 0 0 1px rgb(0 0 0 / 10%); */
83
+ border: 2px solid black;
84
+ padding: 10px 15px;
85
+ width: 320px;
86
+ background: #FFB21D;
87
+ border-radius: 20px;
88
+ font-size: 15px;
89
+ margin-bottom: 2rem;
90
+ margin: 5px auto;
91
+ box-shadow: 1px 1px 0px 0px #000000FC;
92
+ color:#000 !important
93
+ }
94
+ .createWordleLink:hover{
95
+ text-decoration: none;
96
+ }
97
+
98
+ .allfiveletterswords {
99
+ background-color: white !important;
100
+ width: 75%;
101
+ margin: 10px auto;
102
+ height: auto;
103
+ box-shadow: 0 0 2px rgb(0 0 0 / 20%);
104
+ /* margin: 10px 0; */
105
+ border-radius: 15px;
106
+ }
107
+
108
+ .allfiveletterswords>.wordListHeading {
109
+ background: gray;
110
+ padding: 10px 0px 5px 25px;
111
+ color: #fff;
112
+ border-top-right-radius: 15px;
113
+ border-top-left-radius: 15px;
114
+ }
115
+
116
+ #wordleWordCount {
117
+ font-size: 18px;
118
+ width: 75%;
119
+ margin: 10px auto;
120
+ }
121
+
122
+ .ws-fcs {
123
+ color: #fff !important;
124
+ background-color: #20a815 !important;
125
+ }
126
+
127
+ .ws-fcs2 {
128
+ color: #fff !important;
129
+ background-color: #C59E28 !important;
130
+ }
131
+
132
+ .ws-fcs3 {
133
+ color: #fff !important;
134
+ background-color: #3D3D3E !important;
135
+ }
136
+
137
+ .related_post_heading {
138
+ width: 100%;
139
+ font-size: 46px;
140
+ text-align: left;
141
+ font-weight: 800;
142
+ font-stretch: normal;
143
+ font-style: normal;
144
+ line-height: 1.24;
145
+ letter-spacing: normal;
146
+ color: #11304e;
147
+ margin-bottom: 45px;
148
+ padding-top: 75px;
149
+ display: inline-block;
150
+ }
151
+
152
+ #wordleSolvererrorMsg {
153
+ margin: 10px auto;
154
+ width: 75%;
155
+ }
156
+
157
+ .refineSerach {
158
+ text-align: center;
159
+ display: none;
160
+ box-shadow: 0 0 1px rgb(0 0 0 / 10%);
161
+ border: none;
162
+ padding: 10px 15px;
163
+ width: 320px;
164
+ background: #20a815;
165
+ border-radius: 20px;
166
+ font-size: 15px;
167
+ margin-bottom: 2rem;
168
+ margin: 5px auto;
169
+ color: #fff;
170
+ }
171
+
172
+ .refineSerach:hover {
173
+ color: #fff !important
174
+ }
175
+
176
+ @media (max-width: 768px) {
177
+
178
+ .allfiveletterswords,
179
+ #wordleWordCount {
180
+ width: 80%;
181
+ }
182
+ }
@@ -44,7 +44,7 @@ const createWordle = (e) => {
44
44
  // openPopup.click()
45
45
  modal__wrapper.classList.add('active')
46
46
  copy_btn.innerHTML = "Copy Link"
47
- copy_btn.style.background = "dodgerblue"
47
+ // copy_btn.style.background = "dodgerblue"
48
48
  wordlePlayButton.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
49
49
  wordleGameLink.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
50
50
  wordleGameLink.innerHTML = `${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`