bep40 commited on
Commit
124d42b
·
verified ·
1 Parent(s): 0cbe29f

Fix wc2026.css: complete dark theme for .wc-data-box tables, force !important"

Browse files
Files changed (1) hide show
  1. static/wc2026.css +166 -99
static/wc2026.css CHANGED
@@ -1,116 +1,183 @@
1
- /* World Cup 2026 - CSS for bongda.com.vn API HTML content */
2
- /* Mirrors .ls-content styles so match/standings HTML renders correctly */
3
 
4
- .wc-bongda-content {
5
  font-size: 12px;
6
  color: #ddd;
 
 
7
  padding: 4px;
 
 
 
8
  }
9
- .wc-bongda-content ul { list-style: none; padding: 0; margin: 0; }
10
- .wc-bongda-content .title-content {
11
- display: flex; gap: 6px; align-items: center;
12
- background: #1a2a3a; border-radius: 4px; margin: 4px 0; padding: 5px 8px;
13
- }
14
- .wc-bongda-content .title-content img { width: 18px; height: 18px; }
15
- .wc-bongda-content .title-content strong { font-size: 11px; color: #8ab4d8; }
16
- .wc-bongda-content .match-detail,
17
- .wc-bongda-content li.match-detail {
18
- padding: 6px; border-bottom: 1px solid #1a2a3a; cursor: pointer;
19
- }
20
- .wc-bongda-content .match-detail:hover { background: #0d1a2a; }
21
- .wc-bongda-content .match { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
22
- .wc-bongda-content .datetime { width: 100%; font-size: 9px; color: #6a9fca; }
23
- .wc-bongda-content .teams { display: flex; width: 100%; align-items: center; gap: 4px; }
24
- .wc-bongda-content .team { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; text-decoration: none; }
25
- .wc-bongda-content .team .name { font-size: 11px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
26
- .wc-bongda-content .team .logo img { width: 18px; height: 18px; }
27
- .wc-bongda-content .home-team { justify-content: flex-end; text-align: right; }
28
- .wc-bongda-content .status { flex: 0 0 54px; text-align: center; }
29
- .wc-bongda-content .status a { color: #fff; text-decoration: none; font-weight: 800; font-size: 12px; }
30
- .wc-bongda-content .status .label { font-size: 8px; color: #6a9fca; display: block; }
31
- .wc-bongda-content .status .label.live { color: #e74c3c; }
32
- .wc-bongda-content .info, .wc-bongda-content .btns { display: none; }
33
- .wc-bongda-content .match-time { font-size: 9px; color: #6a9fca; }
34
 
35
- /* Tables (standings/BXH) */
36
- .wc-bongda-content table { width: 100%; border-collapse: collapse; font-size: 11px; color: #ccc; }
37
- .wc-bongda-content table th {
38
- background: #0d1a2a; color: #6a9fca; padding: 6px 4px;
39
- font-size: 10px; border-bottom: 1px solid #1a3a5a; text-align: left;
40
- }
41
- .wc-bongda-content table td { padding: 5px 4px; border-bottom: 1px solid #0d1a2a; }
42
- .wc-bongda-content table tr:hover { background: #0d1a2a; }
43
- .wc-bongda-content table .team-name,
44
- .wc-bongda-content table td a {
45
- display: flex; align-items: center; gap: 4px;
46
- color: #ddd; text-decoration: none;
47
- }
48
- .wc-bongda-content table .team-name img,
49
- .wc-bongda-content table td img { width: 16px; height: 16px; }
50
- .wc-bongda-content table .pts,
51
- .wc-bongda-content table td:last-child { font-weight: 800; color: #f0c040; }
52
 
53
- /* Group headers */
54
- .wc-bongda-content h3, .wc-bongda-content h4,
55
- .wc-bongda-content .group-name, .wc-bongda-content .round-name {
56
- font-size: 12px; font-weight: 800; color: #8ab4d8;
57
- padding: 8px 0 4px; margin-top: 8px;
58
- border-bottom: 1px solid #1a3a5a;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
- /* Player stats */
62
- .wc-bongda-content .player-row,
63
- .wc-bongda-content .stat-row {
64
- display: flex; align-items: center; gap: 6px;
65
- padding: 5px 8px; background: #0d1a2a; border-radius: 4px; margin: 3px 0;
66
- }
67
- .wc-bongda-content .player-name { flex: 1; font-size: 11px; color: #eee; }
68
- .wc-bongda-content .player-team { font-size: 9px; color: #6a9fca; }
69
- .wc-bongda-content .player-goals,
70
- .wc-bongda-content .player-assists { font-weight: 800; color: #f0c040; }
71
 
72
- /* H2H section */
73
- .wc-bongda-content .h2h-match,
74
- .wc-bongda-content .history-match {
75
- display: flex; align-items: center; gap: 6px;
76
- padding: 6px; border-bottom: 1px solid #0d1a2a;
77
- }
78
- .wc-bongda-content .h2h-date { font-size: 9px; color: #6a9fca; min-width: 60px; }
79
- .wc-bongda-content .h2h-teams { flex: 1; font-size: 11px; color: #ddd; }
80
- .wc-bongda-content .h2h-score { font-weight: 800; color: #fff; min-width: 40px; text-align: center; }
 
 
 
 
 
 
 
 
 
 
 
81
 
82
- /* Lineups */
83
- .wc-bongda-content .lineup-team { margin: 8px 0; }
84
- .wc-bongda-content .lineup-team h4 { font-size: 12px; color: #8ab4d8; margin-bottom: 6px; }
85
- .wc-bongda-content .lineup-player {
86
- display: flex; align-items: center; gap: 6px;
87
- padding: 4px 8px; font-size: 11px; color: #ccc;
88
- }
89
- .wc-bongda-content .lineup-player .number { color: #f0c040; font-weight: 700; min-width: 20px; }
90
- .wc-bongda-content .lineup-player img { width: 14px; height: 14px; }
 
 
 
 
91
 
92
- /* Commentary */
93
- .wc-bongda-content .commentary-item,
94
- .wc-bongda-content .event-item {
95
- display: flex; gap: 8px; padding: 6px; border-bottom: 1px solid #0d1a2a;
96
- }
97
- .wc-bongda-content .commentary-time,
98
- .wc-bongda-content .event-time { font-size: 10px; color: #f0c040; font-weight: 700; min-width: 30px; }
99
- .wc-bongda-content .commentary-text,
100
- .wc-bongda-content .event-text { font-size: 11px; color: #ccc; flex: 1; }
101
 
102
- /* Live indicator */
103
- .wc-bongda-content .live-indicator,
104
- .wc-bongda-content [class*="live"] { color: #e74c3c; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
- /* Generic links */
107
- .wc-bongda-content a { color: #8ab4d8; text-decoration: none; }
108
- .wc-bongda-content a:hover { color: #b4d4f8; }
 
 
 
 
 
 
109
 
110
- /* Images */
111
- .wc-bongda-content img { max-width: 100%; height: auto; }
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  /* Scrollbar */
114
- .wc-bongda-content::-webkit-scrollbar { width: 4px; }
115
- .wc-bongda-content::-webkit-scrollbar-track { background: transparent; }
116
- .wc-bongda-content::-webkit-scrollbar-thumb { background: #1a3a5a; border-radius: 2px; }
 
1
+ /* World Cup 2026 - Dark theme for scraped HTML tables */
2
+ /* Applied to .wc-data-box which wraps content from dantri/bongda */
3
 
4
+ .wc-data-box {
5
  font-size: 12px;
6
  color: #ddd;
7
+ max-height: 450px;
8
+ overflow-y: auto;
9
  padding: 4px;
10
+ line-height: 1.5;
11
+ background: #0a1020;
12
+ border-radius: 6px;
13
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
+ /* Force all text white */
16
+ .wc-data-box,
17
+ .wc-data-box * {
18
+ color: #ddd !important;
19
+ background-color: transparent !important;
20
+ border-color: #1a3050 !important;
21
+ }
 
 
 
 
 
 
 
 
 
 
22
 
23
+ /* Tables */
24
+ .wc-data-box table {
25
+ width: 100% !important;
26
+ border-collapse: collapse !important;
27
+ font-size: 11px !important;
28
+ margin: 6px 0 !important;
29
+ border: 1px solid #1a3050 !important;
30
+ }
31
+ .wc-data-box th {
32
+ background: #0b1e35 !important;
33
+ color: #6cc0f0 !important;
34
+ padding: 7px 5px !important;
35
+ font-size: 10px !important;
36
+ text-align: center !important;
37
+ font-weight: 700 !important;
38
+ border: 1px solid #1a3050 !important;
39
+ }
40
+ .wc-data-box td {
41
+ padding: 6px 5px !important;
42
+ border: 1px solid #0d1f30 !important;
43
+ text-align: center !important;
44
+ background: #0a1525 !important;
45
+ }
46
+ .wc-data-box tr:nth-child(even) td {
47
+ background: #0c1a2e !important;
48
+ }
49
+ .wc-data-box tr:hover td {
50
+ background: #122a45 !important;
51
+ }
52
+ .wc-data-box td:first-child,
53
+ .wc-data-box td:nth-child(2) {
54
+ text-align: left !important;
55
  }
56
 
57
+ /* Links */
58
+ .wc-data-box a {
59
+ color: #8ab4d8 !important;
60
+ text-decoration: none !important;
61
+ }
 
 
 
 
 
62
 
63
+ /* Headings */
64
+ .wc-data-box h1,
65
+ .wc-data-box h2,
66
+ .wc-data-box h3,
67
+ .wc-data-box h4,
68
+ .wc-data-box h5 {
69
+ color: #6cc0f0 !important;
70
+ font-size: 12px !important;
71
+ padding: 8px 4px 4px !important;
72
+ margin: 8px 0 4px !important;
73
+ border-bottom: 1px solid #1a3050 !important;
74
+ font-weight: 700 !important;
75
+ background: transparent !important;
76
+ }
77
+
78
+ /* Bold = highlights */
79
+ .wc-data-box strong,
80
+ .wc-data-box b {
81
+ color: #f0c040 !important;
82
+ }
83
 
84
+ /* Lists */
85
+ .wc-data-box ul {
86
+ list-style: none !important;
87
+ padding: 0 !important;
88
+ margin: 0 !important;
89
+ }
90
+ .wc-data-box li {
91
+ padding: 6px 5px !important;
92
+ border-bottom: 1px solid #0d1f30 !important;
93
+ }
94
+ .wc-data-box li:hover {
95
+ background: #0b1e35 !important;
96
+ }
97
 
98
+ /* Paragraphs */
99
+ .wc-data-box p {
100
+ margin: 4px 0 !important;
101
+ line-height: 1.5 !important;
102
+ }
 
 
 
 
103
 
104
+ /* Match rows (bongda format) */
105
+ .wc-data-box .match-detail {
106
+ padding: 6px 4px !important;
107
+ border-bottom: 1px solid #0d1f30 !important;
108
+ }
109
+ .wc-data-box .match-detail:hover {
110
+ background: #0b1e35 !important;
111
+ }
112
+ .wc-data-box .title-content {
113
+ display: flex;
114
+ gap: 6px;
115
+ align-items: center;
116
+ background: #0b1e35 !important;
117
+ border-radius: 4px;
118
+ margin: 6px 0;
119
+ padding: 6px 8px;
120
+ }
121
+ .wc-data-box .title-content strong {
122
+ color: #6cc0f0 !important;
123
+ }
124
+ .wc-data-box .teams {
125
+ display: flex;
126
+ width: 100%;
127
+ align-items: center;
128
+ gap: 4px;
129
+ }
130
+ .wc-data-box .team {
131
+ flex: 1;
132
+ display: flex;
133
+ align-items: center;
134
+ gap: 4px;
135
+ min-width: 0;
136
+ }
137
+ .wc-data-box .team .name {
138
+ font-size: 11px !important;
139
+ white-space: nowrap;
140
+ overflow: hidden;
141
+ text-overflow: ellipsis;
142
+ }
143
+ .wc-data-box .home-team {
144
+ justify-content: flex-end;
145
+ text-align: right;
146
+ }
147
+ .wc-data-box .status {
148
+ flex: 0 0 50px;
149
+ text-align: center;
150
+ }
151
+ .wc-data-box .status a {
152
+ font-weight: 800 !important;
153
+ font-size: 12px !important;
154
+ }
155
 
156
+ /* Hide ALL images, iframes, figures */
157
+ .wc-data-box img,
158
+ .wc-data-box figure,
159
+ .wc-data-box figcaption,
160
+ .wc-data-box picture,
161
+ .wc-data-box video,
162
+ .wc-data-box iframe {
163
+ display: none !important;
164
+ }
165
 
166
+ /* Hide junk elements */
167
+ .wc-data-box .info,
168
+ .wc-data-box .btns,
169
+ .wc-data-box .ads,
170
+ .wc-data-box .banner,
171
+ .wc-data-box .social,
172
+ .wc-data-box .relate,
173
+ .wc-data-box .comment,
174
+ .wc-data-box nav,
175
+ .wc-data-box footer,
176
+ .wc-data-box header {
177
+ display: none !important;
178
+ }
179
 
180
  /* Scrollbar */
181
+ .wc-data-box::-webkit-scrollbar { width: 4px; }
182
+ .wc-data-box::-webkit-scrollbar-track { background: transparent; }
183
+ .wc-data-box::-webkit-scrollbar-thumb { background: #1a3050; border-radius: 2px; }