跳转到内容

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

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

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

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

Template:首页/维基百科样式.css:修订间差异

来自江苏省天一中学非官方维基
THDeb​(留言 | 贡献)
中文首页采用维基百科首页样式;保留全部文字;CSS改编自zh.wikipedia.org TemplateStyles修订95318307及其历史作者,CC BY-SA 4.0
 
THDeb​(留言 | 贡献)
修复中文首页布局:隔离联系和支持区,取消赞赏码浮动,统一标题尺寸与间距;保留正文和链接
第1行: 第1行:
/* Adapted from Chinese Wikipedia homepage TemplateStyles revision 95318307.
/* TYZX Chinese homepage. Reorganizes the Wikipedia-inspired layout for the existing text.
  * https://zh.wikipedia.org/w/index.php?oldid=95318307
  * Previous adaptation: https://zh.wikipedia.org/w/index.php?oldid=95318307, CC BY-SA 4.0.
* Original contributors: revision history; CC BY-SA 4.0.
  * This revision removes inherited floats and uses isolated responsive grids. */
  * TYZX changes: own logo, long introductory text, responsive widths and footer. */
#tyzx-home-main {
#mp-2012 a.new{color:inherit}.mp-2012-text>ul{margin-left:1em}#column-feature-more .column-feature-more-header a{font-weight:bold;color:#474747}#column-feature-more{margin-top:1.2em;clear:left}#column-feature-more ul{list-style:none;margin-left:0}#column-feature-more li{font-size:0.9em;color:#474747}.mp-2012-block-nav-footer{color:#666;font-size:0.85em;clear:both;text-align:right}#mp-2012-banner a{color:#17b}#mp-2012-banner>div{line-height:120px}#mp-2012-banner>div>div{line-height:1.5em;vertical-align:middle}#mp-2012-banner-title{float:left;margin-left:40px;width:240px}#mp-2012-banner-title>div{display:inline-block;font-family:sans-serif}#mp-2012-banner-title h1{border-bottom:none;font-size:2em;margin:0;padding:0}#mp-2012-banner-title p{margin:0;padding:0;font-size:90%;color:#457}#mp-2012-banner-intro>div{display:inline-block;text-align:center}#mp-2012-banner-intro .number-of-articles a{color:#113c86;font-size:120%;font-family:sans-serif;font-weight:bold}#mp-2012-banner-intro p{margin:0;padding-bottom:0.3em;letter-spacing:0.1em;font-weight:bold;color:#457}#mp-2012-banner-intro table{width:100%}#mp-2012-banner-intro td{vertical-align:top;padding:0 0.5em}#mp-2012 h1{font-weight:bold;border:none}#mp-2012-links table{padding:0.8em 1.6em;font-size:0.95em;width:96%;border:1px solid #eaecf0;box-shadow:0px 1px 1px rgba(0,0,0,0.1);background:var(--background-color-neutral-subtle,#f8f9fa);margin:0 auto}#mp-2012-links td{width:33.33%;vertical-align:top}#mp-2012-links h3{font-size:0.98em;font-weight:bold;color:#6b6b6b;padding-bottom:0.2em;border-bottom:1px solid #eaecf0;margin-bottom:0.8em}#mp-2012-sisters{margin-top:50px;clear:both;padding-top:15px;border-top:3px double var(--border-color-subtle,#c8cdd1);color:var(--color-base,#202122);line-height:120%}#mp-2012 h2{font-weight:bold;border:none;font-size:1.16em;margin-bottom:0.8em;letter-spacing:0.16em}#mp-2012-column-left h2,#mp-2012-column-left h2 a{color:#259}#mp-2012-column-right h2,#mp-2012-column-right h2 a{color:var(--color-subtle,#54595d)}@media all and (min-width:640px){#mp-2012-sisters>div{background:var(--background-color-base,white);width:45px;margin:-40px auto 0}#mp-2012-links{margin-bottom:0.8em;overflow:hidden;clear:left}#mp-2012 #column-uptrends{margin-left:0;color:#3b3b3b}#mp-2012 #column-participate{margin-left:1.6em;color:#3b3b3b}#mp-2012 #column-participate-button{text-align:center;margin-top:1.5em;white-space:nowrap;font-weight:bold}#mp-2012 #column-tips{margin-left:1.6em;color:#494949}#mp-2012-column-tips-header{font-weight:bold;color:var(--color-notice,#404244)}#mp-2012,#mp-2012-body{clear:both}#mp-2012-body{min-width:695px}#mp-2012-column-left{float:left;width:57%}#mp-2012-column-left>div{margin-right:1.5em}.mp-2012-column-left-block{margin-top:0.8em;padding:0.8em 1.6em 1.8em;line-height:1.5em}.mp-2012-column-left-block+.mp-2012-column-left-block{margin-top:0.4em;border-top:1px solid #eaecf0}#mp-2012-column-right{float:right;width:43%}#column-feature img,#mp-2012 #column-good img{margin:0.4em 0.9em 0.3em 0}#column-feature p img,#mp-2012 #column-good p img{margin:0}#column-feature p,#mp-2012 #column-good p{line-height:1.6em;text-align:justify;text-justify:auto}#column-dyk li{margin-bottom:0.5em}#mp-2012-column-left .mp-2012-text{color:var(--color-emphasized,#101418)}#mp-2012-column-right .mp-2012-text{font-size:0.98em}#mp-2012-column-right>div{margin-top:1.6em}.mp-2012-column-right-block{margin:0 0 1.6em;padding:0.8em 1.6em 1.6em}#mp-2012-column-right-block-a{border:1px solid #eaecf0;box-shadow:0px 1px 3px rgba(0,0,0,0.08);background:var(--background-color-base,white)}#mp-2012-column-right-block-b{border:1px solid #cadeed;box-shadow:0px 1px 3px #dde6ed;background-image:linear-gradient(to bottom,white 65%,#eff6fa 100%);clear:both}#mp-2012-column-right-block-c{margin-bottom:0.4em;clear:both}#column-itn li{margin-bottom:0.8em}#column-otd img{margin-left:0.6em;margin-bottom:0.6em}#column-otd dl{padding-left:0}#column-otd dt{float:left;width:4.2em}#column-otd dd{margin-bottom:0.8em;margin-left:4.5em}#mp-2012-banner-logo{float:left;width:182px;height:119px;margin-bottom:1px;background-size:300px 274px;background-position:-118px 8px;background-repeat:no-repeat}#mp-2012-banner{background-image:linear-gradient(to top,#77c1f6 0,#e8f2f8 2px,white 100%);clear:both;height:120px;min-width:727px}#mp-2012-banner-intro{float:right;margin-right:20px;width:245px;text-align:right}}@media screen{html.skin-theme-clientpref-night #mp-2012-banner{background:none}html.skin-theme-clientpref-night #mp-2012-banner p{color:#eaecf0}html.skin-theme-clientpref-night #mp-2012-banner a{color:#6baff7}html.skin-theme-clientpref-night #mp-2012-banner-intro .number-of-articles a{color:#79a4ee}html.skin-theme-clientpref-night #column-feature-more .column-feature-more-header a,html.skin-theme-clientpref-night #column-feature-more li{color:#b8b8b8}html.skin-theme-clientpref-night .mp-2012-block-nav-footer{color:#999}html.skin-theme-clientpref-night #mp-2012-links table{border-color:#27292d}html.skin-theme-clientpref-night #mp-2012-links h3{color:#949494;border-bottom-color:#27292d}html.skin-theme-clientpref-night #mp-2012-column-left h2,html.skin-theme-clientpref-night #mp-2012-column-left h2 a{color:#8ab4f8}html.skin-theme-clientpref-night #mp-2012 #column-uptrends,html.skin-theme-clientpref-night #mp-2012 #column-participate{color:#c4c4c4}html.skin-theme-clientpref-night #mp-2012 #column-tips{color:#b6b6b6}html.skin-theme-clientpref-night .mp-2012-column-left-block+.mp-2012-column-left-block{border-top-color:#27292d}html.skin-theme-clientpref-night #mp-2012-column-right-block-a{border-color:#27292d}html.skin-theme-clientpref-night #mp-2012-column-right-block-b{border-color:#27292d;background:none}html.skin-theme-clientpref-night #mp-2012 .mw-image-border .mw-file-element{border-color:transparent}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os #mp-2012-banner{background:none}html.skin-theme-clientpref-os #mp-2012-banner p{color:#eaecf0}html.skin-theme-clientpref-os #mp-2012-banner a{color:#6baff7}html.skin-theme-clientpref-os #mp-2012-banner-intro .number-of-articles a{color:#79a4ee}html.skin-theme-clientpref-os #column-feature-more .column-feature-more-header a,html.skin-theme-clientpref-os #column-feature-more li{color:#b8b8b8}html.skin-theme-clientpref-os .mp-2012-block-nav-footer{color:#999}html.skin-theme-clientpref-os #mp-2012-links table{border-color:#27292d}html.skin-theme-clientpref-os #mp-2012-links h3{color:#949494;border-bottom-color:#27292d}html.skin-theme-clientpref-os #mp-2012-column-left h2,html.skin-theme-clientpref-os #mp-2012-column-left h2 a{color:#8ab4f8}html.skin-theme-clientpref-os #mp-2012 #column-uptrends,html.skin-theme-clientpref-os #mp-2012 #column-participate{color:#c4c4c4}html.skin-theme-clientpref-os #mp-2012 #column-tips{color:#b6b6b6}html.skin-theme-clientpref-os .mp-2012-column-left-block+.mp-2012-column-left-block{border-top-color:#27292d}html.skin-theme-clientpref-os #mp-2012-column-right-block-a{border-color:#27292d}html.skin-theme-clientpref-os #mp-2012-column-right-block-b{border-color:#27292d;background:none}html.skin-theme-clientpref-os #mp-2012 .mw-image-border .mw-file-element{border-color:transparent}}#mp-2012-column-featurepic-block ul.mw-gallery-packed-hover{background:var(--background-color-backdrop-light,rgba(255,255,255,0.65))!important}#mp-2012-column-featurepic-block .gallerybox,#mp-2012-column-featurepic-block .thumb{max-width:100%;width:auto!important;box-sizing:border-box}#mp-2012-column-featurepic-block img{max-width:100%;height:auto}#mp-2012-column-featurepic-block .gallerytextwrapper{max-width:100%;width:100%!important;box-sizing:border-box}#mp-2012 .hlist ul{margin-top:0;margin-bottom:0;margin-right:0;padding:0}#mp-2012 .hlist:not(.mp-2012-text) ul{margin-left:0}#mp-2012 .hlist li{margin:0;display:inline}#mp-2012 .hlist li::after{content:" · ";font-weight:bold}#mp-2012 .hlist li:last-child::after{content:none}body.skin-vector-legacy #mp-2012-banner{margin:0 -1.25em;margin:0 -1rem!important}body.skin-vector-legacy.vector-animateLayout #mp-2012-banner{transition:margin-left 250ms,margin-right 250ms}body.skin-vector-2022 #mp-2012-banner{margin:auto!important}body.skin-timeless #mp-2012-sisters .content-table{overflow:hidden}body.skin-timeless #mp-2012-sisters>div{margin:initial!important;width:100%!important}@media screen and (min-width:982px){body.skin-vector-legacy #mp-2012-banner{margin:0 -1.875em;margin:0 -1.5rem!important}body.skin-vector-2022 #mp-2012-banner{margin:auto!important}}
color:var(--color-base,#202122);
/* TYZX content-fit adjustments; no text replacement. */
font-family:sans-serif;
#mp-2012-banner { display:flex; align-items:center; min-width:0; height:auto; min-height:120px; padding:1em 0; }
font-size:1rem;
#mp-2012-banner > div { line-height:normal; }
line-height:1.7;
#mp-2012-banner-logo { flex:0 0 130px; float:none; width:130px; height:120px;  background-size:105px 105px; background-position:center; }
max-width:1140px;
#mp-2012-banner-title { float:none; width:auto; margin:0 1em; flex:1; min-width:0; }
margin:0 auto;
#mp-2012-banner-title h1 { font-size:1.8em; }
}
#mp-2012-banner-title p { font-size:90%; }
#tyzx-home-main * { box-sizing:border-box; }
#mp-2012-body { min-width:0; display:flow-root; }
#tyzx-home-main h1,#tyzx-home-main h2,#tyzx-home-main h3 {
#mp-2012-links { clear:both; padding:1em 1.6em; border-top:1px solid var(--border-color-subtle,#eaecf0); }
font-family:inherit;
#mp-2012-links h2 { color:var(--color-subtle,#54595d); letter-spacing:0.08em; padding-top:.8em; }
font-weight:600;
#mp-2012-links div > div { display:inline-block; margin:.3em .8em .3em 0; }
border:0;
#mp-2012 .mp-2012-notice { padding:.8em 1em; margin:1em 0; border:1px solid var(--border-color-subtle,#eaecf0); background:var(--background-color-neutral-subtle,#f8f9fa); }
padding:0;
#mp-2012 .mw-file-element { max-width:100%; height:auto; }
line-height:1.4;
#mp-2012 .mw-inputbox-form-inline { max-width:100%; }
letter-spacing:0;
#mp-2012 .mw-inputbox-form-inline input { max-width:100%; box-sizing:border-box; }
}
#mp-2012 .mw-heading h2 { margin-top:0; }
#tyzx-home-main h1 { font-size:1.8em; margin:0 0 .5em; }
@media all and (max-width:760px) {
#tyzx-home-main h2 { font-size:1.15em; margin:0 0 .8em; color:var(--color-progressive,#225599); }
#mp-2012-column-left,#mp-2012-column-right { float:none; width:auto; }
#tyzx-home-main h3 { font-size:1.05em; margin:.7em 0 .6em; }
#mp-2012-column-left > div { margin-right:0; }
#tyzx-home-main p { margin:.6em 0; }
#mp-2012 .mp-2012-column-left-block,#mp-2012 .mp-2012-column-right-block { padding:.8em 1em 1.2em; }
#tyzx-home-main .mw-heading { margin:0; padding:0; border:0; display:block; }
#mp-2012-banner-logo { flex-basis:80px; width:80px; background-size:70px 70px; }
#tyzx-home-main .mw-editsection { display:none; }
#mp-2012-banner-title { margin-left:0; }
#tyzx-home-main .th-hero {
#mp-2012-banner-title h1 { font-size:1.4em; }
display:flex;
#mp-2012-links { padding:1em 0; }
align-items:center;
gap:24px;
padding:24px;
margin-bottom:24px;
border-bottom:2px solid #77c1f6;
background:linear-gradient(to bottom,var(--background-color-base,#fff),var(--background-color-neutral-subtle,#edf4fa));
}
#tyzx-home-main .th-logo { flex:0 0 96px; }
#tyzx-home-main .th-logo p { margin:0; }
#tyzx-home-main .th-welcome { flex:1; min-width:0; }
#tyzx-home-main .th-main-grid { display:grid; grid-template-columns:minmax(0,57fr) minmax(0,43fr); gap:24px; }
#tyzx-home-main .th-left,#tyzx-home-main .th-right { min-width:0; }
#tyzx-home-main .th-section { padding:20px; margin:0 0 20px; min-width:0; display:flow-root; border-top:1px solid var(--border-color-subtle,#eaecf0); }
#tyzx-home-main .th-side { border:1px solid var(--border-color-subtle,#eaecf0); background:var(--background-color-neutral-subtle,#f8f9fa); }
#tyzx-home-main .th-section > :last-child { margin-bottom:0; }
#tyzx-home-main .th-notice { padding:14px 20px; margin:0 0 20px; border:1px solid var(--border-color-subtle,#eaecf0); background:var(--background-color-neutral-subtle,#f8f9fa); font-size:.9em; }
#tyzx-home-main .th-footer-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
#tyzx-home-main .th-link-list { display:flex; flex-wrap:wrap; gap:10px 24px; list-style:none; padding:0; margin:0; }
#tyzx-home-main .th-link-list li { margin:0; padding:0; }
#tyzx-home-main .th-support { display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:20px; align-items:start; }
#tyzx-home-main .th-support > div { min-width:0; }
#tyzx-home-main .th-donation-image { text-align:center; font-size:.85em; }
#tyzx-home-main .th-donation-image p { margin:0; }
#tyzx-home-main .th-donation-image figure,#tyzx-home-main .th-donation-image .thumb { float:none; margin:0; padding:0; width:auto; }
#tyzx-home-main .th-footnote { clear:both; border-top:1px solid var(--border-color-subtle,#eaecf0); padding:16px 20px; color:var(--color-subtle,#54595d); font-size:.85em; }
#tyzx-home-main img { max-width:100%; height:auto; }
#tyzx-home-main figure { max-width:100%; }
#tyzx-home-main .mw-inputbox-form-inline { max-width:100%; margin:.7em 0; text-align:left; }
#tyzx-home-main .mw-inputbox-centered { text-align:left; }
#tyzx-home-main input { max-width:100%; }
#tyzx-home-main ul { margin-top:.6em; margin-bottom:.6em; }
#tyzx-home-main a { overflow-wrap:anywhere; }
@media screen and (max-width:900px) {
#tyzx-home-main .th-footer-grid { grid-template-columns:minmax(0,1fr); gap:0; }
}
@media screen and (max-width:720px) {
#tyzx-home-main .th-main-grid { grid-template-columns:minmax(0,1fr); gap:0; }
#tyzx-home-main .th-hero { padding:18px 12px; gap:14px; }
#tyzx-home-main .th-logo { flex-basis:64px; }
#tyzx-home-main h1 { font-size:1.4em; }
#tyzx-home-main .th-section { padding:18px 8px; margin-bottom:12px; }
#tyzx-home-main .th-side { padding:18px 14px; }
#tyzx-home-main .th-notice { padding:12px; }
#tyzx-home-main .th-footnote { padding:14px 8px; }
}
@media screen and (max-width:420px) {
#tyzx-home-main .th-hero { display:block; }
#tyzx-home-main .th-logo { display:none; }
#tyzx-home-main .th-support { grid-template-columns:minmax(0,1fr) 128px; gap:12px; }
}
}
#mp-2012-banner-logo { display:flex; align-items:center; justify-content:center; }

2026年11月2日 (一) 17:03的版本

/* TYZX Chinese homepage. Reorganizes the Wikipedia-inspired layout for the existing text.
 * Previous adaptation: https://zh.wikipedia.org/w/index.php?oldid=95318307, CC BY-SA 4.0.
 * This revision removes inherited floats and uses isolated responsive grids. */
#tyzx-home-main {
 color:var(--color-base,#202122);
 font-family:sans-serif;
 font-size:1rem;
 line-height:1.7;
 max-width:1140px;
 margin:0 auto;
}
#tyzx-home-main * { box-sizing:border-box; }
#tyzx-home-main h1,#tyzx-home-main h2,#tyzx-home-main h3 {
 font-family:inherit;
 font-weight:600;
 border:0;
 padding:0;
 line-height:1.4;
 letter-spacing:0;
}
#tyzx-home-main h1 { font-size:1.8em; margin:0 0 .5em; }
#tyzx-home-main h2 { font-size:1.15em; margin:0 0 .8em; color:var(--color-progressive,#225599); }
#tyzx-home-main h3 { font-size:1.05em; margin:.7em 0 .6em; }
#tyzx-home-main p { margin:.6em 0; }
#tyzx-home-main .mw-heading { margin:0; padding:0; border:0; display:block; }
#tyzx-home-main .mw-editsection { display:none; }
#tyzx-home-main .th-hero {
 display:flex;
 align-items:center;
 gap:24px;
 padding:24px;
 margin-bottom:24px;
 border-bottom:2px solid #77c1f6;
 background:linear-gradient(to bottom,var(--background-color-base,#fff),var(--background-color-neutral-subtle,#edf4fa));
}
#tyzx-home-main .th-logo { flex:0 0 96px; }
#tyzx-home-main .th-logo p { margin:0; }
#tyzx-home-main .th-welcome { flex:1; min-width:0; }
#tyzx-home-main .th-main-grid { display:grid; grid-template-columns:minmax(0,57fr) minmax(0,43fr); gap:24px; }
#tyzx-home-main .th-left,#tyzx-home-main .th-right { min-width:0; }
#tyzx-home-main .th-section { padding:20px; margin:0 0 20px; min-width:0; display:flow-root; border-top:1px solid var(--border-color-subtle,#eaecf0); }
#tyzx-home-main .th-side { border:1px solid var(--border-color-subtle,#eaecf0); background:var(--background-color-neutral-subtle,#f8f9fa); }
#tyzx-home-main .th-section > :last-child { margin-bottom:0; }
#tyzx-home-main .th-notice { padding:14px 20px; margin:0 0 20px; border:1px solid var(--border-color-subtle,#eaecf0); background:var(--background-color-neutral-subtle,#f8f9fa); font-size:.9em; }
#tyzx-home-main .th-footer-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
#tyzx-home-main .th-link-list { display:flex; flex-wrap:wrap; gap:10px 24px; list-style:none; padding:0; margin:0; }
#tyzx-home-main .th-link-list li { margin:0; padding:0; }
#tyzx-home-main .th-support { display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:20px; align-items:start; }
#tyzx-home-main .th-support > div { min-width:0; }
#tyzx-home-main .th-donation-image { text-align:center; font-size:.85em; }
#tyzx-home-main .th-donation-image p { margin:0; }
#tyzx-home-main .th-donation-image figure,#tyzx-home-main .th-donation-image .thumb { float:none; margin:0; padding:0; width:auto; }
#tyzx-home-main .th-footnote { clear:both; border-top:1px solid var(--border-color-subtle,#eaecf0); padding:16px 20px; color:var(--color-subtle,#54595d); font-size:.85em; }
#tyzx-home-main img { max-width:100%; height:auto; }
#tyzx-home-main figure { max-width:100%; }
#tyzx-home-main .mw-inputbox-form-inline { max-width:100%; margin:.7em 0; text-align:left; }
#tyzx-home-main .mw-inputbox-centered { text-align:left; }
#tyzx-home-main input { max-width:100%; }
#tyzx-home-main ul { margin-top:.6em; margin-bottom:.6em; }
#tyzx-home-main a { overflow-wrap:anywhere; }
@media screen and (max-width:900px) {
 #tyzx-home-main .th-footer-grid { grid-template-columns:minmax(0,1fr); gap:0; }
}
@media screen and (max-width:720px) {
 #tyzx-home-main .th-main-grid { grid-template-columns:minmax(0,1fr); gap:0; }
 #tyzx-home-main .th-hero { padding:18px 12px; gap:14px; }
 #tyzx-home-main .th-logo { flex-basis:64px; }
 #tyzx-home-main h1 { font-size:1.4em; }
 #tyzx-home-main .th-section { padding:18px 8px; margin-bottom:12px; }
 #tyzx-home-main .th-side { padding:18px 14px; }
 #tyzx-home-main .th-notice { padding:12px; }
 #tyzx-home-main .th-footnote { padding:14px 8px; }
}
@media screen and (max-width:420px) {
 #tyzx-home-main .th-hero { display:block; }
 #tyzx-home-main .th-logo { display:none; }
 #tyzx-home-main .th-support { grid-template-columns:minmax(0,1fr) 128px; gap:12px; }
}