diff --git "a/boards/2023\346\226\260\347\224\237\350\265\233/index.html" "b/boards/2023\346\226\260\347\224\237\350\265\233/index.html" index 89b336c..369020f 100644 --- "a/boards/2023\346\226\260\347\224\237\350\265\233/index.html" +++ "b/boards/2023\346\226\260\347\224\237\350\265\233/index.html" @@ -6,14 +6,14 @@ .board-scroll { overflow-x: auto; } .scoreboard { border-collapse: collapse; clear: both; margin: 0 auto; } .scoreboard td { font-size: small; vertical-align: middle; text-align: center; } -.scoreboard td div { width: 4em; font-size: 120%; display: inline-block; } +.scoreboard td div { width: 4em; height: 42px; box-sizing: border-box; font-size: 120%; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; } .scoreboard td div span { display: block; font-size: 70%; font-weight: normal; } .scoreboard tr { height: 42px; border-bottom: 1px solid #222; } .scoreboard td, .scoreboard th { padding: 0; border-right: 1px solid #bbb; } .scoreboard td.score_cell { min-width: 4.2em; border-right: 0; } .scoreboard td.scorepl { width: 2ex; padding: 0 .3em; } .scoreboard td.scoreaf { padding-left: 2px; border: 0; white-space: nowrap; text-align: center; } -.scoreboard td.scoreaf img { max-width: 32px; max-height: 32px; vertical-align: middle; } +.scoreboard td.scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .scoreboard a { display: block; padding: 2px 1px; color: #000; text-decoration: none; } .scoreboard .scoretn { max-width: 18rem; padding: 0 5px; overflow: hidden; text-align: right; font-weight: bold; text-overflow: ellipsis; white-space: nowrap; } .scoreboard .scoretn a { overflow: hidden; } @@ -30,6 +30,12 @@ .cl_ddd7e1 { background-color: #ddd7e1; } .sortorderswitch { border-top: 2px solid #111; } .badge { display: inline-block; padding: .2em .35em; font-size: 75%; line-height: 1; font-weight: 700; vertical-align: baseline; } +.problem-badge { min-width: 34px !important; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 1rem; } +/* 结果方块略微缩小;左右空隙与上下空隙一致(细小留白) */ +.scoreboard td.score_cell { padding: .067em .05em; } +.scoreboard td.score_cell div { width: 3.6em; height: 40px; } +/* WA 红块仅含 "X tries" 时补空白首行,使其与 AC 绿块中下方的小字 "X try(s)" 高度/位置一致 */ +.scoreboard td.score_cell div.score_incorrect::before { content: "\00a0"; display: block; } .badge-warning { color: #212529; background-color: #ffc107; } .scorelegend { display: inline-block; margin: 1.5rem .75rem 0 0; vertical-align: top; } .scorelegend td, .scorelegend th { width: 25ex; padding: .25rem .5rem; text-align: center; } diff --git "a/boards/2024\346\226\260\347\224\237\350\265\233/index.html" "b/boards/2024\346\226\260\347\224\237\350\265\233/index.html" index d75ab7c..7d04e61 100644 --- "a/boards/2024\346\226\260\347\224\237\350\265\233/index.html" +++ "b/boards/2024\346\226\260\347\224\237\350\265\233/index.html" @@ -8,14 +8,14 @@ .board-scroll { overflow-x: auto; } .scoreboard { border-collapse: collapse; clear: both; margin: 0 auto; } .scoreboard td { font-size: small; vertical-align: middle; text-align: center; } -.scoreboard td div { width: 4em; font-size: 120%; display: inline-block; } +.scoreboard td div { width: 4em; height: 42px; box-sizing: border-box; font-size: 120%; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; } .scoreboard td div span { display: block; font-size: 70%; font-weight: normal; } .scoreboard tr { height: 42px; border-bottom: 1px solid #222; } .scoreboard td, .scoreboard th { padding: 0; border-right: 1px solid #bbb; } .scoreboard td.score_cell { min-width: 4.2em; border-right: 0; } .scoreboard td.scorepl { width: 2ex; padding: 0 .3em; } .scoreboard td.scoreaf { padding-left: 2px; border: 0; white-space: nowrap; text-align: center; } -.scoreboard td.scoreaf img { max-width: 32px; max-height: 32px; vertical-align: middle; } +.scoreboard td.scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .scoreboard a { display: block; padding: 2px 1px; color: #000; text-decoration: none; } .scoreboard .scoretn { max-width: 18rem; padding: 0 5px; overflow: hidden; text-align: right; font-weight: bold; text-overflow: ellipsis; white-space: nowrap; } .scoreboard .scoretn a { overflow: hidden; } @@ -32,6 +32,12 @@ .cl_ddd7e1 { background-color: #ddd7e1; } .sortorderswitch { border-top: 2px solid #111; } .badge { display: inline-block; padding: .2em .35em; font-size: 75%; line-height: 1; font-weight: 700; vertical-align: baseline; } +.problem-badge { min-width: 34px !important; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 1rem; } +/* 结果方块略微缩小;左右空隙与上下空隙一致(细小留白) */ +.scoreboard td.score_cell { padding: .067em .05em; } +.scoreboard td.score_cell div { width: 3.6em; height: 40px; } +/* WA 红块仅含 "X tries" 时补空白首行,使其与 AC 绿块中下方的小字 "X try(s)" 高度/位置一致 */ +.scoreboard td.score_cell div.score_incorrect::before { content: "\00a0"; display: block; } .badge-warning { color: #212529; background-color: #ffc107; } .scorelegend { display: inline-block; margin: 1.5rem .75rem 0 0; vertical-align: top; } .scorelegend td, .scorelegend th { width: 25ex; padding: .25rem .5rem; text-align: center; } diff --git "a/boards/2025\346\226\260\347\224\237\350\265\233/Scoreboard contest - DOMjudge_files/style_domjudge.css" "b/boards/2025\346\226\260\347\224\237\350\265\233/Scoreboard contest - DOMjudge_files/style_domjudge.css" index 18eb31e..0ec1373 100644 --- "a/boards/2025\346\226\260\347\224\237\350\265\233/Scoreboard contest - DOMjudge_files/style_domjudge.css" +++ "b/boards/2025\346\226\260\347\224\237\350\265\233/Scoreboard contest - DOMjudge_files/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,18 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + +/* 结果方块略微缩小;左右空隙与上下空隙一致(细小留白) */ +.desktop-scoreboard td.score_cell { padding: .067em .05em; } +.desktop-scoreboard td.score_cell div { width: 3.6em; height: 40px; } + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +661,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git "a/boards/2025\346\226\260\347\224\237\350\265\233/standings.pdf" "b/boards/2025\346\226\260\347\224\237\350\265\233/standings.pdf" new file mode 100644 index 0000000..14841be Binary files /dev/null and "b/boards/2025\346\226\260\347\224\237\350\265\233/standings.pdf" differ diff --git "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round1/style_domjudge.css" "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round1/style_domjudge.css" index 18eb31e..3032b25 100644 --- "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round1/style_domjudge.css" +++ "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round1/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,14 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +657,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round2/style_domjudge.css" "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round2/style_domjudge.css" index 18eb31e..3032b25 100644 --- "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round2/style_domjudge.css" +++ "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round2/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,14 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +657,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round3/style_domjudge.css" "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round3/style_domjudge.css" index 18eb31e..3032b25 100644 --- "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round3/style_domjudge.css" +++ "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round3/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,14 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +657,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round4/style_domjudge.css" "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round4/style_domjudge.css" index 18eb31e..3032b25 100644 --- "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round4/style_domjudge.css" +++ "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round4/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,14 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +657,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round5/style_domjudge.css" "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round5/style_domjudge.css" index 18eb31e..3032b25 100644 --- "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round5/style_domjudge.css" +++ "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round5/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,14 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +657,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round6/style_domjudge.css" "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round6/style_domjudge.css" index 18eb31e..3032b25 100644 --- "a/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round6/style_domjudge.css" +++ "b/boards/2026\346\232\221\345\201\207\351\233\206\350\256\255/round6/style_domjudge.css" @@ -179,8 +179,13 @@ del { } .scoreboard td div { width: 4em; + height: 42px; + box-sizing: border-box; font-size: 120%; - display: inline-block; + display: inline-flex; + flex-direction: column; + align-items: center; + justify-content: center; } .scoreboard td div span { font-weight: normal; @@ -246,7 +251,7 @@ del { bottom: 0; } .scoreboard .scoreaf { white-space: nowrap; border: 0; padding-left: 2px; text-align: center; } -.scoreboard .scoreaf img { vertical-align: middle; } +.scoreboard .scoreaf img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: inline-block; vertical-align: middle; } .mobile-scoreboard .countryflag { height: 1rem; width: 1.33rem; @@ -302,6 +307,14 @@ img.affiliation-logo { .scorenc { font-weight: bold; } td.scorenc { border-color: silver; border-right: 0; } +/* 加宽桌面端 score(题数 / 罚时)两列:罚时较长(4位数)时避免与题数粘连 */ +.desktop-scoreboard td.scorenc, +.desktop-scoreboard td.scorett { + min-width: 3.4em; + padding-left: .35em; + padding-right: .35em; +} + .scoreprob { width: 3.0em; vertical-align: middle; } .scoreaffil { text-align: center; } @@ -644,7 +657,11 @@ tr.ignore td, td.ignore, span.ignore { .problem-badge { --badge-padding-x: 0.5em; font-size: 1em; - min-width: 2em; + min-width: 34px; + min-height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; } h5 .problem-badge { diff --git a/data/boards.json b/data/boards.json index 477ff12..b9e95a7 100644 --- a/data/boards.json +++ b/data/boards.json @@ -38,7 +38,7 @@ }, { "title": "2025新生赛", - "path": "boards/2025新生赛/index.html" + "path": "boards/2025新生赛/standings.pdf" }, { "title": "2024新生赛",