Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
179 lines (160 loc) · 4.36 KB
/
Copy pathstyle.css
File metadata and controls
179 lines (160 loc) · 4.36 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
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
:root {
--bg: #f4f5f7;
--card: #ffffff;
--text: #1b1f24;
--muted: #5b6470;
--accent: #0a84ff;
--accent-text: #ffffff;
--border: #dde1e6;
--ok: #1f8f4e;
--no: #b3261e;
--log-bg: #ffffff;
--log-info: #2b3138;
--log-warn: #8a5a00;
--log-error: #b3261e;
--log-old: #8b939c;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #111418;
--card: #1a1e24;
--text: #e8eaed;
--muted: #9aa3ad;
--border: #2c323a;
--ok: #4cc27f;
--no: #ff7b72;
--log-bg: #15191e;
--log-info: #d6dbe0;
--log-warn: #f2c14e;
--log-error: #ff7b72;
--log-old: #6c757f;
}
}
* { box-sizing: border-box; }
html, body {
margin: 0;
min-height: 100%;
background: var(--bg);
color: var(--text);
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body {
display: grid;
place-items: center;
padding: 24px 16px;
/* leave room for the log panel at the bottom */
padding-bottom: calc(45vh + 24px);
}
/* Wide screens (incl. the Magic Leap 2 browser): log on the right, card centred in the rest. */
@media (min-width: 900px) {
body {
padding-bottom: 24px;
padding-right: 456px;
}
}
/* The WebGL canvas is only used inside the headset session. */
canvas { display: none; }
.panel {
width: 100%;
max-width: 460px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px;
}
h1 { margin: 0 0 4px; font-size: 1.6rem; }
.lead { margin: 0 0 16px; color: var(--muted); }
fieldset {
margin: 0 0 16px;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 10px;
}
legend { padding: 0 6px; font-weight: 600; }
fieldset label { display: block; padding: 3px 0; cursor: pointer; }
fieldset input { margin-right: 8px; }
.buttons { display: grid; gap: 8px; }
.diagnostics { margin-top: 16px; }
.diagnostics button { margin-top: 8px; }
.panel button {
width: 100%;
padding: 14px 18px;
border: 0;
border-radius: 10px;
background: var(--accent);
color: var(--accent-text);
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
}
.panel button.secondary {
background: transparent;
color: var(--accent);
border: 1px solid var(--accent);
font-size: 1rem;
padding: 10px 18px;
}
.panel button:disabled { opacity: 0.5; cursor: default; }
.status { min-height: 1.5em; margin: 12px 0; color: var(--muted); }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; }
details ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
code { font-size: 0.9em; }
.features { list-style: none; padding: 0; margin: 16px 0 0; font-size: 0.9rem; }
.features li.ok::before { content: "✓ "; color: var(--ok); }
.features li.no::before { content: "✗ "; color: var(--no); }
/* ---------- Log panel, bottom right ---------- */
.log-panel {
position: fixed;
right: 12px;
bottom: 12px;
width: min(432px, calc(100vw - 24px));
max-height: 45vh;
display: flex;
flex-direction: column;
background: var(--log-bg);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
z-index: 10;
}
@media (min-width: 900px) {
.log-panel { max-height: calc(100vh - 24px); }
}
.log-panel header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 10px;
border-bottom: 1px solid var(--border);
}
.log-actions { display: flex; gap: 6px; }
.log-actions button {
padding: 3px 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: transparent;
color: var(--text);
font-size: 0.8rem;
cursor: pointer;
}
#log-list {
list-style: none;
margin: 0;
padding: 6px 10px;
overflow-y: auto;
font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace;
word-break: break-word;
}
#log-list li { padding: 1px 0; color: var(--log-info); }
#log-list li.warn { color: var(--log-warn); }
#log-list li.error { color: var(--log-error); font-weight: 600; }
#log-list li.old { color: var(--log-old); font-weight: 400; }
.log-panel.collapsed #log-list { display: none; }
/* ?preview=1: diorama on the laptop screen, start card hidden. */
body.preview .panel { display: none; }
/* Build picker: the choice that matters most, so it stands out a little. */
#build-picker { border-color: var(--accent); }
#build-picker:disabled label { color: var(--muted); cursor: default; }
.note { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.note.warning { color: var(--no); font-weight: 600; }