跳转到内容

天一学子免费网站托管计划: 面向全体天一在校学生及校友,提供免费网站托管、二级域名分发及付费制作服务。详见 公告页面。

立即参与贡献🎉 天一中学维基现在严重缺少词条,希望大家踊跃参与编辑。

警告⚠️: 严禁公开他人的私人信息,违者永久封杀

成为管理员: 若你是图灵社社员或是对天一维基作出重大贡献,便有机会成为管理员

Template:首页/布局.css:修订间差异

来自江苏省天一中学非官方维基
THDeb​(留言 | 贡献)
校园一景加入四张滑动相册、标题留白及双栏底边对齐
THDeb​(留言 | 贡献)
扩充最近新增至12条;校园相册8秒轮播配红色进度;友情链接增加留白与分隔
第146行: 第146行:
  #tyzx-th-home .th-contact-grid { align-items:stretch; }
  #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; }

2026年11月4日 (三) 11:05的版本

/* TYZX homepage: THBWiki-inspired content arrangement, native red/white/blue appearance.
 * Keeps original TYZX prose; layout-only changes. */
#tyzx-th-home { font-family:sans-serif; font-size:16px; line-height:1.7; color:var(--color-base,#202122); max-width:1200px; margin:0 auto; }
#tyzx-th-home * { box-sizing:border-box; }
#tyzx-th-home h1,#tyzx-th-home h2,#tyzx-th-home h3 { font-family:inherit; font-weight:600; line-height:1.4; border:0; letter-spacing:0; padding:0; }
#tyzx-th-home h1 { font-size:24px; margin:0 0 7px; }
#tyzx-th-home h2 { font-size:18px; color:var(--color-progressive,#36c); margin:0 0 14px; }
#tyzx-th-home h3 { font-size:16px; margin:0 0 10px; }
#tyzx-th-home .mw-heading { font-family:inherit; font-size:inherit; line-height:inherit; padding:0; margin:0; border:0; display:block; }
#tyzx-th-home .mw-editsection { display:none; }
#tyzx-th-home p { margin:8px 0; }
#tyzx-th-home .th-hero { display:flex; align-items:center; gap:20px; padding:18px 20px; margin-bottom:18px; border:1px solid var(--border-color-subtle,#eaecf0); border-top:3px solid #b32424; background:var(--background-color-neutral-subtle,#f8f9fa); }
#tyzx-th-home .th-brand { flex:0 0 72px; }
#tyzx-th-home .th-brand p { margin:0; }
#tyzx-th-home .th-intro { flex:1; min-width:0; font-size:14px; line-height:1.6; }
#tyzx-th-home .th-stats { font-size:13px; color:var(--color-subtle,#54595d); margin-top:8px; }
#tyzx-th-home .th-actions { flex:0 0 150px; display:grid; grid-template-columns:1fr 1fr; gap:10px 8px; margin:0; padding:0; list-style:none; font-size:13px; text-align:center; }
#tyzx-th-home .th-actions li { margin:0; }
#tyzx-th-home .th-actions a { display:block; padding:5px 0; }
#tyzx-th-home .th-columns { display:grid; grid-template-columns:minmax(0,55fr) minmax(0,45fr); gap:18px; align-items:start; }
#tyzx-th-home .th-left,#tyzx-th-home .th-right { display:flex; flex-direction:column; gap:18px; min-width:0; }
#tyzx-th-home .th-panel { min-width:0; padding:18px; border:1px solid var(--border-color-subtle,#eaecf0); background:var(--background-color-base,#fff); display:flow-root; }
#tyzx-th-home .th-panel > :last-child { margin-bottom:0; }
#tyzx-th-home .th-panel > :first-child { margin-top:0; }
#tyzx-th-home .th-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:0; margin:0; list-style:none; }
#tyzx-th-home .th-nav li { position:relative; text-align:center; border:1px solid var(--border-color-subtle,#c8ccd1); border-bottom:2px solid var(--border-color-progressive,#36c); border-radius:2px; background:var(--background-color-neutral-subtle,#f8f9fa); margin:0; min-height:91px; }
#tyzx-th-home .th-nav-icon { display:block; font-family:sans-serif; color:var(--color-progressive,#36c); font-size:32px; line-height:42px; padding-top:8px; }
#tyzx-th-home .th-nav li:first-child { border-bottom-color:#b32424; }
#tyzx-th-home .th-nav li:first-child .th-nav-icon { color:var(--color-destructive,#b32424); }
#tyzx-th-home .th-nav a { display:block; padding:4px 2px 9px; font-size:14px; font-weight:600; line-height:1.4; text-decoration:none; }
#tyzx-th-home .th-nav a::after { content:""; position:absolute; inset:0; }
#tyzx-th-home .th-nav li:hover { background:var(--background-color-progressive-subtle,#eaf3ff); border-color:#36c; }
#tyzx-th-home .th-nav a:focus { outline:2px solid #36c; outline-offset:2px; }
#tyzx-th-home .th-nav-more { font-size:13px; margin-top:12px; color:var(--color-subtle,#54595d); }
#tyzx-th-home .th-scene { padding:0 0 14px; }
#tyzx-th-home .th-scene h2 { padding:16px 18px 0; }
#tyzx-th-home .th-scene > p { margin:8px 18px; }
#tyzx-th-home .th-scene .mw-heading { margin-bottom:12px; }
#tyzx-th-home .th-scene .center { margin:0; width:100%; }
#tyzx-th-home .th-scene .floatnone { margin:0; }
#tyzx-th-home .th-scene img { width:100%; height:auto; display:block; }
#tyzx-th-home .th-scene figure { margin:0; width:100%; }
#tyzx-th-home .th-scene small { font-size:12px; color:var(--color-subtle,#54595d); }
#tyzx-th-home .th-new ul,#tyzx-th-home .th-participate ul { padding-left:0; margin-left:1.3em; }
#tyzx-th-home .th-new li { margin-bottom:5px; }
#tyzx-th-home .th-announcement { border-top:2px solid #b32424; background:var(--background-color-neutral-subtle,#f8f9fa); font-size:14px; }
#tyzx-th-home .th-notice { padding:12px 16px; margin:18px 0; background:var(--background-color-neutral-subtle,#f8f9fa); border:1px solid var(--border-color-subtle,#eaecf0); font-size:13px; }
#tyzx-th-home .th-footer-panel { margin-top:18px; font-size:14px; }
#tyzx-th-home .th-contact-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:18px; align-items:start; }
#tyzx-th-home .th-link-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:10px 20px; }
#tyzx-th-home .th-link-list li { margin:0; }
#tyzx-th-home .th-support { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:20px; align-items:start; }
#tyzx-th-home .th-donation-image { text-align:center; width:280px; max-width:100%; margin:0 auto; }
#tyzx-th-home .th-donation-image p { margin:0; }
#tyzx-th-home .th-donation-image small { font-size:12px; }
#tyzx-th-home .th-footnote { font-size:12px; color:var(--color-subtle,#54595d); padding:14px 2px; }
#tyzx-th-home img { max-width:100%; height:auto; }
#tyzx-th-home .th-brand img { display:block; }
#tyzx-th-home a { overflow-wrap:anywhere; }
@media screen and (max-width:900px) {
 #tyzx-th-home .th-hero { gap:14px; }
 #tyzx-th-home .th-actions { flex-basis:130px; }
 #tyzx-th-home .th-columns { display:flex; flex-direction:column; gap:16px; }
 #tyzx-th-home .th-left,#tyzx-th-home .th-right { display:contents; }
 #tyzx-th-home .th-panel { width:100%; }
 #tyzx-th-home .th-navigation { order:1; }
 #tyzx-th-home .th-scene { order:2; }
 #tyzx-th-home .th-feature { order:3; }
 #tyzx-th-home .th-new { order:4; }
 #tyzx-th-home .th-participate { order:5; }
 #tyzx-th-home .th-announcement { order:6; }
 #tyzx-th-home .th-contact-grid { grid-template-columns:minmax(0,1fr); gap:0; }
 #tyzx-th-home .th-scene img { max-height:520px; object-fit:contain; }
}
@media screen and (max-width:600px) {
 #tyzx-th-home .th-hero { padding:16px; flex-wrap:wrap; }
 #tyzx-th-home .th-brand { flex-basis:54px; }
 #tyzx-th-home h1 { font-size:21px; }
 #tyzx-th-home .th-intro { flex-basis:calc(100% - 70px); }
 #tyzx-th-home .th-actions { flex-basis:100%; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; border-top:1px solid var(--border-color-subtle,#eaecf0); padding-top:8px; }
 #tyzx-th-home .th-panel { padding:16px; }
 #tyzx-th-home .th-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #tyzx-th-home .th-nav li { min-height:83px; }
 #tyzx-th-home .th-nav-icon { font-size:28px; line-height:34px; }
 #tyzx-th-home .th-scene { padding:0 0 12px; }
 #tyzx-th-home .th-scene h2 { padding:14px 16px 0; }
 #tyzx-th-home .th-scene > p { margin:8px 16px; }
 #tyzx-th-home .th-support { grid-template-columns:minmax(0,1fr); gap:16px; }
}
/* Geometric map pin and open book, matching the navigation's single-color line style. */
#tyzx-th-home .th-icon-pin { display:inline-block; position:relative; width:25px; height:25px; border:2px solid currentColor; border-radius:50% 50% 50% 0; transform:rotate(-45deg); margin:0 0 2px; }
#tyzx-th-home .th-icon-pin::after { content:""; position:absolute; width:7px; height:7px; border:2px solid currentColor; border-radius:50%; left:7px; top:7px; }
#tyzx-th-home .th-icon-book { display:inline-block; position:relative; width:30px; height:24px; border:2px solid currentColor; border-radius:3px 3px 1px 1px; }
#tyzx-th-home .th-icon-book::before { content:""; position:absolute; top:0; bottom:0; width:2px; background:currentColor; left:12px; }
#tyzx-th-home .th-icon-book::after { content:""; position:absolute; left:4px; right:4px; top:6px; height:7px; border-top:1px solid currentColor; border-bottom:1px solid currentColor; }
#tyzx-th-home .th-donation-code { width:260px; height:260px; position:relative; overflow:hidden; background:#fff; margin:0 auto 8px; }
#tyzx-th-home .th-donation-code img.mw-file-element { position:absolute; width:578px !important; max-width:none !important; height:578px !important; left:-159px; top:-91px; }
#tyzx-th-home .th-donation-code p,#tyzx-th-home .th-donation-code figure { margin:0; }
#tyzx-th-home .th-donation-image small { display:block; }
#tyzx-th-home .th-friends h2 { display:flex; align-items:center; gap:14px; text-align:center; color:var(--color-base,#202122); }
#tyzx-th-home .th-friends h2::before,#tyzx-th-home .th-friends h2::after { content:""; flex:1; height:1px; background:var(--border-color-subtle,#c8ccd1); }
#tyzx-th-home .th-friend-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 28px; }
#tyzx-th-home .th-friend { display:flex; align-items:center; gap:14px; padding:10px 12px; min-height:76px; min-width:0; }
#tyzx-th-home .th-friend:hover { background:var(--background-color-neutral-subtle,#f8f9fa); }
#tyzx-th-home .th-friend-icon { flex:0 0 48px; width:48px; text-align:center; }
#tyzx-th-home .th-friend-icon p { margin:0; }
#tyzx-th-home .th-friend-name { font-size:16px; font-weight:600; line-height:1.5; }
#tyzx-th-home .th-friend-name p { margin:0; }
#tyzx-th-home .th-friend-name a.external { background:none; padding-right:0; }
#tyzx-th-home .th-friend-desc { font-size:13px; color:var(--color-subtle,#54595d); margin-top:3px; }
#tyzx-th-home .th-friend-badge { width:42px; height:42px; border:1px solid var(--border-color-subtle,#c8ccd1); border-radius:50%; display:inline-block; line-height:40px; color:var(--color-subtle,#54595d); font-size:18px; }
@media screen and (max-width:600px) {
 #tyzx-th-home .th-donation-code { width:240px; height:240px; }
 #tyzx-th-home .th-donation-code img.mw-file-element { width:534px !important; height:534px !important; left:-147px; top:-84px; }
 #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-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; }