Skip to content

Commit b259070

Browse files
committed
refactor CSS for responsive design
1 parent 3358706 commit b259070

File tree

4 files changed

+40
-28
lines changed

4 files changed

+40
-28
lines changed

assets/css/style.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ li {
175175

176176
/* People content area - extend to the right to fit one more column */
177177
#people-main .people-content {
178-
margin-right: 0;
179178
max-width: calc(100% + 160px);
180179
}
181180

@@ -686,7 +685,7 @@ html[lang="zh-CN"] .highlight-card h3 {
686685
}
687686

688687
.pub-support {
689-
font-style: italic;
688+
font-style: normal;
690689
color: var(--text-light);
691690
font-weight: 400;
692691
}
@@ -1349,9 +1348,22 @@ h3.year-badge {
13491348
}
13501349
}
13511350

1352-
@media (min-width: 1280px) {
1351+
/* 中等大屏到超大屏:margin-right 线性变化 (1280px→110px, 1920px→-20px) */
1352+
@media (min-width: 1280px) and (max-width: 1920px) {
1353+
.people-content, .alumni-content, .resources-content {
1354+
margin-right: calc(110px - (100vw - 1280px) * 130 / 640);
1355+
/* 计算公式: 110px - (当前宽度 - 1280px) * (110px - -20px) / (1920px - 1280px) */
1356+
}
1357+
1358+
.team-members {
1359+
gap: 20px 12px; /* 保持最小列间距 12px */
1360+
}
1361+
}
1362+
1363+
/* 超大屏:固定 -20px 右边距 */
1364+
@media (min-width: 1921px) {
13531365
.people-content, .alumni-content, .resources-content {
1354-
margin-right: 240px;
1366+
margin-right: -20px;
13551367
}
13561368
}
13571369

assets/js/i18n.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
// 研究方向
2222
'research.title': '研究方向',
23-
'research.intro': '我们的研究聚焦于大语言模型的核心技术突破与创新应用,涵盖人工智能基建、多模态理解与生成、智能体系统、具身智能、模型可解释性和新架构探索等前沿方向',
23+
'research.intro': '我们的研究聚焦于大语言模型的核心技术突破与创新应用,涵盖AI 系统与基础设施、多模态理解与生成、智能体系统、具身智能、模型可解释性和新架构探索等前沿方向',
2424
'research.highlights.title': '最新亮点',
2525
'research.publications.title': '代表工作',
26-
'pillar.infra.title': '人工智能基建',
27-
'pillar.infra.desc': '探索各类大语言模型的推理与训练加速方法,支持企业级人工智能基建',
26+
'pillar.infra.title': 'AI 系统与基础设施',
27+
'pillar.infra.desc': '探索各类大语言模型的推理与训练加速方法,支持企业级 AI 系统与基础设施',
2828
'pillar.multimodal.title': '多模态基础模型',
2929
'pillar.multimodal.desc': '统一理解与生成文本、图像、视频和音频,实现跨模态语义对齐与协同推理',
3030
'pillar.reasoning.title': '智能体与强化学习',
@@ -143,7 +143,7 @@
143143

144144
// 网页设计
145145
'webmaster.title': '开发团队',
146-
'webmaster.intro': '了解维护 OpenMOSS 官网体验的设计与前端志愿者,保持界面一致性与可访问性。',
146+
'webmaster.intro': '了解维护 OpenMOSS 官网体验的网页设计与开发志愿者。',
147147
'webmaster.contribute.title': '如何贡献',
148148
'webmaster.contribute.text': '欢迎通过提交 Pull Request 的方式参与网站开发和改进!仓库地址:'
149149
},
@@ -166,11 +166,11 @@
166166

167167
// Research
168168
'research.title': 'Research',
169-
'research.intro': 'Our research focuses on core technological breakthroughs and innovative applications of large language models, covering frontier areas including AI infrastructure, multimodal understanding and generation, agent systems, embodied intelligence, model interpretability, and novel architectures.',
169+
'research.intro': 'Our research focuses on core technological breakthroughs and innovative applications of large language models, covering frontier areas including AI systems and infrastructure, multimodal understanding and generation, agent systems, embodied intelligence, model interpretability, and novel architectures.',
170170
'research.highlights.title': 'Highlights',
171171
'research.publications.title': 'Publications',
172-
'pillar.infra.title': 'AI Infra',
173-
'pillar.infra.desc': 'Exploring inference and training acceleration for various large language models, supporting enterprise-grade AI infrastructure.',
172+
'pillar.infra.title': 'AI Systems & Infrastructure',
173+
'pillar.infra.desc': 'Exploring inference and training acceleration for various large language models, supporting enterprise-grade AI systems and infrastructure.',
174174
'pillar.multimodal.title': 'Multimodal Foundation Models',
175175
'pillar.multimodal.desc': 'Unified understanding and generation of text, images, videos, and audio, with cross-modal semantic alignment and collaborative reasoning.',
176176
'pillar.reasoning.title': 'Agents & Reinforcement Learning',

assets/js/spa.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@
509509
return `
510510
<li class="publication-item">
511511
<div class="pub-main-line">
512-
${pub.support ? '<span class="pub-support">Support</span> ' : ''}<span class="pub-title">${pub.title}</span>${pub.venue ? `, <em>${pub.venue}</em>` : ''}, ${pub.year}.
512+
${pub.support ? '<span class="pub-support">[SUPPORT]</span> ' : ''}<span class="pub-title">${pub.title}</span>${pub.venue ? `, <em>${pub.venue}</em>` : ''}, ${pub.year}.
513513
${processedLinks}
514514
</div>
515515
<div class="pub-authors">${pub.alphabetical ? '<span class="pub-alphabetical">*</span> ' : ''}${pub.authors}</div>
@@ -520,7 +520,7 @@
520520
</div>
521521
`;
522522
}).join('')}
523-
<p class="pub-note">* Authors of Support projects are listed in alphabetical order.</p>
523+
<p class="pub-note">* Authors of projects are listed in alphabetical order.</p>
524524
</section>
525525
`;
526526
}

assets/js/team-data.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ const teamData = {
3636
3737
homepage: 'https://dalstonchen.github.io/'
3838
},
39-
{
40-
id: 'jinlan-fu',
41-
name: {
42-
zh: '傅金兰',
43-
en: 'Jinlan Fu'
44-
},
45-
title: {
46-
zh: '助理教授A',
47-
en: 'Assistant Professor A'
48-
},
49-
photo: 'assets/img/Jinlan Fu.jpg',
50-
homepage: 'https://jinlanfu.github.io'
51-
},
39+
// {
40+
// id: 'jinlan-fu',
41+
// name: {
42+
// zh: '傅金兰',
43+
// en: 'Jinlan Fu'
44+
// },
45+
// title: {
46+
// zh: '助理教授',
47+
// en: 'Assistant Professor'
48+
// },
49+
// photo: 'assets/img/Jinlan Fu.jpg',
50+
// homepage: 'https://jinlanfu.github.io'
51+
// },
5252
{
5353
id: 'tao-ji',
5454
name: {
5555
zh: '纪焘',
5656
en: 'Tao Ji'
5757
},
5858
title: {
59-
zh: '助理教授B',
60-
en: 'Assistant Professor B'
59+
zh: '助理教授',
60+
en: 'Assistant Professor'
6161
},
6262
photo: 'assets/img/Tao Ji.jpeg',
6363
homepage: 'https://taoji.eth.link/'

0 commit comments

Comments
 (0)