-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
246 lines (230 loc) · 15.2 KB
/
Copy pathstyles.css
File metadata and controls
246 lines (230 loc) · 15.2 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/* Forecaster Light — minimal styles (adapted from the prototype look) */
*,*::before,*::after{box-sizing:border-box}
:root{
--bg:#f4f5f7; --card:#fff; --ink:#1c2230; --muted:#6b7280; --line:#e5e7eb;
--brand:#4a90d9; --brand-dark:#357abd; --ok:#2fa84f; --bad:#e04545; --warn:#e08a00;
--yes:#2fa84f; --no:#e04545;
--app-maxw:1800px; /* shared cap for header / content / tabs so nothing stretches edge-to-edge */
}
.bar-inner{ width:100%; max-width:var(--app-maxw); margin:0 auto }
/* App owns the viewport; the WebView itself never scrolls (fixes the Android PWA 100vh bug). */
html,body{margin:0; height:100%; overflow:hidden; overscroll-behavior:none}
body{
display:flex; flex-direction:column; height:100%;
font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
background:var(--bg); color:var(--ink);
-webkit-text-size-adjust:100%;
}
a{color:var(--brand); text-decoration:none; cursor:pointer}
hr{border:0; border-top:1px solid var(--line); margin:14px 0}
small{font-size:.85em}
.hide,.hidden{display:none !important}
.mut{color:var(--muted)}
.center{text-align:center}
.mt{margin-top:12px}.mb{margin-bottom:12px}
.row{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.grow{flex:1}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; word-break:break-all}
/* Top bar */
.topbar{
flex:0 0 auto; z-index:50; background:var(--card); border-bottom:1px solid var(--line);
padding-top:env(safe-area-inset-top);
}
.topbar .bar-inner{ display:flex; align-items:center; justify-content:space-between; padding:10px 14px; }
.brand{display:flex; align-items:center; gap:8px; cursor:pointer; min-width:0}
.brand-logo{height:30px; width:30px; border-radius:50%; object-fit:cover; display:block; box-shadow:0 1px 3px rgba(0,0,0,.15)}
.brand-text{height:20px; width:auto; max-width:150px; display:block}
.topbar-right{display:flex; align-items:center; gap:8px}
.topbar-balance{font-size:12.5px; font-weight:700; color:var(--brand); background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:3px 8px; cursor:pointer; white-space:nowrap}
.topbar-balance .tb-ic{margin-right:3px; opacity:.75}
.node-status{font-size:12px; color:var(--bad); font-weight:600}
.node-status.online{color:var(--ok)}
.node-status.syncing{color:var(--warn)}
.icon-btn{background:none; border:0; font-size:18px; cursor:pointer; padding:4px; line-height:1}
.lang-sel{width:auto; padding:3px 6px; font-size:12.5px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink)}
.lang-row{display:flex; align-items:center; gap:8px}
/* Content — the only scroll area; wrapper caps width on wide screens (kept ≤ 1800px). */
.scroll{flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain}
.content{width:100%; max-width:var(--app-maxw); margin:0 auto; padding:16px}
@media(max-width:600px){ .content{padding:10px} }
@media(min-width:1280px){ .content{padding:20px 26px} }
/* Card lists fill the width as a responsive grid (single column on mobile) */
#mk-list, #or-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:12px; align-items:start }
#mk-list > .card, #or-list > .card{ margin-bottom:0 }
#mk-list > .empty, #mk-list > .box, #or-list > .empty, #or-list > .box{ grid-column:1 / -1 }
#or-list > .section-title, #or-list > .hint{ grid-column:1 / -1 } /* section headers span the full grid row */
#mk-list > .tagbar, #or-list > .box{ grid-column:1 / -1 } /* in-category tag chips span the full grid row */
/* Keep form fields readable inside wide cards on large screens */
@media(min-width:1000px){
.content input[type=text], .content input[type=number], .content input[type=url],
.content input[type=password], .content input[type=datetime-local], .content select, .content textarea{ max-width:680px }
}
.title{font-size:20px; font-weight:700; margin:2px 0 10px}
.subtitle{font-size:15px; color:var(--muted); margin-bottom:10px}
.section-title{font-size:16px; font-weight:700; margin:18px 0 8px; border-bottom:2px solid var(--line); padding-bottom:5px}
/* Cards */
.card{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:12px}
.card.click{cursor:pointer; transition:box-shadow .15s, transform .05s}
.card.click:hover{box-shadow:0 4px 14px rgba(0,0,0,.07)}
.card.click:active{transform:translateY(1px)}
.card-q{font-weight:600; font-size:15px; margin-bottom:8px}
.card-dense{padding:11px 14px}
.pbar{margin:0 0 9px}
.pbar-row{display:flex; justify-content:space-between; font-size:13px; margin-bottom:4px}
.pbar-yes{color:var(--yes); font-weight:700}
.pbar-no{color:var(--no); font-weight:700}
.pbar-track{height:6px; background:var(--no); border-radius:4px; overflow:hidden}
.pbar-track > i{display:block; height:100%; background:var(--yes)}
/* named multi-segment outcome bar (binary & multi) — filled async by enrichCardBars() */
.obar-row{flex-wrap:wrap; gap:2px 10px; justify-content:flex-start; overflow:hidden}
.obar-lab{font-weight:700; font-size:12px; white-space:normal; overflow-wrap:anywhere; word-break:break-word; max-width:100%; min-width:0}
.obar-track{display:flex; background:var(--card2,rgba(255,255,255,.06))}
.obar-track > i{display:block; height:100%}
/* tag-chip count — separated pill with a soft translucent bg for contrast (not glued to the label) */
.chip-n{display:inline-block; margin-left:7px; padding:1px 7px; border-radius:9px; background:rgba(130,145,165,.20); color:var(--mut,#8a93a6); font-size:11px; font-weight:700; line-height:15px; vertical-align:middle}
.chip.active .chip-n{background:rgba(255,255,255,.24); color:inherit}
.perr-bar{position:fixed; left:0; right:0; bottom:0; z-index:200; background:var(--bad); color:#fff; box-shadow:0 -2px 12px rgba(0,0,0,.18)}
.perr-in{max-width:var(--app-maxw); margin:0 auto; padding:10px 16px; display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.4}
.perr-in span{flex:1; word-break:break-word}
.perr-x{background:transparent; border:0; color:#fff; font-size:20px; line-height:1; cursor:pointer; padding:0 4px}
.crumbs{display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; margin:6px 0 2px; font-size:12px}
.crumbs a{color:var(--muted); text-decoration:none}
.crumbs a:hover{color:var(--ink); text-decoration:underline}
.crumb-sep{color:var(--muted); opacity:.6}
/* #6: breadcrumb chips — category = blue bubble, tags = lighter blue bubbles */
.crumb-chip{display:inline-block; padding:2px 9px; border-radius:20px; font-size:11.5px; font-weight:600; line-height:1.6}
.crumb-chip.crumb-cat{background:#4a90d9; color:#fff}
.crumb-chip.crumb-cat:hover{background:#3f82c6; text-decoration:none; color:#fff}
.crumb-chip.crumb-tag{background:#e8f0fe; color:#2f6fb0}
.crumb-chip.crumb-tag:hover{background:#d8e6fb; text-decoration:none; color:#2f6fb0}
/* #1: winning outcome on a resolved market */
.oc-win .oc-name{color:#2fa84f; font-weight:700}
/* My-positions result: win/loss badge + colour-coded net delta (green/red/orange) */
.badge.pos-win{background:#e6f4ea; color:#2fa84f}
.badge.pos-loss{background:#fdecea; color:#d64545}
.delta-pos{color:#2fa84f; font-weight:600}
.delta-neg{color:#d64545; font-weight:600}
.delta-zero{color:#e08a00; font-weight:600}
.card-meta{display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:12.5px}
.card-meta .card-vol{margin-left:auto; color:var(--muted); white-space:nowrap}
.kv{display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px solid var(--line,rgba(255,255,255,.06)); font-size:13px}
.kv:last-child{border-bottom:0}
.kv .mut{flex:0 0 auto} .kv b{text-align:right; word-break:break-word}
/* Buttons */
.btn{display:inline-block; background:var(--brand); color:#fff; border:0; border-radius:8px;
padding:9px 14px; font-size:14px; font-weight:600; cursor:pointer; text-align:center}
.btn:hover{background:var(--brand-dark)}
.btn.small{padding:5px 10px; font-size:12.5px; border-radius:6px}
.btn.ghost{background:#eef1f5; color:var(--ink)}
.btn.ghost:hover{background:#e2e6ec}
.btn.ok{background:var(--ok)}.btn.ok:hover{filter:brightness(.94)}
.btn.bad{background:var(--bad)}.btn.bad:hover{filter:brightness(.94)}
.btn.block{display:block; width:100%}
.btn[disabled],.btn.disabled{opacity:.5; pointer-events:none}
.btn.chip{background:#eef1f5; color:var(--ink); border:1px solid var(--line); font-weight:500}
.btn.chip.active{background:var(--brand); color:#fff; border-color:var(--brand)}
.btn.chip.active .mut{color:inherit}
/* Forms */
label.lab{display:block; font-size:12.5px; color:var(--muted); font-weight:600; margin:10px 0 4px}
label.lab input[type=checkbox]{vertical-align:middle; margin:0 4px 0 0}
input[type=text],input[type=number],input[type=password],input[type=url],input[type=datetime-local],input[type=search],select,textarea{
width:100%; padding:9px 10px; border:1px solid #cfd4dc; border-radius:8px; font-size:15px; background:#fff; color:var(--ink)
}
textarea{min-height:70px; resize:vertical}
.hint{font-size:12px; color:var(--muted); margin-top:3px}
.field{margin-bottom:8px}
fieldset{border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:10px 0}
legend{font-size:12.5px; color:var(--muted); font-weight:700; padding:0 6px}
/* Badges */
.badge{display:inline-block; padding:2px 8px; border-radius:20px; font-size:11.5px; font-weight:700; line-height:1.6}
.tbl tr.row-muted td{opacity:.55} /* cancelled bet / withdrawn LP: dim the whole row */
.badge.st--1{background:#ececec; color:#666} /* deleted */
.badge.st-0{background:#fff3e0; color:#e08a00} /* waiting */
.badge.st-1{background:#e6f4ea; color:#2fa84f} /* active */
.badge.st-2{background:#eef1f5; color:#6b7280} /* closed */
.badge.st-3{background:#e8f0fe; color:#4a90d9} /* resolved */
.badge.risk{background:#fdecec; color:#e04545}
.badge.rel-ex{background:#e6f4ea;color:#1e7a37}.badge.rel-go{background:#eaf6ec;color:#2fa84f}
.badge.rel-av{background:#fff7e6;color:#e08a00}.badge.rel-nw{background:#e8f0fe;color:#4a90d9}
.badge.rel-po{background:#fdecec;color:#e04545}.badge.rel-un{background:#fbe0e0;color:#b71c1c}
/* Outcome / odds bar */
.oc{margin:8px 0}
.oc-row{display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; font-size:14px}
.oc-name{font-weight:600}
.oc-bar{height:8px; border-radius:5px; background:#eef1f5; overflow:hidden}
.oc-fill{height:100%; background:var(--brand)}
.oc-fill.yes{background:var(--yes)} .oc-fill.no{background:var(--no)}
/* Tables */
table.tbl{width:100%; border-collapse:collapse; font-size:13.5px}
table.tbl th,table.tbl td{padding:7px 6px; border-bottom:1px solid var(--line); text-align:left}
table.tbl th{color:var(--muted); font-weight:600; font-size:12px}
.scroll-x{overflow-x:auto; -webkit-overflow-scrolling:touch}
.lev-actions{display:flex; flex-wrap:wrap; gap:4px}
.lev-actions .btn.small{flex:1 1 auto; min-width:0}
.pos{color:var(--ok)} .neg{color:var(--bad)}
/* Filters */
.filters{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px}
/* Bottom tabs */
.tabs{flex:0 0 auto; z-index:50; background:var(--card);
border-top:1px solid var(--line); box-shadow:0 -2px 10px rgba(0,0,0,.04);
padding-bottom:env(safe-area-inset-bottom)}
.tabs .bar-inner{ display:flex; justify-content:center }
.tab{flex:1 1 0; max-width:220px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 4px;
color:var(--muted); font-size:11.5px; font-weight:600}
.tab.active{color:var(--brand)}
.tab-ico{font-size:18px; line-height:1}
/* Toasts */
.messages{position:fixed; top:calc(56px + env(safe-area-inset-top)); left:0; right:0; z-index:120; display:flex; flex-direction:column;
align-items:center; gap:6px; pointer-events:none}
.msg{pointer-events:auto; max-width:92%; padding:9px 14px; border-radius:8px; font-size:13.5px;
box-shadow:0 4px 14px rgba(0,0,0,.14); color:#fff}
.msg.info{background:#333a48}.msg.ok{background:var(--ok)}.msg.warn{background:var(--warn)}.msg.err{background:var(--bad)}
/* Corner notifications */
.notifs{position:fixed; right:12px; bottom:calc(74px + env(safe-area-inset-bottom)); z-index:110; display:flex; flex-direction:column-reverse; gap:8px; max-width:320px}
.notif{background:#333a48; color:#fff; border-radius:10px; padding:10px 30px 10px 12px; font-size:13px; line-height:1.35;
box-shadow:0 6px 20px rgba(0,0,0,.25); cursor:pointer; position:relative; animation:notifin .18s ease}
.notif:hover{background:#3d4557}
.notif b{color:#fff}
.notif-x{position:absolute; top:5px; right:9px; font-size:15px; opacity:.55; cursor:pointer}
.notif-x:hover{opacity:1}
@keyframes notifin{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}
/* Modal */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:100; display:flex; align-items:center; justify-content:center; padding:16px}
.modal{background:var(--card); border-radius:14px; padding:18px 18px; max-width:440px; width:100%; max-height:90vh; overflow:auto}
.modal h3{margin:0 0 10px; font-size:17px}
.modal-actions{display:flex; gap:8px; margin-top:14px}
/* Warning / info boxes */
.box{border-radius:10px; padding:10px 12px; margin:10px 0; font-size:13.5px; line-height:1.45}
.box.warn{background:#fff6e5; border:1px solid #f0c675}
.box.err{background:#fdecec; border:1px solid #f0b4b4}
.box.info{background:#eef4fd; border:1px solid #cadcf6}
.kv{display:flex; justify-content:space-between; padding:3px 0; font-size:13.5px}
.kv b{font-weight:600}
details.raw{margin-top:10px}
details.raw summary{cursor:pointer; color:var(--muted); font-size:12.5px}
details.raw pre{background:#0f1420; color:#c8d3e5; padding:10px; border-radius:8px; overflow:auto; font-size:11.5px; max-height:320px}
.pincode{letter-spacing:6px; text-align:center; font-size:22px}
.empty{text-align:center; color:var(--muted); padding:30px 10px}
.terms-list{margin:8px 0 8px 0; padding-left:18px}
.terms-list li{list-style:disc; margin:6px 0; font-size:13px; line-height:1.45; color:var(--ink)}
.spin{display:inline-block; width:14px; height:14px; border:2px solid var(--line); border-top-color:var(--brand); border-radius:50%; animation:sp .7s linear infinite; vertical-align:-2px}
@keyframes sp{to{transform:rotate(360deg)}}
/* coupon FAB (multi-bet) — floats above the bottom tab bar */
.cpn-fab{position:fixed;right:14px;bottom:76px;z-index:60;border:0;border-radius:22px;
padding:12px 18px;font-weight:700;background:var(--brand);color:#fff;cursor:pointer;
box-shadow:0 4px 18px rgba(0,0,0,.45)}
.cpn-fab:active{background:var(--brand-dark)}
/* a leg whose market closed while it sat in the coupon: dimmed, and its amount cannot be edited */
.card.cpn-dead{opacity:.6}
.card.cpn-dead .cpn-amt{pointer-events:none}
/* events (sportsbook) view — tappable outcome buttons on event cards */
.ev-outs{display:flex;gap:8px;margin:8px 0 2px;flex-wrap:wrap}
.ev-out{flex:1 1 0;min-width:72px;text-align:center;padding:8px 6px;border:1px solid var(--line);
border-radius:10px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.ev-out small{display:block;color:var(--muted);font-size:12px;margin-bottom:2px;overflow-wrap:anywhere}
.ev-out b{font-size:15px}
.ev-out:active{border-color:var(--brand)}
.ev-out.sel{border-color:var(--yes);background:rgba(47,168,79,.12)}
.ev-out.sel b{color:var(--yes)}
.ev-out-more{display:flex;flex-direction:column;justify-content:center;flex:0 0 auto;text-decoration:none}
.ev-more{display:block;text-align:center;color:var(--brand);font-size:13px;margin-top:8px;cursor:pointer}