File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class BracketsViewer {
162
162
} ;
163
163
}
164
164
165
- roundDOM . append ( this . renderMatch ( match , connection ) ) ;
165
+ roundDOM . append ( this . renderMatch ( match , connection , `M ${ roundNumber } . ${ match . number } ` ) ) ;
166
166
}
167
167
168
168
bracket . append ( roundDOM ) ;
@@ -189,13 +189,14 @@ class BracketsViewer {
189
189
}
190
190
}
191
191
192
- private renderMatch ( results : MatchResults , connection ?: Connection ) {
192
+ private renderMatch ( results : MatchResults , connection ?: Connection , label ?: string ) {
193
193
const team1 = this . renderTeam ( results . opponent1 ) ;
194
194
const team2 = this . renderTeam ( results . opponent2 ) ;
195
195
196
196
const teams = $ ( '<div class="teams">' ) . append ( team1 ) . append ( team2 ) ;
197
- const match = $ ( '<div class="match" >' ) . append ( teams ) ;
197
+ if ( label ) teams . append ( $ ( '<span >' ) . text ( label ) ) ;
198
198
199
+ const match = $ ( '<div class="match">' ) . append ( teams ) ;
199
200
if ( ! connection ) return match ;
200
201
201
202
if ( connection . connectPrevious )
Original file line number Diff line number Diff line change 109
109
.bracket {
110
110
flex : 1 ;
111
111
display : flex ;
112
- margin-bottom : 50 px ;
112
+ margin-bottom : 30 px ;
113
113
114
114
.round {
115
115
flex : 1 ;
@@ -163,6 +163,16 @@ h3 {
163
163
width : 100% ;
164
164
position : relative ;
165
165
166
+ & > span {
167
+ position : absolute ;
168
+ top : -10px ;
169
+ left : 3px ;
170
+ font-size : 0.8rem ;
171
+ background : white ;
172
+ padding : 0 5px ;
173
+ color : #a7a7a7 ;
174
+ }
175
+
166
176
& .connect-previous {
167
177
& ::before {
168
178
content : " " ;
@@ -223,13 +233,15 @@ h3 {
223
233
border-bottom : none ;
224
234
border-top-left-radius : $match-borders-radius ;
225
235
border-top-right-radius : $match-borders-radius ;
236
+ padding-top : 8px ;
226
237
}
227
238
228
239
& :nth-of-type (2 ) {
229
240
border : $match-borders ;
230
241
border-top : none ;
231
242
border-bottom-left-radius : $match-borders-radius ;
232
243
border-bottom-right-radius : $match-borders-radius ;
244
+ padding-bottom : 8px ;
233
245
}
234
246
}
235
247
243
255
}
244
256
245
257
& > span {
246
- color : rgb ( 170 , 170 , 170 ) ;
258
+ color : #a7a7a7 ;
247
259
}
248
260
}
249
261
You can’t perform that action at this time.
0 commit comments