Skip to content

Commit 748f32f

Browse files
committed
fix dark mode
1 parent fb5ff2b commit 748f32f

File tree

6 files changed

+31
-32
lines changed

6 files changed

+31
-32
lines changed

services/app/apps/codebattle/assets/css/custom.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
border-radius: 0.50rem;
99
}
1010

11-
1211
.cb-custom-event-table .cb-custom-event-td:first-child {
1312
border-top-left-radius: 0.6rem;
1413
border-bottom-left-radius: 0.6rem;
@@ -56,7 +55,7 @@
5655
}
5756

5857
.cb-custom-event-td:not(:last-child)::after {
59-
background-color: black;
58+
background-color: gray;
6059
right: 0;
6160
top: 8px;
6261
}
@@ -133,7 +132,7 @@
133132
display: block;
134133
margin-left: -1px;
135134
line-height: 1.25;
136-
color: black;
135+
color: white;
137136
}
138137

139138
.cb-custom-event-pagination-page-item:first-child .cb-custom-event-pagination-page-link,

services/app/apps/codebattle/assets/css/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $cb-bg-highlight-panel: #1c1c24;
4343
// $cb-bg-highlight-panel: #13181f;
4444

4545
$secondary: #477591;
46-
$link-color: black;
46+
$link-color: white;
4747
$error: #dc3545;
4848
$bg-orange: rgba(238, 55, 55);
4949
$orange: rgba(238, 55, 55, 0.76);
@@ -411,7 +411,7 @@ a {
411411
}
412412

413413
.cb-game-score-draw {
414-
color: var(--black) !important;
414+
color: var(--gray) !important;
415415
}
416416

417417
.cb-user-online {

services/app/apps/codebattle/assets/js/widgets/pages/tournament/PlayersRankingPanel.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import {
99
} from '@/selectors';
1010

1111
const getCustomEventTrClassName = (item, selectedId) => cn(
12-
'text-dark font-weight-bold cb-custom-event-tr-border',
12+
'font-weight-bold cb-custom-event-tr-border',
1313
{
14-
'cb-gold-place-bg': item?.place === 1,
15-
'cb-silver-place-bg': item?.place === 2,
16-
'cb-bronze-place-bg': item?.place === 3,
17-
'cb-bg-panel text-white': !item?.place || item?.place > 3,
14+
'text-dark cb-gold-place-bg': item?.place === 1,
15+
'text-dark cb-silver-place-bg': item?.place === 2,
16+
'text-dark cb-bronze-place-bg': item?.place === 3,
17+
'cb-bg-panel': !item?.place || item?.place > 3,
1818
},
1919
{
2020
'cb-custom-event-tr-brown-border': item?.clanId === selectedId,

services/app/apps/codebattle/assets/js/widgets/pages/tournament/ReportsPanel.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ function ReportsPanel() {
123123
<Select
124124
styles={customStyle}
125125
value={{
126-
label: getStateText(item.state),
127-
value: item.state,
128-
}}
126+
label: getStateText(item.state),
127+
value: item.state,
128+
}}
129129
onChange={changeReportState(item.id)}
130130
options={reportStatusOptions}
131131
/>
132132
</td>
133133
<td className={tableDataCellClassName}>
134134
<p>
135135
{moment
136-
.utc(item.insertedAt)
137-
.local()
138-
.format('YYYY-MM-DD HH:mm:ss')}
136+
.utc(item.insertedAt)
137+
.local()
138+
.format('YYYY-MM-DD HH:mm:ss')}
139139
</p>
140140
</td>
141141
<td className={tableDataCellClassName}>

services/app/apps/codebattle/assets/js/widgets/pages/tournament/TaskRankingPanel.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { getResults } from '../../middlewares/TournamentAdmin';
1111
import useTournamentPanel from './useTournamentPanel';
1212

1313
const getCustomEventTrClassName = level => cn(
14-
'text-dark font-weight-bold cb-custom-event-tr cursor-pointer',
14+
'font-weight-bold cb-custom-event-tr cursor-pointer',
1515
{
16-
'cb-custom-event-bg-success': level === 'easy',
17-
'cb-custom-event-bg-orange': level === 'elementary',
18-
'cb-custom-event-bg-blue': level === 'medium',
19-
'cb-custom-event-bg-brown': level === 'hard',
16+
'text-dark cb-custom-event-bg-success': level === 'easy',
17+
'text-dark cb-custom-event-bg-orange': level === 'elementary',
18+
'text-dark cb-custom-event-bg-blue': level === 'medium',
19+
'text-dark cb-custom-event-bg-brown': level === 'hard',
2020
},
2121
);
2222

services/app/apps/codebattle/assets/js/widgets/pages/tournament/TournamentClanTable.jsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import { useSelector } from 'react-redux';
77
import { currentUserClanIdSelector, tournamentSelector } from '@/selectors';
88

99
const getCustomEventTrClassName = (item, selectedId) => cn(
10-
'text-dark font-weight-bold cb-custom-event-tr',
11-
{
12-
'cb-gold-place-bg': item?.place === 1,
13-
'cb-silver-place-bg': item?.place === 2,
14-
'cb-bronze-place-bg': item?.place === 3,
15-
'cb-bg-panel text-white': !item?.place || item.place > 3,
16-
},
17-
{
18-
'cb-custom-event-tr-brown-border': item.id === selectedId,
19-
},
20-
);
10+
'font-weight-bold cb-custom-event-tr',
11+
{
12+
'text-dark cb-gold-place-bg': item?.place === 1,
13+
'text-dark cb-silver-place-bg': item?.place === 2,
14+
'text-dark cb-bronze-place-bg': item?.place === 3,
15+
'cb-bg-panel': !item?.place || item.place > 3,
16+
},
17+
{
18+
'cb-custom-event-tr-brown-border': item.id === selectedId,
19+
},
20+
);
2121

2222
const tableDataCellClassName = cn(
2323
'p-1 pl-4 my-2 align-middle text-nowrap position-relative cb-custom-event-td border-0',

0 commit comments

Comments
 (0)