browser-assistant 2.9.2 → 2.9.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-assistant",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "description": "Chrome extension and local Python backend for exploring webpage questions and coding exercises",
5
5
  "license": "MIT",
6
6
  "repository": {
package/server/main.py CHANGED
@@ -179,7 +179,7 @@ async def lifespan(_app: FastAPI):
179
179
  client.close()
180
180
 
181
181
 
182
- app = FastAPI(title="Browser Assistant API", version="2.9.2", lifespan=lifespan)
182
+ app = FastAPI(title="Browser Assistant API", version="2.9.3", lifespan=lifespan)
183
183
  install_local_guards(app)
184
184
 
185
185
  @app.exception_handler(HTTPException)
@@ -5,12 +5,85 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>Browser Assistant Local Practice Quiz</title>
7
7
  <style>
8
- body { font-family: system-ui, sans-serif; background: #f5f7fb; color: #172033; margin: 0; padding: 32px 16px; }
9
- main { max-width: 700px; margin: auto; background: #fff; padding: 28px; border-radius: 16px; box-shadow: 0 8px 28px #1d2d5030; }
10
- .tag { color:#3654c5; font-weight:700; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; }
11
- h1 { margin:.2rem 0 1.2rem; } .option { display:block; padding:13px; margin:9px 0; border:1px solid #d8deef; border-radius:9px; cursor:pointer; }
12
- .option:has(input:checked) { border-color:#4f6ee8; background:#edf1ff; } button { margin-top:16px; padding:11px 18px; border:0; border-radius:8px; background:#425ed9; color:#fff; font-weight:700; cursor:pointer; }
13
- #feedback { min-height:1.5em; font-weight:600; } .done { color:#168152; font-size:1.15rem; }
8
+ body {
9
+ box-sizing: border-box;
10
+ min-height: 100vh;
11
+ margin: 0;
12
+ padding: clamp(52px, 9vh, 100px) 16px 32px;
13
+ color-scheme: dark;
14
+ font: 16px/1.5 Inter, system-ui, sans-serif;
15
+ color: #f7fbff;
16
+ background: radial-gradient(ellipse at 0% 0%, #283f85, transparent 63%),
17
+ radial-gradient(ellipse at 95% 100%, #146263, transparent 62%),
18
+ linear-gradient(145deg, #101831, #080f20 62%);
19
+ }
20
+ body > main {
21
+ box-sizing: border-box;
22
+ max-width: 640px;
23
+ margin: auto;
24
+ padding: clamp(18px, 5vw, 36px);
25
+ border: 1px solid rgb(191 215 255 / 34%);
26
+ border-radius: 25px;
27
+ background: rgb(8 15 33 / 65%);
28
+ backdrop-filter: blur(24px) saturate(135%);
29
+ box-shadow: 0 22px 60px rgb(4 10 26 / 40%), inset 0 1px rgb(224 238 255 / 16%);
30
+ }
31
+ .tag { color: #acd6ff; font-size: .81rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
32
+ h1 { margin: 4px 0 12px; font-size: clamp(2rem, 6vw, 3.15rem); line-height: 1.07; letter-spacing: -.045em; }
33
+ #progress { margin: 0 0 16px; color: #c7d4eb; font-size: .875rem; font-weight: 650; }
34
+ #question-card {
35
+ padding: clamp(13px, 3vw, 22px);
36
+ border: 1px solid rgb(191 215 255 / 30%);
37
+ border-radius: 16px;
38
+ background: rgb(26 40 66 / 60%);
39
+ backdrop-filter: blur(16px);
40
+ box-shadow: 0 8px 24px rgb(4 10 26 / 24%);
41
+ }
42
+ #question-card h2 { margin: 0 0 14px; font-size: clamp(1.1rem, 3vw, 1.45rem); line-height: 1.3; }
43
+ .option {
44
+ display: flex;
45
+ align-items: center;
46
+ gap: 10px;
47
+ margin: 8px 0;
48
+ padding: 10px 12px;
49
+ border: 1px solid rgb(191 215 255 / 60%);
50
+ border-radius: 10px;
51
+ background: rgb(4 11 27 / 64%);
52
+ backdrop-filter: blur(12px);
53
+ cursor: pointer;
54
+ }
55
+ .option input { margin: 0; accent-color: #a5f6da; }
56
+ .option:hover { border-color: #acd6ff; }
57
+ .option:has(input:checked) { border-color: #a5f6da; background: rgb(20 67 66 / 82%); }
58
+ [data-practice-submit] {
59
+ margin-top: 10px;
60
+ padding: 10px 16px;
61
+ border: 1px solid transparent;
62
+ border-radius: 9px;
63
+ background: linear-gradient(125deg, #a5e8ff, #c2bbff);
64
+ color: #111b33;
65
+ font: inherit;
66
+ font-weight: 750;
67
+ cursor: pointer;
68
+ }
69
+ [data-practice-submit]:hover:not(:disabled) { background: linear-gradient(125deg, #c0f1ff, #d3ccff); }
70
+ [data-practice-submit]:disabled {
71
+ background: rgb(4 11 27 / 64%);
72
+ border: 1px dashed rgb(191 215 255 / 60%);
73
+ color: #c7d4eb;
74
+ cursor: not-allowed;
75
+ }
76
+ .option:has(input:focus-visible), [data-practice-submit]:focus-visible { outline: 2px solid #acd6ff; outline-offset: 2px; }
77
+ #feedback { margin: 12px 0 0; min-height: 1.5em; color: #f7fbff; font-weight: 650; }
78
+ .done { color: #a5f6da; font-weight: 700; }
79
+ @supports not (backdrop-filter: blur(12px)) {
80
+ body > main { background: #13213a; }
81
+ #question-card { background: #202e47; }
82
+ }
83
+ @media (forced-colors: active) {
84
+ .option:has(input:checked) { border-color: Highlight; }
85
+ .option:has(input:focus-visible), [data-practice-submit]:focus-visible { outline-color: Highlight; }
86
+ }
14
87
  </style>
15
88
  </head>
16
89
  <body>