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

+28 -26
View File
@@ -156,7 +156,7 @@ async function analyze() {
</script>
<template>
<div class="pk-page" :class="{ compact: !isDesktop }">
<div class="pk-page oj-page" :class="{ compact: !isDesktop }">
<div class="toolbar">
<div class="title-line">
<router-link to="/rank" class="back">‹ 排名</router-link>
@@ -317,16 +317,18 @@ async function analyze() {
</template>
<style scoped>
/* 比别的阅读型页面宽:三个班以上是一张「题 × 班」的对照格,班多了格子会挤 */
.pk-page {
max-width: 1440px;
display: flex;
flex-direction: column;
gap: 14px;
gap: var(--oj-gap);
}
.toolbar {
display: flex;
flex-direction: column;
gap: 10px;
gap: 14px;
}
.title-line {
@@ -338,11 +340,11 @@ async function analyze() {
.title-line h2 {
margin: 0;
font-size: 20px;
font-size: var(--oj-fs-title);
}
.back {
font-size: 13px;
font-size: var(--oj-fs-sec);
color: v-bind("theme.primaryColor");
text-decoration: none;
}
@@ -352,26 +354,26 @@ async function analyze() {
}
.muted {
font-size: 13px;
font-size: var(--oj-fs-sec);
color: v-bind("theme.textColor3");
}
.seg {
display: inline-flex;
height: 30px;
height: var(--oj-ctrl-h);
border: 1px solid v-bind("theme.borderColor");
border-radius: 4px;
overflow: hidden;
}
.seg button {
padding: 0 12px;
padding: 0 14px;
border: 0;
border-left: 1px solid v-bind("theme.borderColor");
background: v-bind("theme.cardColor");
color: v-bind("theme.textColor2");
font: inherit;
font-size: 13px;
font-size: var(--oj-fs-sec);
cursor: pointer;
white-space: nowrap;
}
@@ -398,15 +400,15 @@ async function analyze() {
}
.chip {
height: 28px;
height: var(--oj-ctrl-h);
box-sizing: border-box;
padding: 0 8px 0 10px;
padding: 0 10px 0 12px;
border: 1px solid v-bind("theme.borderColor");
border-radius: 14px;
border-radius: 17px;
background: v-bind("theme.cardColor");
color: v-bind("theme.textColor1");
font: inherit;
font-size: 13px;
font-size: var(--oj-fs-sec);
font-weight: 600;
display: inline-flex;
align-items: center;
@@ -422,7 +424,7 @@ async function analyze() {
}
.chip.add {
padding: 0 10px;
padding: 0 14px;
border-style: dashed;
font-weight: 400;
color: v-bind("theme.textColor2");
@@ -463,18 +465,18 @@ button.chip {
.vs {
font-weight: 800;
font-size: 15px;
font-size: 16px;
font-style: italic;
color: v-bind("theme.textColor3");
}
.mine-tag {
font-size: 11px;
font-size: 12px;
background: rgba(24, 160, 88, 0.12);
color: #18a058;
border-radius: 3px;
padding: 0 5px;
height: 16px;
padding: 0 6px;
height: 18px;
display: inline-flex;
align-items: center;
font-weight: 600;
@@ -482,13 +484,13 @@ button.chip {
.card {
border: 1px solid v-bind("theme.borderColor");
border-radius: 6px;
border-radius: var(--oj-radius);
background: v-bind("theme.cardColor");
}
.empty {
min-height: 160px;
padding: 24px;
min-height: 200px;
padding: 32px;
display: flex;
flex-direction: column;
align-items: center;
@@ -503,9 +505,9 @@ button.chip {
}
.ai {
margin-top: 14px;
padding: 12px 16px;
border-radius: 8px;
margin-top: 16px;
padding: 16px 20px;
border-radius: var(--oj-radius);
border: 1px solid rgba(47, 111, 208, 0.3);
background: rgba(47, 111, 208, 0.05);
display: flex;
@@ -526,7 +528,7 @@ button.chip {
}
.ai-head .muted {
font-size: 12px;
font-size: var(--oj-fs-meta);
}
.report {
@@ -538,6 +540,6 @@ button.chip {
}
.compact .chip {
font-size: 12px;
font-size: var(--oj-fs-meta);
}
</style>