style(前台): 页面整体放大一档,列表不再挤成一团;宽屏上内容居中,不再铺满到两边
Deploy / deploy (push) Canceled after 0s

- index.css 加一张 --oj-* 尺寸表和 .oj-page 外壳,二十几个前台页面改成引用它:
  正文 14→15、页标题 20→24、题目/提交列表行高 40→48、比赛/公告 56、筛选控件 28→34
- 阅读型页面限宽 1200 居中;题目/提交列表 1600、比赛详情 1400、排名 1280、班级 PK 1440
- 1280 宽的筛选条放大后放不下,题目/提交列表在 1366 以下退回 13px 的字
- 班级 PK 五个班起格子里不写「一次 x%」(只剩「一次 8…」);赛跑图线尾的数字不再被截掉
- 手机上比赛列表的「没参加」挪到比赛名下面;题单里「以前做对过 · 旧代码先藏着」缩成「做对过」
- 题目详情页(编辑器)和后台不在这一轮

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-10 12:43:12 +08:00
1 parent 45d79ed366
commit 1e441411a5
43 files changed
+1016 -752

No files matched your search

+21 -17
View File
@@ -92,12 +92,12 @@ function shortLabel(className: string) {
<style scoped>
.battle {
padding: 12px 16px;
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 1px;
gap: 2px;
border: 1px solid v-bind("theme.borderColor");
border-radius: 6px;
border-radius: var(--oj-radius);
background: v-bind("theme.cardColor");
}
@@ -111,20 +111,24 @@ function shortLabel(className: string) {
display: flex;
align-items: baseline;
gap: 8px;
margin-bottom: 4px;
margin-bottom: 8px;
}
.title b {
font-size: var(--oj-fs-h2);
}
.muted {
font-size: 12px;
font-size: var(--oj-fs-meta);
color: v-bind("theme.textColor3");
}
.row {
height: 22px;
height: 30px;
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-size: var(--oj-fs-sec);
}
.row.mine {
@@ -135,14 +139,14 @@ function shortLabel(className: string) {
}
.rank {
width: 14px;
font-size: 12px;
width: 16px;
font-size: var(--oj-fs-meta);
color: v-bind("theme.textColor3");
font-variant-numeric: tabular-nums;
}
.name {
width: 86px;
width: 96px;
padding: 0;
border: 0;
background: none;
@@ -160,7 +164,7 @@ function shortLabel(className: string) {
.pk {
margin-left: auto;
font-size: 12px;
font-size: var(--oj-fs-meta);
color: v-bind("theme.primaryColor");
text-decoration: none;
white-space: nowrap;
@@ -173,7 +177,7 @@ function shortLabel(className: string) {
.bar-box {
flex-grow: 1;
height: 10px;
height: 12px;
position: relative;
}
@@ -186,22 +190,22 @@ function shortLabel(className: string) {
}
.value {
width: 32px;
width: 36px;
text-align: right;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.gain {
width: 34px;
font-size: 11px;
width: 36px;
font-size: 12px;
color: #18a058;
font-variant-numeric: tabular-nums;
}
.summary {
margin-top: 6px;
font-size: 12px;
margin-top: 8px;
font-size: var(--oj-fs-meta);
color: #18a058;
}
</style>