Repository navigation
Expand file tree
/
Copy pathcommon.css
More file actions
175 lines (164 loc) · 6.51 KB
/
Copy pathcommon.css
File metadata and controls
175 lines (164 loc) · 6.51 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
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
:root {
--bg: #0f1117;
--surface: #181b25;
--surface2: #222634;
--border: #2c3044;
--accent: #6370f7;
--accent-soft: rgba(99, 112, 247, .16);
--text: #e8eaf6;
--text2: #969bb8;
--danger: #e05c6a;
--warn: #f0a843;
--success: #4cba72;
--mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
background: var(--bg);
color: var(--text);
font: 14px/1.4 "Segoe UI", system-ui, sans-serif;
font-variant-numeric: tabular-nums;
}
body > header {
display: flex;
align-items: center;
gap: 10px;
min-height: 52px;
padding: 8px 20px;
background: linear-gradient(180deg, #1c2030, var(--surface));
border-bottom: 1px solid var(--border);
}
body > header h1 { flex: 1; font-size: 1rem; letter-spacing: .02em }
body > header h1::before { content: "⏱"; margin-right: 8px }
#test-actions, .modal-actions, .modal-subheader { display: flex; align-items: center; gap: 8px }
#user-info, #test-auth-status { max-width: 26ch; overflow: hidden; color: var(--text2); text-overflow: ellipsis; white-space: nowrap }
.btn, input, textarea, select { font: inherit; color: inherit }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 6px 14px;
border: 1px solid transparent;
border-radius: 7px;
cursor: pointer;
white-space: nowrap;
transition: filter .12s, transform .12s, background-color .12s;
}
.btn:hover:not(:disabled) { filter: brightness(1.12) }
.btn:active:not(:disabled) { transform: translateY(1px) }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
.btn:disabled { opacity: .45; cursor: default }
.btn-primary { background: var(--accent); color: #fff }
.btn-secondary { background: var(--surface2); border-color: var(--border) }
.btn-danger { background: var(--danger); color: #fff }
.btn-warn { background: var(--warn); color: #1a1205; font-weight: 600 }
.btn-success { background: var(--success); color: #fff }
.btn-quiet { background: transparent; color: var(--text2) }
.btn-quiet:hover:not(:disabled) { background: rgba(224, 92, 106, .15); color: var(--danger) }
.btn-compact { padding: 2px 9px; font-size: .75rem }
.btn-icon { min-width: 30px; padding-inline: 6px }
input, textarea, select {
padding: 6px 10px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 7px;
color-scheme: dark;
}
.panel-empty { padding: 48px 24px; color: var(--text2); text-align: center }
.panel-empty.is-error { color: var(--danger) }
.spinner {
display: inline-block;
width: 15px;
height: 15px;
margin-right: 6px;
vertical-align: -3px;
border: 2px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.modal-overlay {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: rgba(5, 6, 10, .7);
backdrop-filter: blur(2px);
}
.modal {
width: min(500px, 96vw);
max-height: 88vh;
padding: 22px 24px;
overflow: auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.modal-narrow { width: min(400px, 96vw) }
.modal h2 { margin-bottom: 16px; font-size: 1rem }
.modal p { margin-bottom: 14px; line-height: 1.5 }
.modal-actions { justify-content: flex-end; margin-top: 18px }
.modal-subheader { justify-content: space-between; margin: 6px 0 8px; font-size: .8rem; font-weight: 600 }
.modal label { display: grid; gap: 4px; color: var(--text2); font-size: .76rem }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px }
.form-block { margin-bottom: 12px }
.field-note { color: var(--text2); font-size: .7rem }
.beta-warn { padding: 8px 12px; background: #3a2800; color: var(--warn); border: 1px solid var(--warn); border-radius: 7px; font-size: .76rem }
#error-banner { display: none; padding: 8px 20px; background: #3a0e14; color: var(--danger); border-bottom: 1px solid var(--danger) }
#session-bar {
position: sticky;
top: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
padding: 10px 20px;
background: #3a2a0a;
color: var(--warn);
border-bottom: 1px solid var(--warn);
font-weight: 600;
}
/* What is on screen dates from before the session expired. */
.session-expired #weeks, .session-expired #week-total { opacity: .45; filter: grayscale(.7); transition: opacity .2s }
#toast-area { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: grid; gap: 8px }
.toast {
max-width: 340px;
padding: 10px 14px;
background: var(--surface2);
border-left: 4px solid var(--accent);
border-radius: 7px;
box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
animation: toast-in .18s ease-out;
}
.toast.error { border-color: var(--danger) }
.toast.success { border-color: var(--success) }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px) } }
#signin-screen { flex: 1; display: none; align-items: center; justify-content: center; padding: 24px }
.signin-card { width: min(380px, 100%); padding: 40px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-align: center }
.signin-card h2 { margin-bottom: 8px; font-size: 1.3rem }
.signin-card p { margin-bottom: 28px; color: var(--text2); font-size: .85rem; line-height: 1.6 }
.signin-card .btn { width: 100%; padding: 10px }
.test-shell { padding: 18px 20px 32px }
.test-meta, .test-summary { color: var(--text2); font-size: .78rem; line-height: 1.6 }
.test-summary { margin-top: 12px }
#test-results { display: grid; gap: 10px; margin-top: 16px }
.test-result { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 10px }
.test-result-pass { border-left-color: var(--success) }
.test-result-fail { border-left-color: var(--danger) }
.test-result-skip { border-left-color: var(--warn) }
.test-result-running { border-left-color: var(--accent) }
.test-result-name, .test-result-body { font-family: var(--mono) }
.test-result-name { font-size: .82rem; font-weight: 600 }
.test-result-body { margin-top: 8px; color: var(--text2); font-size: .76rem; white-space: pre-wrap }
.test-app-frame { width: 1280px; height: 800px; border: 1px solid var(--border) }