中文首页采用THBWiki式导航与双栏排版;保留天一维基原生红白蓝外观、全部正文和原有链接 |
新增列表精简至六条并摘录学校历史首段;友链企鹅双线分隔及图灵社外链 |
||
| (未显示同一用户的4个中间版本) | |||
| 第115行: | 第115行: | ||
#tyzx-th-home .th-friend-grid { grid-template-columns:minmax(0,1fr); gap:6px; } | #tyzx-th-home .th-friend-grid { grid-template-columns:minmax(0,1fr); gap:6px; } | ||
#tyzx-th-home .th-friend { padding:8px 0; } | #tyzx-th-home .th-friend { padding:8px 0; } | ||
} | |||
#tyzx-th-home .th-friend-icon { display:flex; align-items:center; justify-content:center; min-height:48px; } | |||
#tyzx-th-home .th-friend-icon img { max-width:48px; max-height:48px; width:auto; height:auto; object-fit:contain; } | |||
/* Subtle depth and striped policy links; keep the existing homepage structure. */ | |||
#tyzx-th-home .th-panel, | |||
#tyzx-th-home .th-hero, | |||
#tyzx-th-home .th-notice { box-shadow:0 2px 8px rgba(0,0,0,0.08); } | |||
#tyzx-th-home .th-footer-panel > .th-link-list { gap:10px 12px; } | |||
#tyzx-th-home .th-footer-panel > .th-link-list > li { flex:1 1 150px; padding:11px 14px; background:var(--background-color-neutral-subtle,#f8f9fa); border-left:4px solid #36c; } | |||
#tyzx-th-home .th-footer-panel > .th-link-list > li:nth-child(3n+2) { border-left-color:#b32424; } | |||
#tyzx-th-home .th-footer-panel > .th-link-list > li:nth-child(3n) { border-left-color:#72777d; } | |||
#tyzx-th-home .th-footer-panel > .th-link-list > li > a { display:block; margin:-11px -14px; padding:11px 14px; text-decoration:none; height:calc(100% + 22px); } | |||
#tyzx-th-home .th-footer-panel > .th-link-list > li:hover { background:var(--background-color-progressive-subtle,#eaf3ff); } | |||
#tyzx-th-home .th-footer-panel > .th-link-list > li > a:focus { outline:2px solid var(--color-progressive,#36c); outline-offset:2px; } | |||
/* Campus scene: consistent heading inset, swipeable photographs, aligned columns. */ | |||
#tyzx-th-home .th-scene > .mw-heading { padding:18px 18px 10px; margin:0; } | |||
#tyzx-th-home .th-scene > .mw-heading h2 { margin:0; padding:0; } | |||
#tyzx-th-home .th-scene-hint { padding:0 18px 12px; font-size:12px; color:var(--color-subtle,#54595d); } | |||
#tyzx-th-home .th-scene-gallery { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; } | |||
#tyzx-th-home .th-scene-slide { flex:0 0 100%; min-width:0; scroll-snap-align:start; } | |||
#tyzx-th-home .th-scene-slide > p { margin:0; } | |||
#tyzx-th-home .th-scene-slide img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; background:var(--background-color-neutral-subtle,#f8f9fa); } | |||
#tyzx-th-home .th-scene-caption { padding:12px 18px; font-size:14px; } | |||
#tyzx-th-home .th-scene-caption p { margin:0 0 8px; } | |||
#tyzx-th-home .th-scene-caption p:last-child { margin-bottom:0; } | |||
#tyzx-th-home .th-scene-gallery:focus { outline:2px solid var(--color-progressive,#36c); outline-offset:2px; } | |||
@media screen and (min-width:901px) { | |||
#tyzx-th-home .th-columns { align-items:stretch; } | |||
#tyzx-th-home .th-new,#tyzx-th-home .th-participate { flex:1; } | |||
#tyzx-th-home .th-contact-grid { align-items:stretch; } | |||
} | |||
/* Give the friends section its own breathing room and full-width divider. */ | |||
#tyzx-th-home .th-friends { margin-top:32px; padding-top:22px; border-top:2px solid var(--border-color-subtle,#c8ccd1); } | |||
#tyzx-th-home .th-friends h2 { justify-content:center; margin-bottom:22px; } | |||
#tyzx-th-home .th-friends h2::before,#tyzx-th-home .th-friends h2::after { display:none; } | |||
/* Article lead shares the recent additions panel with a shorter six-item list. */ | |||
#tyzx-th-home .th-new { display:flex; flex-direction:column; gap:14px; } | |||
#tyzx-th-home .th-new > h2,#tyzx-th-home .th-new > .mw-heading { margin-bottom:0; } | |||
#tyzx-th-home .th-new-list { flex:1 1 0; } | |||
#tyzx-th-home .th-new-excerpt { flex:1 1 0; min-height:190px; padding:16px; background:var(--background-color-neutral-subtle,#f8f9fa); border-top:2px solid var(--border-color-progressive,#36c); font-size:14px; } | |||
#tyzx-th-home .th-new-excerpt h3 { margin-bottom:10px; } | |||
#tyzx-th-home .th-new-excerpt small { font-size:12px; } | |||
#tyzx-th-home .th-friends { margin-top:44px; padding-top:0; border-top:0; } | |||
#tyzx-th-home .th-friend-divider { display:flex; align-items:center; gap:18px; margin-bottom:14px; } | |||
#tyzx-th-home .th-friend-divider::before,#tyzx-th-home .th-friend-divider::after { content:""; flex:1; border-top:3px double var(--border-color-subtle,#a2a9b1); } | |||
#tyzx-th-home .th-friend-divider > span { display:block; flex:0 0 64px; } | |||
#tyzx-th-home .th-friend-divider p { margin:0; } | |||
#tyzx-th-home .th-friend-divider img { display:block; width:64px; height:64px; object-fit:contain; } | |||
#tyzx-th-home .th-friend-intro { text-align:center; font-size:15px; margin:0 0 20px; line-height:1.8; } | |||
#tyzx-th-home .th-friends > .mw-heading { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); } | |||
@media screen and (max-width:900px) { | |||
#tyzx-th-home .th-new-list,#tyzx-th-home .th-new-excerpt { flex-basis:auto; } | |||
#tyzx-th-home .th-new-excerpt { min-height:0; } | |||
} | } | ||