Template:首页/维基百科样式.css

THDeb​(留言 | 贡献)2026年11月2日 (一) 15:19的版本 (中文首页采用维基百科首页样式;保留全部文字;CSS改编自zh.wikipedia.org TemplateStyles修订95318307及其历史作者,CC BY-SA 4.0)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
/* Adapted from Chinese Wikipedia homepage TemplateStyles revision 95318307.
 * https://zh.wikipedia.org/w/index.php?oldid=95318307
 * Original contributors: revision history; CC BY-SA 4.0.
 * TYZX changes: own logo, long introductory text, responsive widths and footer. */
#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}}
/* TYZX content-fit adjustments; no text replacement. */
#mp-2012-banner { display:flex; align-items:center; min-width:0; height:auto; min-height:120px; padding:1em 0; }
#mp-2012-banner > div { line-height:normal; }
#mp-2012-banner-logo { flex:0 0 130px; float:none; width:130px; height:120px;  background-size:105px 105px; background-position:center; }
#mp-2012-banner-title { float:none; width:auto; margin:0 1em; flex:1; min-width:0; }
#mp-2012-banner-title h1 { font-size:1.8em; }
#mp-2012-banner-title p { font-size:90%; }
#mp-2012-body { min-width:0; display:flow-root; }
#mp-2012-links { clear:both; padding:1em 1.6em; border-top:1px solid var(--border-color-subtle,#eaecf0); }
#mp-2012-links h2 { color:var(--color-subtle,#54595d); letter-spacing:0.08em; padding-top:.8em; }
#mp-2012-links div > div { display:inline-block; margin:.3em .8em .3em 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); }
#mp-2012 .mw-file-element { max-width:100%; height:auto; }
#mp-2012 .mw-inputbox-form-inline { max-width:100%; }
#mp-2012 .mw-inputbox-form-inline input { max-width:100%; box-sizing:border-box; }
#mp-2012 .mw-heading h2 { margin-top:0; }
@media all and (max-width:760px) {
 #mp-2012-column-left,#mp-2012-column-right { float:none; width:auto; }
 #mp-2012-column-left > div { margin-right:0; }
 #mp-2012 .mp-2012-column-left-block,#mp-2012 .mp-2012-column-right-block { padding:.8em 1em 1.2em; }
 #mp-2012-banner-logo { flex-basis:80px; width:80px; background-size:70px 70px; }
 #mp-2012-banner-title { margin-left:0; }
 #mp-2012-banner-title h1 { font-size:1.4em; }
 #mp-2012-links { padding:1em 0; }
}

#mp-2012-banner-logo { display:flex; align-items:center; justify-content:center; }