lgonda1998 commited on
Commit
89451c9
·
verified ·
1 Parent(s): 245e374

Add blur robustness experiment and comparison tracking

Browse files
Files changed (1) hide show
  1. style.css +184 -23
style.css CHANGED
@@ -4,75 +4,233 @@
4
  background: #f6f7fb;
5
  font-synthesis: none;
6
  }
 
7
  * { box-sizing: border-box; }
8
- body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #ffffff 0%, #f6f7fb 45%, #eef1f7 100%); }
 
 
 
 
 
 
9
  button, input, select, textarea { font: inherit; }
10
- .page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 24px; }
11
- .guide-linkbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 11px 15px; border: 1px solid #d6e3f4; border-radius: 14px; background: #edf5ff; color: #334965; font-size: .9rem; font-weight: 700; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  .guide-linkbar a { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; color: #174f9e; font-weight: 800; text-decoration: none; }
13
  .guide-linkbar a:hover { text-decoration: underline; }
14
  .guide-linkbar a:focus-visible { outline: 3px solid #f7b844; outline-offset: 3px; }
 
15
  .hero { width: 100%; margin-bottom: 20px; }
16
- .eyebrow, .section-kicker { margin: 0 0 10px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #52627a; }
17
- h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; }
18
- .lede { max-width: 940px; margin: 14px 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; color: #4b5563; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  .lesson-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
20
- .lesson-strip span { padding: 8px 11px; border: 1px solid #dfe4ec; border-radius: 999px; background: rgba(255,255,255,.76); color: #52627a; font-size: .86rem; }
 
 
 
 
 
 
 
21
  .lesson-strip b { margin-right: 4px; color: #111827; }
22
- .workspace { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr); gap: 20px; align-items: start; }
23
- .card { border: 1px solid #e0e5ed; border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: 0 18px 50px rgba(26,39,63,.08); }
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  .controls, .result { padding: 24px; }
25
  .result { position: sticky; top: 16px; }
26
  .step { display: flex; gap: 13px; align-items: flex-start; }
27
- .step-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #111827; color: #fff; font-size: .82rem; font-weight: 750; }
 
 
 
 
 
 
 
 
 
 
 
 
28
  .grow { flex: 1; min-width: 0; }
29
  .control-label { font-weight: 700; }
30
  .helper { margin: 6px 0 0; color: #667085; font-size: .92rem; line-height: 1.5; }
31
  .sample-title { margin: 0; }
32
  .sample-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
33
- .shuffle-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d8dee8; border-radius: 10px; background: #fff; color: #344054; cursor: pointer; font-size: .82rem; font-weight: 700; }
 
 
 
 
 
 
 
 
 
 
34
  .shuffle-button:hover:not(:disabled) { background: #f7f8fa; }
35
  .shuffle-button:disabled { opacity: .45; cursor: not-allowed; }
36
- .input-kicker { margin: 0 0 4px; color: #344054; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
 
 
 
 
 
 
 
37
  .example-head { margin-top: 18px; }
38
- .sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
39
- .sample-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #e0e5ed; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  .sample-card:hover { transform: translateY(-1px); border-color: #aeb8c6; box-shadow: 0 8px 18px rgba(26,39,63,.08); }
41
  .sample-card.selected { border-color: #111827; box-shadow: 0 0 0 2px #111827; }
42
  .sample-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1f5; }
43
- .sample-card span { display: block; padding: 8px 9px 9px; overflow: hidden; color: #475467; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
 
 
 
 
 
 
 
 
 
44
  .sample-card small { display: block; padding: 0 9px 9px; color: #8a94a4; font-size: .67rem; line-height: 1.2; letter-spacing: .01em; }
 
45
  .or-row { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: #98a2b3; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
46
  .or-row::before, .or-row::after { content: ''; height: 1px; flex: 1; background: #eceff4; }
47
  .file-input { width: 100%; margin-top: 16px; padding: 11px; border: 1px dashed #bac3d2; border-radius: 14px; background: #fafbfc; }
48
  .divider { height: 1px; margin: 22px 0; background: #eceff4; }
49
- .model-select, textarea { width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px solid #cfd7e3; border-radius: 12px; background: #fff; color: #111827; }
 
 
 
 
 
 
 
 
50
  .model-select:focus, textarea:focus { outline: 2px solid #111827; outline-offset: 2px; }
51
  .clip-controls { margin-top: 18px; }
52
  textarea { resize: vertical; line-height: 1.45; }
53
  .slider-row { display: flex; justify-content: space-between; gap: 12px; }
54
- #top-k-value, #blur-value { min-width: 48px; text-align: right; color: #334155; font-variant-numeric: tabular-nums; }
55
- #top-k, #blur-range { width: 100%; margin-top: 13px; accent-color: #111827; cursor: pointer; }
56
- #top-k:focus-visible, #blur-range:focus-visible { outline: 3px solid #f7b844; outline-offset: 4px; border-radius: 999px; }
57
- .run-button { width: 100%; margin-top: 24px; padding: 13px 18px; border: 0; border-radius: 14px; background: #111827; color: #fff; font-weight: 750; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
 
 
 
 
 
 
 
 
 
 
 
58
  .run-button:not(:disabled):hover { transform: translateY(-1px); }
59
  .run-button:disabled { opacity: .38; cursor: not-allowed; }
60
  .status { min-height: 1.4em; margin: 14px 0 0; color: #52627a; font-size: .9rem; }
61
  .progress-wrap { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
62
  .progress-bar { width: 0; height: 100%; border-radius: inherit; background: #111827; transition: width .2s ease; }
 
63
  .result-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
64
  .result h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
65
  .badge { padding: 7px 10px; border-radius: 999px; background: #eef2f7; color: #536176; font-size: .82rem; font-weight: 700; white-space: nowrap; }
66
  .badge.ready { background: #e8f7ef; color: #17623c; }
67
  .badge.running { background: #fff4df; color: #805600; }
68
  .badge.error { background: #fdecec; color: #9b2c2c; }
69
- .preview-wrap { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; border-radius: 16px; background: #101318; }
70
- #preview-image { display: block; max-width: 100%; max-height: 560px; object-fit: contain; transition: filter .15s ease; }
 
 
 
 
 
 
 
 
 
71
  .preview-wrap.empty #preview-image { display: none; }
72
  #preview-placeholder { margin: 0; padding: 32px; color: #9aa4b2; text-align: center; }
73
  .preview-wrap:not(.empty) #preview-placeholder { display: none; }
74
  .summary { margin: 16px 0; padding: 13px 15px; border-radius: 13px; background: #f7f8fa; color: #344054; font-weight: 650; line-height: 1.5; }
75
- .run-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -5px 0 16px; }
 
 
 
 
 
76
  .run-meta[hidden] { display: none; }
77
  .run-meta > span { min-width: 0; padding: 9px 10px; border: 1px solid #e8ebf0; border-radius: 11px; background: #fff; }
78
  .run-meta b { display: block; margin-bottom: 3px; color: #7a8595; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
@@ -86,6 +244,7 @@ tbody tr:last-child td { border-bottom: 0; }
86
  .score-wrap { display: grid; grid-template-columns: 58px minmax(70px, 1fr); gap: 9px; align-items: center; font-variant-numeric: tabular-nums; }
87
  .score-track { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
88
  .score-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #111827, #5e6c84); }
 
89
  .explain { margin-top: 16px; padding: 18px 24px; }
90
  .explain-title { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -.02em; }
91
  .explain-copy { margin: 10px 0 14px; color: #536176; line-height: 1.55; }
@@ -104,6 +263,7 @@ tbody tr:last-child td { border-bottom: 0; }
104
  .runtime-note b { display: block; margin-bottom: 5px; color: #111827; font-size: .88rem; }
105
  .runtime-note span { color: #667085; font-size: .84rem; line-height: 1.45; }
106
  footer { padding: 14px 2px 0; color: #7a8595; font-size: .84rem; }
 
107
  @media (max-width: 820px) {
108
  .page-shell { width: min(100% - 20px, 720px); padding: 22px 0 20px; }
109
  .workspace { grid-template-columns: 1fr; }
@@ -111,6 +271,7 @@ footer { padding: 14px 2px 0; color: #7a8595; font-size: .84rem; }
111
  .preview-wrap { min-height: 280px; }
112
  .runtime-note { grid-template-columns: 1fr; }
113
  }
 
114
  @media (max-width: 520px) {
115
  .card { border-radius: 17px; }
116
  .controls, .result, .explain, .history { padding: 18px; }
 
4
  background: #f6f7fb;
5
  font-synthesis: none;
6
  }
7
+
8
  * { box-sizing: border-box; }
9
+
10
+ body {
11
+ margin: 0;
12
+ min-height: 100vh;
13
+ background: radial-gradient(circle at top, #ffffff 0%, #f6f7fb 45%, #eef1f7 100%);
14
+ }
15
+
16
  button, input, select, textarea { font: inherit; }
17
+
18
+ .page-shell {
19
+ width: min(1180px, calc(100% - 32px));
20
+ margin: 0 auto;
21
+ padding: 28px 0 24px;
22
+ }
23
+
24
+ .guide-linkbar {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: space-between;
28
+ flex-wrap: wrap;
29
+ gap: 10px;
30
+ margin: 0 0 24px;
31
+ padding: 11px 15px;
32
+ border: 1px solid #d6e3f4;
33
+ border-radius: 14px;
34
+ background: #edf5ff;
35
+ color: #334965;
36
+ font-size: .9rem;
37
+ font-weight: 700;
38
+ }
39
  .guide-linkbar a { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; color: #174f9e; font-weight: 800; text-decoration: none; }
40
  .guide-linkbar a:hover { text-decoration: underline; }
41
  .guide-linkbar a:focus-visible { outline: 3px solid #f7b844; outline-offset: 3px; }
42
+
43
  .hero { width: 100%; margin-bottom: 20px; }
44
+ .eyebrow, .section-kicker {
45
+ margin: 0 0 10px;
46
+ font-size: .78rem;
47
+ font-weight: 750;
48
+ letter-spacing: .08em;
49
+ text-transform: uppercase;
50
+ color: #52627a;
51
+ }
52
+
53
+ h1 {
54
+ margin: 0;
55
+ font-size: clamp(2.35rem, 5vw, 4rem);
56
+ line-height: 1;
57
+ letter-spacing: -.045em;
58
+ }
59
+
60
+ .lede {
61
+ max-width: 940px;
62
+ margin: 14px 0 0;
63
+ font-size: clamp(1.05rem, 2vw, 1.3rem);
64
+ line-height: 1.5;
65
+ color: #4b5563;
66
+ }
67
+
68
  .lesson-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
69
+ .lesson-strip span {
70
+ padding: 8px 11px;
71
+ border: 1px solid #dfe4ec;
72
+ border-radius: 999px;
73
+ background: rgba(255,255,255,.76);
74
+ color: #52627a;
75
+ font-size: .86rem;
76
+ }
77
  .lesson-strip b { margin-right: 4px; color: #111827; }
78
+
79
+ .workspace {
80
+ display: grid;
81
+ grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr);
82
+ gap: 20px;
83
+ align-items: start;
84
+ }
85
+
86
+ .card {
87
+ border: 1px solid #e0e5ed;
88
+ border-radius: 22px;
89
+ background: rgba(255,255,255,.93);
90
+ box-shadow: 0 18px 50px rgba(26,39,63,.08);
91
+ }
92
+
93
  .controls, .result { padding: 24px; }
94
  .result { position: sticky; top: 16px; }
95
  .step { display: flex; gap: 13px; align-items: flex-start; }
96
+ .step-number {
97
+ display: grid;
98
+ place-items: center;
99
+ width: 28px;
100
+ height: 28px;
101
+ flex: 0 0 28px;
102
+ border-radius: 50%;
103
+ background: #111827;
104
+ color: #fff;
105
+ font-size: .82rem;
106
+ font-weight: 750;
107
+ }
108
+
109
  .grow { flex: 1; min-width: 0; }
110
  .control-label { font-weight: 700; }
111
  .helper { margin: 6px 0 0; color: #667085; font-size: .92rem; line-height: 1.5; }
112
  .sample-title { margin: 0; }
113
  .sample-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
114
+ .shuffle-button {
115
+ flex: 0 0 auto;
116
+ padding: 7px 10px;
117
+ border: 1px solid #d8dee8;
118
+ border-radius: 10px;
119
+ background: #fff;
120
+ color: #344054;
121
+ cursor: pointer;
122
+ font-size: .82rem;
123
+ font-weight: 700;
124
+ }
125
  .shuffle-button:hover:not(:disabled) { background: #f7f8fa; }
126
  .shuffle-button:disabled { opacity: .45; cursor: not-allowed; }
127
+ .input-kicker {
128
+ margin: 0 0 4px;
129
+ color: #344054;
130
+ font-size: .78rem;
131
+ font-weight: 800;
132
+ letter-spacing: .04em;
133
+ text-transform: uppercase;
134
+ }
135
  .example-head { margin-top: 18px; }
136
+
137
+ .sample-grid {
138
+ display: grid;
139
+ grid-template-columns: repeat(2, minmax(0, 1fr));
140
+ gap: 10px;
141
+ margin-top: 12px;
142
+ }
143
+ .sample-card {
144
+ min-width: 0;
145
+ padding: 0;
146
+ overflow: hidden;
147
+ border: 1px solid #e0e5ed;
148
+ border-radius: 12px;
149
+ background: #fff;
150
+ cursor: pointer;
151
+ text-align: left;
152
+ transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
153
+ }
154
  .sample-card:hover { transform: translateY(-1px); border-color: #aeb8c6; box-shadow: 0 8px 18px rgba(26,39,63,.08); }
155
  .sample-card.selected { border-color: #111827; box-shadow: 0 0 0 2px #111827; }
156
  .sample-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1f5; }
157
+ .sample-card span {
158
+ display: block;
159
+ padding: 8px 9px 9px;
160
+ overflow: hidden;
161
+ color: #475467;
162
+ font-size: .78rem;
163
+ font-weight: 700;
164
+ text-overflow: ellipsis;
165
+ white-space: nowrap;
166
+ }
167
  .sample-card small { display: block; padding: 0 9px 9px; color: #8a94a4; font-size: .67rem; line-height: 1.2; letter-spacing: .01em; }
168
+
169
  .or-row { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: #98a2b3; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
170
  .or-row::before, .or-row::after { content: ''; height: 1px; flex: 1; background: #eceff4; }
171
  .file-input { width: 100%; margin-top: 16px; padding: 11px; border: 1px dashed #bac3d2; border-radius: 14px; background: #fafbfc; }
172
  .divider { height: 1px; margin: 22px 0; background: #eceff4; }
173
+ .model-select, textarea {
174
+ width: 100%;
175
+ margin-top: 10px;
176
+ padding: 11px 12px;
177
+ border: 1px solid #cfd7e3;
178
+ border-radius: 12px;
179
+ background: #fff;
180
+ color: #111827;
181
+ }
182
  .model-select:focus, textarea:focus { outline: 2px solid #111827; outline-offset: 2px; }
183
  .clip-controls { margin-top: 18px; }
184
  textarea { resize: vertical; line-height: 1.45; }
185
  .slider-row { display: flex; justify-content: space-between; gap: 12px; }
186
+ #top-k-value { min-width: 48px; text-align: right; color: #334155; font-variant-numeric: tabular-nums; }
187
+ #top-k { width: 100%; margin-top: 13px; accent-color: #111827; }
188
+
189
+ .run-button {
190
+ width: 100%;
191
+ margin-top: 24px;
192
+ padding: 13px 18px;
193
+ border: 0;
194
+ border-radius: 14px;
195
+ background: #111827;
196
+ color: #fff;
197
+ font-weight: 750;
198
+ cursor: pointer;
199
+ transition: transform .15s ease, opacity .15s ease;
200
+ }
201
  .run-button:not(:disabled):hover { transform: translateY(-1px); }
202
  .run-button:disabled { opacity: .38; cursor: not-allowed; }
203
  .status { min-height: 1.4em; margin: 14px 0 0; color: #52627a; font-size: .9rem; }
204
  .progress-wrap { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
205
  .progress-bar { width: 0; height: 100%; border-radius: inherit; background: #111827; transition: width .2s ease; }
206
+
207
  .result-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
208
  .result h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
209
  .badge { padding: 7px 10px; border-radius: 999px; background: #eef2f7; color: #536176; font-size: .82rem; font-weight: 700; white-space: nowrap; }
210
  .badge.ready { background: #e8f7ef; color: #17623c; }
211
  .badge.running { background: #fff4df; color: #805600; }
212
  .badge.error { background: #fdecec; color: #9b2c2c; }
213
+
214
+ .preview-wrap {
215
+ position: relative;
216
+ display: grid;
217
+ place-items: center;
218
+ min-height: 360px;
219
+ overflow: hidden;
220
+ border-radius: 16px;
221
+ background: #101318;
222
+ }
223
+ #preview-image { display: block; max-width: 100%; max-height: 560px; object-fit: contain; }
224
  .preview-wrap.empty #preview-image { display: none; }
225
  #preview-placeholder { margin: 0; padding: 32px; color: #9aa4b2; text-align: center; }
226
  .preview-wrap:not(.empty) #preview-placeholder { display: none; }
227
  .summary { margin: 16px 0; padding: 13px 15px; border-radius: 13px; background: #f7f8fa; color: #344054; font-weight: 650; line-height: 1.5; }
228
+ .run-meta {
229
+ display: grid;
230
+ grid-template-columns: repeat(3, minmax(0, 1fr));
231
+ gap: 8px;
232
+ margin: -5px 0 16px;
233
+ }
234
  .run-meta[hidden] { display: none; }
235
  .run-meta > span { min-width: 0; padding: 9px 10px; border: 1px solid #e8ebf0; border-radius: 11px; background: #fff; }
236
  .run-meta b { display: block; margin-bottom: 3px; color: #7a8595; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
 
244
  .score-wrap { display: grid; grid-template-columns: 58px minmax(70px, 1fr); gap: 9px; align-items: center; font-variant-numeric: tabular-nums; }
245
  .score-track { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
246
  .score-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #111827, #5e6c84); }
247
+
248
  .explain { margin-top: 16px; padding: 18px 24px; }
249
  .explain-title { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -.02em; }
250
  .explain-copy { margin: 10px 0 14px; color: #536176; line-height: 1.55; }
 
263
  .runtime-note b { display: block; margin-bottom: 5px; color: #111827; font-size: .88rem; }
264
  .runtime-note span { color: #667085; font-size: .84rem; line-height: 1.45; }
265
  footer { padding: 14px 2px 0; color: #7a8595; font-size: .84rem; }
266
+
267
  @media (max-width: 820px) {
268
  .page-shell { width: min(100% - 20px, 720px); padding: 22px 0 20px; }
269
  .workspace { grid-template-columns: 1fr; }
 
271
  .preview-wrap { min-height: 280px; }
272
  .runtime-note { grid-template-columns: 1fr; }
273
  }
274
+
275
  @media (max-width: 520px) {
276
  .card { border-radius: 17px; }
277
  .controls, .result, .explain, .history { padding: 18px; }