Repository navigation
Expand file tree
/
Copy pathshared.css
More file actions
96 lines (87 loc) · 2.96 KB
/
Copy pathshared.css
File metadata and controls
96 lines (87 loc) · 2.96 KB
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
/* SPDX-License-Identifier: AGPL-3.0-only */
/* What the hub and every game share: Muldle's night-sky palette, the page
background and the footer. A game adds its own stylesheet after this. */
:root {
--bg: #0b0e1a;
--bg2: #121631;
--border: #3a3f5c;
--text: #e8eaf2;
--dim: #9aa0b8;
--accent: #7ea6e0;
--good: #4c9a4c;
--warn: #b8a038;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
min-height: 100vh;
min-height: 100dvh;
display: flex;
flex-direction: column;
align-items: center;
font-family: "Segoe UI", system-ui, sans-serif;
color: var(--text);
background: var(--bg);
}
/* a faint star field (a fixed layer: background-attachment: fixed on body
is broken on iOS Safari) */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background-image:
radial-gradient(1px 1px at 12% 22%, #fff8 50%, transparent 50%),
radial-gradient(1px 1px at 78% 12%, #fff6 50%, transparent 50%),
radial-gradient(1.5px 1.5px at 55% 35%, #fff9 50%, transparent 50%),
radial-gradient(1px 1px at 32% 68%, #fff5 50%, transparent 50%),
radial-gradient(1px 1px at 88% 55%, #fff7 50%, transparent 50%),
radial-gradient(1.5px 1.5px at 8% 85%, #fff6 50%, transparent 50%),
radial-gradient(1px 1px at 66% 90%, #fff5 50%, transparent 50%),
linear-gradient(180deg, #0b0e1a 0%, #141a3a 100%);
}
a { color: var(--accent); }
.link-button {
background: none;
border: none;
color: var(--accent);
font: inherit;
text-decoration: underline;
cursor: pointer;
}
.foot {
margin-top: auto;
padding: 1.5rem 1rem 1rem;
max-width: 40rem;
text-align: center;
font-size: 0.8rem;
color: var(--dim);
line-height: 1.5;
}
/* The way back to the hub, top left in every game: the hub's star and its
name, small and dim (user, 08-10-2026). The star
is a mask, so it takes the text's colour. */
.hub-mark {
display: inline-flex;
align-items: center;
gap: 0.35rem;
color: var(--dim);
font-size: 0.85rem;
text-decoration: none;
}
.hub-mark::before {
content: "";
flex: none;
width: 1em;
height: 1em;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 8l6 15.5 16.5 1.2-12.7 10.6 4 16.2L32 42.6l-13.8 8.9 4-16.2L9.5 24.7l16.5-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 8l6 15.5 16.5 1.2-12.7 10.6 4 16.2L32 42.6l-13.8 8.9 4-16.2L9.5 24.7l16.5-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hub-mark:hover, .hub-mark:focus-visible { color: var(--text); }
/* Forced colours (Windows High Contrast) would paint the star's background
in Canvas, so it would vanish, and with it a phone's star-only link: keep
it in the system's link colour. */
@media (forced-colors: active) {
.hub-mark::before { forced-color-adjust: none; background: LinkText; }
}