mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 07:38:42 +00:00
refactor: ranklist with bs5
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b25f4cc7f9
commit
79d4c3832c
@ -154,7 +154,7 @@ EOD;
|
||||
? array('card', 'mb-3')
|
||||
: array('table-responsive');
|
||||
$table_classes = isset($REQUIRE_LIB['bootstrap5'])
|
||||
? array('table', 'uoj-problem-list-table', 'mb-0')
|
||||
? array('table', 'uoj-table', 'mb-0')
|
||||
: array('table', 'table-bordered', 'table-hover', 'table-striped');
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('problems')) ?>
|
||||
|
@ -13,7 +13,15 @@
|
||||
} else {
|
||||
become404Page();
|
||||
}
|
||||
|
||||
if (!isset($_COOKIE['bootstrap4'])) {
|
||||
$REQUIRE_LIB['bootstrap5'] = '';
|
||||
|
||||
$config['div_classes'] = array('card', 'mb-3');
|
||||
$config['table_classes'] = array('table', 'uoj-table', 'mb-0', 'text-center');
|
||||
}
|
||||
?>
|
||||
<?php echoUOJPageHeader($title) ?>
|
||||
<h1 class="h2"><?= $title ?></h1>
|
||||
<?php echoRanklist($config) ?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -115,7 +115,7 @@ d-inline-block
|
||||
'table_config' => (isset($REQUIRE_LIB['bootstrap5'])
|
||||
? array(
|
||||
'div_classes' => array('card', 'mb-3'),
|
||||
'table_classes' => array('table', 'mb-0', 'uoj-submissions-table', 'text-center')
|
||||
'table_classes' => array('table', 'mb-0', 'uoj-table', 'text-center')
|
||||
)
|
||||
: array()
|
||||
),
|
||||
|
@ -43,8 +43,7 @@ label {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.uoj-problem-list-table > tbody > tr:last-child,
|
||||
.uoj-submissions-table > tbody > tr:last-child {
|
||||
.uoj-table > tbody > tr:last-child {
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user