@ywkrlerche/richardwho 1.0.39 โ 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +417 -60
- package/games/soundboard/button.png +0 -0
- package/games/soundboard/button_pressed.png +0 -0
- package/games/soundboard/index.html +71 -0
- package/games/soundboard/main.js +356 -0
- package/games/soundboard/sounds/kawhi-laugh.mp3 +0 -0
- package/games/soundboard/sounds/kawhi-laughs.mp3 +0 -0
- package/games/soundboard/sounds.js +9013 -0
- package/games/soundboard/style.css +352 -0
- package/games.json +1 -1
- package/index.html +40 -16
- package/package.json +1 -1
- package/style.css +93 -28
package/index.html
CHANGED
|
@@ -13,9 +13,29 @@
|
|
|
13
13
|
// Apply the saved tab disguise and theme before anything else shows (app.js has the full theme code)
|
|
14
14
|
try {
|
|
15
15
|
var s = JSON.parse(localStorage.getItem("rug-settings") || "{}");
|
|
16
|
-
|
|
16
|
+
// Which holiday theme is on today (null = none). Shared with app.js as window.rugHoliday.
|
|
17
|
+
window.rugHoliday = function (now) {
|
|
18
|
+
now = now || new Date();
|
|
19
|
+
var y = now.getFullYear(), m = now.getMonth(), d = now.getDate(), today = new Date(y, m, d).getTime(), DAY = 864e5;
|
|
20
|
+
// Easter Sunday (Gregorian computus)
|
|
21
|
+
var a = y % 19, b = Math.floor(y / 100), c = y % 100, h = (19 * a + b - Math.floor(b / 4) - Math.floor((b - Math.floor((b + 8) / 25) + 1) / 3) + 15) % 30;
|
|
22
|
+
var l = (32 + 2 * (b % 4) + 2 * Math.floor(c / 4) - h - c % 4) % 7, mm = Math.floor((a + 11 * h + 22 * l) / 451);
|
|
23
|
+
var easter = new Date(y, Math.floor((h + l - 7 * mm + 114) / 31) - 1, (h + l - 7 * mm + 114) % 31 + 1).getTime();
|
|
24
|
+
var thanksgiving = 1 + (4 - new Date(y, 10, 1).getDay() + 7) % 7 + 21; // 4th Thursday of November
|
|
25
|
+
if ((m === 11 && d === 31) || (m === 0 && d <= 7)) return "newyear";
|
|
26
|
+
if (m === 1 && d <= 14) return "valentines";
|
|
27
|
+
if (m === 2 && d >= 10 && d <= 17) return "stpatricks";
|
|
28
|
+
if (today >= easter - 7 * DAY && today <= easter + DAY) return "easter";
|
|
29
|
+
if (m === 6 && d <= 5) return "july4";
|
|
30
|
+
if (m === 9) return "halloween";
|
|
31
|
+
if (m === 10 && d <= thanksgiving + 1) return "thanksgiving";
|
|
32
|
+
if (m === 11 && d <= 26) return "christmas";
|
|
33
|
+
return null;
|
|
34
|
+
};
|
|
35
|
+
var t = s.theme === "black" || s.theme === "white" ? s.theme : window.rugHoliday() || "black";
|
|
17
36
|
document.documentElement.dataset.theme = t === "white" ? "light" : "dark";
|
|
18
|
-
if (t
|
|
37
|
+
if (t !== "black" && t !== "white") document.documentElement.classList.add(t);
|
|
38
|
+
if (/^(newyear|valentines|stpatricks|easter|july4|thanksgiving)$/.test(t)) document.documentElement.classList.add("fest");
|
|
19
39
|
if (s.tabTitle) document.title = s.tabTitle;
|
|
20
40
|
if (s.tabIcon) document.getElementById("tab-icon").href = s.tabIcon;
|
|
21
41
|
} catch (e) {}
|
|
@@ -103,7 +123,6 @@
|
|
|
103
123
|
<input id="home-input" type="search" placeholder="Search 352 gamesโฆ" autocomplete="off" spellcheck="false" aria-label="Search games">
|
|
104
124
|
<span class="sweep" aria-hidden="true"></span>
|
|
105
125
|
</form>
|
|
106
|
-
<div class="home-apps" id="home-apps"></div>
|
|
107
126
|
<p class="home-sub" id="home-sub"></p>
|
|
108
127
|
<p class="online" id="online" hidden><span class="online-dot"></span><span id="online-count"></span></p>
|
|
109
128
|
<!-- bottom-left corner: bookmark chip, latest version, what's new -->
|
|
@@ -274,11 +293,10 @@
|
|
|
274
293
|
<div class="chat-log" id="chat-log" aria-live="polite"></div>
|
|
275
294
|
<p class="chat-typing" id="chat-typing" aria-live="polite"></p>
|
|
276
295
|
<p class="chat-status" id="chat-status" aria-live="polite"></p>
|
|
277
|
-
<!-- Emoji
|
|
296
|
+
<!-- Emoji picker, opened by ๐ -->
|
|
278
297
|
<div class="picker" id="picker" hidden>
|
|
279
|
-
<div class="picker-tabs" id="picker-tabs" role="tablist" aria-label="Emoji
|
|
298
|
+
<div class="picker-tabs" id="picker-tabs" role="tablist" aria-label="Emoji"></div>
|
|
280
299
|
<div class="picker-grid" id="picker-grid"></div>
|
|
281
|
-
<p class="picker-credit">Stickers: Noto Emoji by Google, CC BY 4.0</p>
|
|
282
300
|
</div>
|
|
283
301
|
<!-- Poll maker, opened by ๐ -->
|
|
284
302
|
<form class="poll-maker" id="poll-maker" autocomplete="off" hidden>
|
|
@@ -292,13 +310,19 @@
|
|
|
292
310
|
<form class="chat-form" id="chat-form" autocomplete="off" hidden>
|
|
293
311
|
<input id="chat-name" class="chat-name" maxlength="40" placeholder="Nickname" spellcheck="false" aria-label="Nickname">
|
|
294
312
|
<input id="chat-text" class="chat-text" maxlength="200" placeholder="Say somethingโฆ (drop a photo here)" aria-label="Message">
|
|
295
|
-
<button class="icon-btn" type="button" id="emoji-btn" title="Emoji
|
|
296
|
-
<button class="icon-btn" type="button" id="photo-btn" title="Send a photo from your computer" aria-label="Send a photo">๐ท</button>
|
|
297
|
-
<button class="icon-btn" type="button" id="cam-btn" title="Take a photo
|
|
313
|
+
<button class="icon-btn" type="button" id="emoji-btn" title="Emoji" aria-label="Emoji" aria-expanded="false" aria-controls="picker">๐</button>
|
|
314
|
+
<button class="icon-btn" type="button" id="photo-btn" title="Send a photo or video from your computer" aria-label="Send a photo or video">๐ท</button>
|
|
315
|
+
<button class="icon-btn" type="button" id="cam-btn" title="Take a photo or record a video" aria-label="Camera">๐ธ</button>
|
|
316
|
+
<button class="icon-btn" type="button" id="voice-btn" title="Record a voice note" aria-label="Record a voice note">๐ค</button>
|
|
298
317
|
<button class="icon-btn" type="button" id="poll-btn" title="Make a poll" aria-label="Make a poll" aria-expanded="false" aria-controls="poll-maker">๐</button>
|
|
299
|
-
<input type="file" id="photo-input" accept="image/*" hidden>
|
|
318
|
+
<input type="file" id="photo-input" accept="image/*,video/*" hidden>
|
|
300
319
|
<button class="pill-btn" type="submit" id="chat-send">Send</button>
|
|
301
320
|
</form>
|
|
321
|
+
<!-- shown while a voice note records -->
|
|
322
|
+
<div class="voice-bar" id="voice-bar" hidden>
|
|
323
|
+
<span class="voice-dot" aria-hidden="true"></span><span>Recording voice note</span><span class="voice-time" id="voice-time">0:00</span>
|
|
324
|
+
<button class="text-btn" type="button" id="voice-cancel">Cancel</button><button class="pill-btn" type="button" id="voice-send">Send</button>
|
|
325
|
+
</div>
|
|
302
326
|
<p class="chat-note" id="chat-note" aria-live="polite"></p>
|
|
303
327
|
<div class="drop-hint" aria-hidden="true">Drop to send photo</div>
|
|
304
328
|
</div>
|
|
@@ -370,11 +394,9 @@
|
|
|
370
394
|
<h2>Look & feel</h2>
|
|
371
395
|
<label class="set-row"><span>Theme</span>
|
|
372
396
|
<select id="set-theme">
|
|
373
|
-
<option value="auto">
|
|
397
|
+
<option value="auto">Holiday (changes by itself)</option>
|
|
374
398
|
<option value="black">Black</option>
|
|
375
399
|
<option value="white">White</option>
|
|
376
|
-
<option value="halloween">Halloween</option>
|
|
377
|
-
<option value="christmas">Christmas</option>
|
|
378
400
|
</select>
|
|
379
401
|
</label>
|
|
380
402
|
<label class="set-row"><span>Clock</span>
|
|
@@ -437,15 +459,16 @@
|
|
|
437
459
|
</main>
|
|
438
460
|
|
|
439
461
|
<!-- TAKE A PHOTO WITH YOUR CAMERA (sent to the chat like any photo) -->
|
|
440
|
-
<div class="wheel-wrap" id="cam-wrap" hidden role="dialog" aria-label="
|
|
462
|
+
<div class="wheel-wrap" id="cam-wrap" hidden role="dialog" aria-label="Camera">
|
|
441
463
|
<div class="wheel-card cam-card">
|
|
442
464
|
<button class="wheel-x" type="button" id="cam-close" aria-label="Close">โ</button>
|
|
443
|
-
<h2>
|
|
444
|
-
<div class="cam-view"><video id="cam-video" playsinline autoplay muted></video><canvas id="cam-shot" hidden></canvas></div>
|
|
465
|
+
<h2>Camera</h2>
|
|
466
|
+
<div class="cam-view"><video id="cam-video" playsinline autoplay muted></video><canvas id="cam-shot" hidden></canvas><video id="cam-clip" playsinline controls controlslist="nodownload" hidden></video></div>
|
|
445
467
|
<p class="chat-note" id="cam-msg"></p>
|
|
446
468
|
<div class="wheel-actions">
|
|
447
469
|
<button class="pill-btn" type="button" id="cam-retake" hidden>โบ Retake</button>
|
|
448
470
|
<button class="pill-btn play" type="button" id="cam-snap">๐ธ Take photo</button>
|
|
471
|
+
<button class="pill-btn" type="button" id="cam-rec">โ Record video</button>
|
|
449
472
|
<button class="pill-btn play" type="button" id="cam-send" hidden>Send to chat</button>
|
|
450
473
|
</div>
|
|
451
474
|
</div>
|
|
@@ -541,6 +564,7 @@
|
|
|
541
564
|
|
|
542
565
|
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
|
543
566
|
|
|
567
|
+
|
|
544
568
|
<!-- First-visit tour (also from Settings โ Site tour) -->
|
|
545
569
|
<div class="tour" id="tour" hidden>
|
|
546
570
|
<div class="tour-spot" id="tour-spot"></div>
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
* { box-sizing: border-box; }
|
|
41
41
|
html, body { margin: 0; }
|
|
42
|
+
html { background: var(--bg); }
|
|
42
43
|
body {
|
|
43
44
|
min-height: 100vh; background: var(--bg); color: var(--text);
|
|
44
45
|
font: 15px/1.45 var(--font); overflow-x: hidden;
|
|
@@ -289,7 +290,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
|
|
|
289
290
|
.chat-log:not(.admin) .chat-msg.flagged { display: none; }
|
|
290
291
|
.chat-log.admin .chat-msg.flagged { outline: 1px dashed var(--danger); outline-offset: 3px; border-radius: 3px; }
|
|
291
292
|
.chat-msg .msg-acts { white-space: nowrap; }
|
|
292
|
-
.chat-sticker { display: block;
|
|
293
|
+
.chat-sticker { display: block; margin: 2px 0 0; font-size: 56px; line-height: 1.1; }
|
|
293
294
|
.chat-photo-btn { display: block; padding: 0; margin: 6px 0 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; max-width: min(320px, 100%); }
|
|
294
295
|
.chat-photo { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 6px; border: 1px solid var(--line); }
|
|
295
296
|
.chat-status { margin: 0; padding: 0 16px; font-size: 12px; color: var(--muted); }
|
|
@@ -694,26 +695,18 @@ body.chat-full { overflow: hidden; }
|
|
|
694
695
|
}
|
|
695
696
|
body:has(#view-ai:not([hidden])) .corner-links { display: none; }
|
|
696
697
|
|
|
697
|
-
/* ---------- Home: shortcut tiles for popular games ---------- */
|
|
698
|
-
.home-apps { display: grid; grid-template-columns: repeat(6, 74px); gap: 8px; margin-top: 18px; }
|
|
699
|
-
.home-app { display: flex; flex-direction: column; align-items: center; gap: 7px; height: 88px; padding: 11px 4px 6px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
|
|
700
|
-
.home-app:hover, .home-app:focus-visible { transform: translateY(-2px); border-color: var(--line-2); background: color-mix(in srgb, var(--panel) 95%, var(--text) 5%); }
|
|
701
|
-
.home-app-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; overflow: hidden; border-radius: 8px; }
|
|
702
|
-
.home-app-icon img { width: 100%; height: 100%; object-fit: cover; }
|
|
703
|
-
.home-app-icon span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 12px; font-weight: 800; }
|
|
704
|
-
.home-app-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; }
|
|
705
|
-
@media (max-width: 720px) { .home-apps { grid-template-columns: repeat(4, 74px); } }
|
|
706
698
|
|
|
707
699
|
/* ---------- Halloween (October, dark theme): night sky, moon, webs, bats, graveyard ---------- */
|
|
708
700
|
html.halloween[data-theme="dark"] {
|
|
709
701
|
--shine: #fdba74;
|
|
710
702
|
--glow-cyan: #fb923c;
|
|
711
703
|
}
|
|
712
|
-
html.halloween[data-theme="dark"] body { background:
|
|
704
|
+
html.halloween[data-theme="dark"], html.halloween[data-theme="dark"] body { background: #0b0613; }
|
|
713
705
|
html.halloween[data-theme="dark"] .aurora {
|
|
714
706
|
background:
|
|
715
707
|
radial-gradient(50vw 30vh at 30vw 0, rgba(109, 40, 217, .18), transparent 70%),
|
|
716
|
-
radial-gradient(60vw 24vh at 50vw 100vh, rgba(234, 88, 12, .07), transparent 70%)
|
|
708
|
+
radial-gradient(60vw 24vh at 50vw 100vh, rgba(234, 88, 12, .07), transparent 70%),
|
|
709
|
+
linear-gradient(180deg, #110820 0%, #0b0613 45%, #070409 100%);
|
|
717
710
|
}
|
|
718
711
|
/* the usual logo (same font, shine and hover), in cream with an orange-and-white shine */
|
|
719
712
|
html.halloween[data-theme="dark"] .wordmark {
|
|
@@ -733,8 +726,6 @@ html.halloween[data-theme="dark"] .rail-btn:hover { color: #fde9cc; background:
|
|
|
733
726
|
html.halloween[data-theme="dark"] .rail-btn.active { background: #fb923c; color: #170c20; }
|
|
734
727
|
html.halloween[data-theme="dark"] .rail-show { background: rgba(14, 8, 20, .94); border-color: rgba(253, 186, 116, .14); color: #fde9cc; }
|
|
735
728
|
html.halloween[data-theme="dark"] .home-search { border-color: rgba(253, 186, 116, .25); background: rgba(24, 12, 30, .75); border-radius: 8px; }
|
|
736
|
-
html.halloween[data-theme="dark"] .home-app { border-color: rgba(253, 186, 116, .16); background: rgba(24, 12, 30, .7); }
|
|
737
|
-
html.halloween[data-theme="dark"] .home-app:hover { border-color: rgba(253, 186, 116, .4); }
|
|
738
729
|
.spooky { position: fixed; inset: 0 0 0 var(--rail-w); z-index: -1; overflow: hidden; pointer-events: none; display: none; }
|
|
739
730
|
html.halloween[data-theme="dark"] .spooky { display: block; }
|
|
740
731
|
.spooky .stars { position: absolute; inset: 0; opacity: .4;
|
|
@@ -801,11 +792,12 @@ html.rail-peek .rail-show { display: none; }
|
|
|
801
792
|
|
|
802
793
|
/* ---------- Christmas (December, or picked in Settings): snow, lights, pines ---------- */
|
|
803
794
|
html.christmas[data-theme="dark"] { --shine: #fca5a5; --glow-cyan: #f87171; }
|
|
804
|
-
html.christmas[data-theme="dark"] body { background:
|
|
795
|
+
html.christmas[data-theme="dark"], html.christmas[data-theme="dark"] body { background: #08101c; }
|
|
805
796
|
html.christmas[data-theme="dark"] .aurora {
|
|
806
797
|
background:
|
|
807
798
|
radial-gradient(45vw 26vh at 25vw 0, rgba(220, 38, 38, .12), transparent 70%),
|
|
808
|
-
radial-gradient(45vw 26vh at 80vw 10vh, rgba(22, 163, 74, .12), transparent 70%)
|
|
799
|
+
radial-gradient(45vw 26vh at 80vw 10vh, rgba(22, 163, 74, .12), transparent 70%),
|
|
800
|
+
linear-gradient(180deg, #0b1424 0%, #08101c 50%, #060a12 100%);
|
|
809
801
|
}
|
|
810
802
|
html.christmas[data-theme="dark"] .wordmark {
|
|
811
803
|
background-image:
|
|
@@ -819,21 +811,12 @@ html.christmas[data-theme="dark"] .rail { background: rgba(8, 14, 26, .94); bord
|
|
|
819
811
|
html.christmas[data-theme="dark"] .rail-btn:hover { color: #fff; background: rgba(239, 68, 68, .14); }
|
|
820
812
|
html.christmas[data-theme="dark"] .rail-btn.active { background: #dc2626; color: #fff; }
|
|
821
813
|
html.christmas[data-theme="dark"] .home-search { border-color: rgba(248, 250, 252, .18); background: rgba(10, 18, 32, .8); border-radius: 8px; }
|
|
822
|
-
html.christmas[data-theme="dark"] .home-app { border-color: rgba(248, 250, 252, .1); background: rgba(10, 18, 32, .75); }
|
|
823
814
|
.xmas { position: fixed; inset: 0 0 0 var(--rail-w); z-index: -1; overflow: hidden; pointer-events: none; display: none; }
|
|
824
815
|
html.christmas[data-theme="dark"] .xmas { display: block; }
|
|
825
|
-
.xmas .lights { position: absolute; top:
|
|
816
|
+
.xmas .lights { position: absolute; top: 62px; left: 0; right: 0; height: 30px; }
|
|
826
817
|
.xmas .lights svg { position: absolute; inset: 0; width: 100%; height: 22px; fill: none; stroke: #1f2937; stroke-width: .5; }
|
|
827
818
|
.xmas .lights i { position: absolute; width: 7px; height: 11px; margin-left: -3px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: twinkle 2.2s ease-in-out infinite alternate; }
|
|
828
819
|
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
|
|
829
|
-
/* snow: a dotted layer twice the screen height slides down and loops (one transform, nothing redrawn) */
|
|
830
|
-
.xmas .snow { position: absolute; left: 0; right: 0; top: -100%; height: 200%; animation: snowfall 22s linear infinite;
|
|
831
|
-
background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 120px 140px, #fff, transparent),
|
|
832
|
-
radial-gradient(2.5px 2.5px at 230px 60px, #e2e8f0, transparent), radial-gradient(1.5px 1.5px at 300px 210px, #fff, transparent),
|
|
833
|
-
radial-gradient(2px 2px at 70px 250px, #f1f5f9, transparent);
|
|
834
|
-
background-size: 340px 280px; opacity: .55; }
|
|
835
|
-
.xmas .snow.s2 { animation-duration: 34s; background-size: 220px 190px; opacity: .3; }
|
|
836
|
-
@keyframes snowfall { to { transform: translateY(50%); } }
|
|
837
820
|
.xmas .hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 28vh; }
|
|
838
821
|
.xmas .pines { fill: #0d2a1c; }
|
|
839
822
|
.xmas .snowbank { fill: #cbd5e1; opacity: .16; }
|
|
@@ -841,11 +824,10 @@ html.christmas[data-theme="dark"] .xmas { display: block; }
|
|
|
841
824
|
.xmas .gift { position: absolute; bottom: 10px; font-size: 34px; opacity: .85; }
|
|
842
825
|
.xmas .gift.g1 { right: calc(10vw - 20px); }
|
|
843
826
|
.xmas .gift.g2 { right: calc(10vw + 72px); font-size: 28px; }
|
|
844
|
-
.xmas .snowman { position: absolute; bottom: 12px; left: max(300px, 24vw); font-size: 50px; opacity: .85; }
|
|
845
827
|
@media (prefers-reduced-motion: reduce) { .xmas * { animation: none !important; } }
|
|
846
828
|
@media (max-width: 720px) {
|
|
847
829
|
.xmas { inset: 0 0 56px 0; }
|
|
848
|
-
.xmas .gift.g2
|
|
830
|
+
.xmas .gift.g2 { display: none; }
|
|
849
831
|
.xmas .xmas-tree { font-size: 52px; right: 6vw; }
|
|
850
832
|
}
|
|
851
833
|
|
|
@@ -983,3 +965,86 @@ html.christmas[data-theme="dark"] .xmas { display: block; }
|
|
|
983
965
|
.tour-btns [hidden] { display: none; }
|
|
984
966
|
.tour-btns .pill-btn { color: var(--bg); background: var(--text); border-color: var(--text); }
|
|
985
967
|
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }
|
|
968
|
+
|
|
969
|
+
/* ---------- Short screens (Chromebooks, small laptops): give the home page room to breathe ---------- */
|
|
970
|
+
@media (max-height: 760px) and (min-width: 721px) {
|
|
971
|
+
.home { justify-content: center; padding-top: 70px; padding-bottom: 110px; }
|
|
972
|
+
.wordmark { font-size: clamp(40px, 10vh, 78px); margin-bottom: 18px; }
|
|
973
|
+
.home-search { height: 46px; width: min(480px, 100%); }
|
|
974
|
+
.home-sub { margin-top: 14px; }
|
|
975
|
+
.quote-strip { padding: 8px 14px; font-size: 13px; }
|
|
976
|
+
/* scenery: smaller and fewer pieces so it stays in the background */
|
|
977
|
+
.spooky .moon { width: 78px; top: 12vh; right: 8vw; }
|
|
978
|
+
.spooky .ghost, .spooky .spider, .spooky .bat.b2 { display: none; }
|
|
979
|
+
.spooky .web { width: clamp(110px, 11vw, 160px); }
|
|
980
|
+
.spooky .graveyard, .xmas .hills { height: 20vh; }
|
|
981
|
+
.spooky .pumpkin { font-size: 38px; }
|
|
982
|
+
.spooky .pumpkin.p2 { font-size: 28px; left: calc(max(300px, 24vw) + 44px); }
|
|
983
|
+
.xmas .xmas-tree { font-size: 52px; }
|
|
984
|
+
.xmas .gift { font-size: 24px; }
|
|
985
|
+
.xmas .snowman { font-size: 34px; }
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/* ---------- Chat videos and voice notes ---------- */
|
|
989
|
+
.chat-video { position: relative; display: grid; place-items: center; width: 220px; aspect-ratio: 16 / 10; margin: 4px 0 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #000; cursor: pointer; }
|
|
990
|
+
.chat-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
|
|
991
|
+
.chat-video-play { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 18px; }
|
|
992
|
+
.chat-video .chat-media-len { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; }
|
|
993
|
+
.chat-video-player { display: block; width: 260px; max-width: 100%; margin: 4px 0 0; border-radius: 8px; background: #000; }
|
|
994
|
+
.chat-voice { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--soft); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
|
|
995
|
+
.chat-voice .chat-media-len { color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
996
|
+
.chat-voice-player { display: block; width: 260px; max-width: 100%; height: 36px; margin: 4px 0 0; }
|
|
997
|
+
.voice-bar { display: flex; align-items: center; gap: 10px; margin: 0 10px 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); font-size: 13px; }
|
|
998
|
+
.voice-bar[hidden] { display: none; }
|
|
999
|
+
.voice-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: voice-blink 1s ease-in-out infinite alternate; }
|
|
1000
|
+
@keyframes voice-blink { to { opacity: .3; } }
|
|
1001
|
+
.voice-time { margin-right: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
1002
|
+
.voice-bar .pill-btn { color: var(--bg); background: var(--text); border-color: var(--text); }
|
|
1003
|
+
#cam-clip { width: 100%; border-radius: 6px; background: #000; }
|
|
1004
|
+
@media (prefers-reduced-motion: reduce) { .voice-dot { animation: none; } }
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
/* ---------- Snowman (Christmas decoration) ---------- */
|
|
1009
|
+
.xmas .snowman { position: absolute; bottom: 6px; right: calc(10vw + 150px); width: 70px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); transform-origin: 50% 100%; animation: pal-sway 4s ease-in-out infinite alternate; }
|
|
1010
|
+
@keyframes pal-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
|
|
1011
|
+
@media (max-width: 720px) { .xmas .snowman { width: 52px; right: calc(6vw + 70px); } }
|
|
1012
|
+
|
|
1013
|
+
/* Falling snow, hearts, leavesโฆ (drawn by app.js) */
|
|
1014
|
+
.fallers { position: fixed; top: 0; left: var(--rail-w); width: calc(100% - var(--rail-w)); height: 100%; z-index: -1; pointer-events: none; }
|
|
1015
|
+
.fallers[hidden] { display: none; }
|
|
1016
|
+
|
|
1017
|
+
/* ---------- More holiday themes: New Year's, Valentine's, St. Patrick's, Easter, Fourth of July, Thanksgiving ---------- */
|
|
1018
|
+
html.newyear { --f-bg: #0a0d1f; --f-bg2: #05060f; --f-a: #facc15; --f-b: #fde68a; --f-cream: #fef9e7; --f-glow1: rgba(250, 204, 21, .12); --f-glow2: rgba(99, 102, 241, .14); --f-on: #1a1405; --f-hill: #12162e; }
|
|
1019
|
+
html.valentines { --f-bg: #1f0a14; --f-bg2: #0f050a; --f-a: #f472b6; --f-b: #fb7185; --f-cream: #ffe4ef; --f-glow1: rgba(244, 114, 182, .16); --f-glow2: rgba(225, 29, 72, .12); --f-on: #2a0716; --f-hill: #2a0f1d; }
|
|
1020
|
+
html.stpatricks { --f-bg: #06170d; --f-bg2: #030b06; --f-a: #22c55e; --f-b: #facc15; --f-cream: #e7f8ec; --f-glow1: rgba(34, 197, 94, .15); --f-glow2: rgba(250, 204, 21, .08); --f-on: #04170a; --f-hill: #0b2414; }
|
|
1021
|
+
html.easter { --f-bg: #160f24; --f-bg2: #0b0814; --f-a: #c4b5fd; --f-b: #f9a8d4; --f-cream: #f5f0ff; --f-glow1: rgba(196, 181, 253, .15); --f-glow2: rgba(134, 239, 172, .1); --f-on: #1d1233; --f-hill: #1c2a1f; }
|
|
1022
|
+
html.july4 { --f-bg: #070b1f; --f-bg2: #03050f; --f-a: #ef4444; --f-b: #60a5fa; --f-cream: #f8fafc; --f-glow1: rgba(239, 68, 68, .13); --f-glow2: rgba(59, 130, 246, .15); --f-on: #fff; --f-hill: #0d1330; }
|
|
1023
|
+
html.thanksgiving { --f-bg: #1a0f06; --f-bg2: #0c0703; --f-a: #f59e0b; --f-b: #ea580c; --f-cream: #fdf1dc; --f-glow1: rgba(245, 158, 11, .13); --f-glow2: rgba(180, 83, 9, .12); --f-on: #1f1203; --f-hill: #24160a; }
|
|
1024
|
+
html.fest[data-theme="dark"] { --shine: var(--f-b); --glow-cyan: var(--f-a); }
|
|
1025
|
+
html.fest[data-theme="dark"], html.fest[data-theme="dark"] body { background: var(--f-bg2); }
|
|
1026
|
+
html.fest[data-theme="dark"] .aurora { background: radial-gradient(45vw 26vh at 25vw 0, var(--f-glow1), transparent 70%), radial-gradient(45vw 26vh at 80vw 10vh, var(--f-glow2), transparent 70%), linear-gradient(180deg, var(--f-bg) 0%, var(--f-bg2) 100%); }
|
|
1027
|
+
html.fest[data-theme="dark"] .wordmark {
|
|
1028
|
+
background-image:
|
|
1029
|
+
radial-gradient(circle var(--spot, 0px) at var(--mx, 50%) var(--my, 50%), #fff, transparent 70%),
|
|
1030
|
+
linear-gradient(100deg, var(--f-cream) 0%, var(--f-cream) 40%, var(--f-a) 46%, #fff 50%, var(--f-b) 54%, var(--f-cream) 60%, var(--f-cream) 100%);
|
|
1031
|
+
filter: drop-shadow(0 0 26px color-mix(in srgb, var(--f-a) 25%, transparent));
|
|
1032
|
+
}
|
|
1033
|
+
html.fest[data-theme="dark"] .boot-word { background-image: linear-gradient(100deg, var(--f-cream) 0%, var(--f-cream) 40%, var(--f-a) 46%, #fff 50%, var(--f-b) 54%, var(--f-cream) 60%, var(--f-cream) 100%); }
|
|
1034
|
+
html.fest[data-theme="dark"] .boot { background: radial-gradient(60vw 30vh at 50% 30%, var(--f-glow1), transparent 70%), var(--f-bg); }
|
|
1035
|
+
html.fest[data-theme="dark"] .rail { background: color-mix(in srgb, var(--f-bg) 94%, transparent); border-color: color-mix(in srgb, var(--f-a) 12%, transparent); }
|
|
1036
|
+
html.fest[data-theme="dark"] .rail-btn:hover { color: #fff; background: color-mix(in srgb, var(--f-a) 15%, transparent); }
|
|
1037
|
+
html.fest[data-theme="dark"] .rail-btn.active { background: var(--f-a); color: var(--f-on); }
|
|
1038
|
+
html.fest[data-theme="dark"] .rail-show { background: color-mix(in srgb, var(--f-bg) 94%, transparent); }
|
|
1039
|
+
html.fest[data-theme="dark"] .home-search { border-color: color-mix(in srgb, var(--f-a) 28%, transparent); background: color-mix(in srgb, var(--f-bg) 80%, transparent); border-radius: 8px; }
|
|
1040
|
+
.festive { position: fixed; inset: 0 0 0 var(--rail-w); z-index: -1; overflow: hidden; pointer-events: none; display: none; }
|
|
1041
|
+
html.fest[data-theme="dark"] .festive { display: block; }
|
|
1042
|
+
.festive-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 22vh; fill: var(--f-hill); }
|
|
1043
|
+
.festive-prop { position: absolute; bottom: 10px; font-size: var(--s); opacity: .9; animation: prop-bob 3.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--f-a) 30%, transparent)); }
|
|
1044
|
+
@keyframes prop-bob { to { transform: translateY(-5px) rotate(-3deg); } }
|
|
1045
|
+
@media (prefers-reduced-motion: reduce) { .festive * { animation: none !important; } }
|
|
1046
|
+
@media (max-width: 720px) {
|
|
1047
|
+
.festive { inset: 0 0 56px 0; }
|
|
1048
|
+
.fallers { left: 0; width: 100%; height: calc(100% - 56px); }
|
|
1049
|
+
.festive-prop:nth-of-type(n+3) { display: none; }
|
|
1050
|
+
}
|