-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.css
More file actions
235 lines (204 loc) · 6.43 KB
/
Copy pathmain.css
File metadata and controls
235 lines (204 loc) · 6.43 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
/* ═══════════════════════════════════════════════════════════
FONTS
Primary: SairaCondensed — condensed, sporty, great for long
player tags. Falls back to NotoSans for extended Latin /
Cyrillic, then to system CJK fonts (JP, ZH-SC, ZH-TC, KR)
so tournament names and player handles in any script render
correctly without bundling multi-hundred-MB CJK font files.
═══════════════════════════════════════════════════════════ */
@font-face {
font-family: "SairaCondensed";
src: url("./fonts/Saira/Saira_Condensed-Bold.ttf") format("truetype");
font-weight: 700;
}
@font-face {
font-family: "SairaCondensed";
src: url("./fonts/Saira/Saira_Condensed-SemiBold.ttf") format("truetype");
font-weight: 600;
}
@font-face {
font-family: "SairaCondensed";
src: url("./fonts/Saira/Saira_Condensed-Regular.ttf") format("truetype");
font-weight: 400;
}
/* Variable font — covers Latin, Cyrillic, Greek, and extended scripts */
@font-face {
font-family: "NotoSans";
src: url("./fonts/NotoSans/NotoSans.ttf") format("truetype");
font-weight: 100 900;
}
/* CJK variable fonts — per-character fallback in the font stack below */
@font-face {
font-family: "NotoSansJP";
src: url("./fonts/NotoSans/NotoSansJP.ttf") format("truetype");
font-weight: 100 900;
}
@font-face {
font-family: "NotoSansSC";
src: url("./fonts/NotoSans/NotoSansSC.ttf") format("truetype");
font-weight: 100 900;
}
@font-face {
font-family: "NotoSansTC";
src: url("./fonts/NotoSans/NotoSansTC.ttf") format("truetype");
font-weight: 100 900;
}
@font-face {
font-family: "NotoSansKR";
src: url("./fonts/NotoSans/NotoSansKR.ttf") format("truetype");
font-weight: 100 900;
}
/* Legacy — kept so layouts that still reference these names render */
@font-face {
font-family: "RobotoCondensed";
src: url("./include/RobotoCondensed.ttf") format("truetype");
}
@font-face {
font-family: "Roboto";
src: url("./include/Roboto-Regular.ttf") format("truetype");
}
.tsh_transcript {
display: flex;
flex-direction: column;
.original {
font-size: 0.6em;
}
.transcript {
align-items: center;
justify-content: center;
font-size: 0.4em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
text-align: center;
line-height: 1;
white-space: nowrap;
overflow: hidden;
}
}
.tsh_character_container {
display: flex;
width: 100%;
height: 100%;
}
.tsh_character {
position: relative;
width: 100%;
height: 100%;
}
.tsh_character_img {
position: relative;
width: 100%;
height: 100%;
}
.tsh_variant_icon {
position: absolute;
bottom: 0;
left: 0;
width: 50%;
height: 75%;
background-size: contain;
background-repeat: no-repeat;
background-position: left bottom;
opacity: 0.75;
z-index: 99;
filter: drop-shadow(0 0 1px white) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
display: none;
}
/* Global text stroke — contrasting outline computed from each element's own color,
paint-order ensures the stroke renders behind the fill so letterforms stay clean */
body {
-webkit-text-stroke: 4px rgb(from currentColor calc(255 - r) calc(255 - g) calc(255 - b) / 0.15);
paint-order: stroke fill;
}
/* Override browser UA default (content-box) for all images */
img {
overflow-clip-margin: border-box;
}
/* <img> elements inside icon/avatar slots — fill the container */
.icon img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Sponsor logos — contain keeps the full logo visible without cropping */
.sponsor_icon img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
/* Horizontally-scrolling single-line text block used inside containers */
.text {
white-space: nowrap;
display: flex;
min-width: 100%;
width: fit-content;
place-items: center;
place-content: center;
height: 100%;
gap: inherit;
transform-origin: left;
line-height: 1;
}
/* ═══════════════════════════════════════════════════════════
DESIGN TOKENS (Material You–inspired dark theme)
═══════════════════════════════════════════════════════════ */
:root {
/* Font stack — per-character fallback:
SairaCondensed for Latin, NotoSans for extended Latin/Cyrillic/Greek,
then bundled CJK fonts for Japanese, Simplified/Traditional Chinese, Korean */
--font: "SairaCondensed", "NotoSans",
"NotoSansJP", "NotoSansSC", "NotoSansTC", "NotoSansKR",
sans-serif;
/* Shape */
--border-radius: 12px;
--border-radius-chip: 5px;
--border-radius-pill: 9999px;
/* Color */
--text-color: #ffffff;
/* Semi-transparent so the overlay sits slightly over the game feed */
--bg-color: rgb(18, 17, 28);
/* Player accent colors — defaults; overridden per-match via
DEFAULT_TEAM1_COLOR / DEFAULT_TEAM2_COLOR in TSHScoreboardWidget.py */
--p1-sponsor-color: oklch(
from var(--p1-score-bg-color)
calc(l + 0.13)
c
h
);
--p2-sponsor-color: oklch(
from var(--p2-score-bg-color)
calc(l + 0.13)
c
h
);
--p1-score-bg-color: #e53935;
--p2-score-bg-color: #1e88e5;
--p1-score-color: #ffffff;
--p2-score-color: #ffffff;
}
/* ═══════════════════════════════════════════════════════════
ALTERNATE THEMES (uncomment one block to activate)
═══════════════════════════════════════════════════════════ */
/* Dark Solid — fully opaque, no transparency */
/* :root {
--bg-color: #12111c;
--text-color: #ffffff;
--p1-score-bg-color: #e53935;
--p2-score-bg-color: #1e88e5;
--p1-score-color: #ffffff;
--p2-score-color: #ffffff;
} */
/* Light */
/* :root {
--text-color: #111111;
--bg-color: rgba(230, 232, 240, 0.92);
--p1-sponsor-color: #b71c1c;
--p2-sponsor-color: #0d47a1;
--p1-score-bg-color: #e53935;
--p2-score-bg-color: #1e88e5;
--p1-score-color: #ffffff;
--p2-score-color: #ffffff;
} */