模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) Refine MUC Wiki home component styles |
Maintenance script(留言 | 贡献) Tighten homepage first-viewport density |
||
| 第35行: | 第35行: | ||
align-content: center; | align-content: center; | ||
gap: .62rem; | gap: .62rem; | ||
min-height: | min-height: 10.2rem; | ||
padding: .35rem .25rem .35rem .35rem; | padding: .35rem .25rem .35rem .35rem; | ||
line-height: 1.7; | line-height: 1.7; | ||
| 第77行: | 第77行: | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
min-height: | min-height: 8.8rem; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #edf1f6; | border: 1px solid #edf1f6; | ||
| 第88行: | 第88行: | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: 286px; | ||
height: auto; | height: auto; | ||
border-radius: 11px; | border-radius: 11px; | ||
| 第135行: | 第135行: | ||
.mucwiki-home-topline { | .mucwiki-home-topline { | ||
margin-top: . | margin-top: .9rem; | ||
padding: .68rem .85rem; | padding: .68rem .85rem; | ||
} | } | ||
| 第348行: | 第348行: | ||
.mucwiki-home-media { | .mucwiki-home-media { | ||
display: none; | |||
} | } | ||
2026年6月4日 (四) 03:31的版本
.mucwiki-home {
color: #172033;
font-size: 1rem;
}
.mucwiki-home a {
color: #075fc7;
text-decoration: none;
}
.mucwiki-home a:hover,
.mucwiki-home a:focus {
color: #064b9c;
text-decoration: underline;
}
.mucwiki-home p {
margin: 0;
}
.mucwiki-home-masthead {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .56fr);
gap: .95rem;
align-items: stretch;
padding: 1rem;
border: 1px solid #d9e1ec;
border-radius: 16px;
background: #f5f8fc;
box-shadow: 0 18px 50px rgba(37, 55, 82, .08);
}
.mucwiki-home-copy {
display: grid;
align-content: center;
gap: .62rem;
min-height: 10.2rem;
padding: .35rem .25rem .35rem .35rem;
line-height: 1.7;
}
.mucwiki-home-kicker {
display: inline-block;
width: max-content;
max-width: 100%;
padding: .26rem .64rem;
border: 1px solid #bfd0e6;
border-radius: 999px;
background: #eef5ff;
color: #315f9e;
font-size: .86rem;
font-weight: 800;
}
.mucwiki-home-title {
color: #0f172a;
font-size: 2.18rem;
font-weight: 800;
line-height: 1.08;
}
.mucwiki-home-lede {
max-width: 42rem;
color: #253044;
font-size: 1.03rem;
font-weight: 700;
}
.mucwiki-home-side {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
gap: .7rem;
min-width: 0;
}
.mucwiki-home-media {
display: grid;
place-items: center;
min-height: 8.8rem;
overflow: hidden;
border: 1px solid #edf1f6;
border-radius: 14px;
background: #fff;
}
.mucwiki-home-media .mw-file-element,
.mucwiki-home-media img {
display: block;
width: 100%;
max-width: 286px;
height: auto;
border-radius: 11px;
}
.mucwiki-home-stats-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .55rem;
}
.mucwiki-home-stat {
min-width: 0;
padding: .64rem .7rem;
border: 1px solid #d9e1ec;
border-radius: 12px;
background: #fff;
color: #536070;
line-height: 1.28;
}
.mucwiki-home-stat strong,
.mucwiki-home-stat span {
display: block;
}
.mucwiki-home-stat strong {
color: #075fc7;
font-size: 1.12rem;
font-weight: 800;
}
.mucwiki-home-stat span {
margin-top: .18rem;
font-size: .85rem;
}
.mucwiki-home-topline,
.mucwiki-home-note {
border: 1px solid #d9e1ec;
border-radius: 12px;
background: #fff;
color: #536070;
line-height: 1.68;
}
.mucwiki-home-topline {
margin-top: .9rem;
padding: .68rem .85rem;
}
.mucwiki-home-note {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(17rem, .56fr);
gap: .75rem;
margin-top: .9rem;
padding: .85rem 1rem;
}
.mucwiki-home-section {
margin-top: 1.05rem;
}
.mucwiki-home-section h2 {
display: flex;
align-items: center;
gap: .55rem;
margin: 0 0 .68rem;
color: #0f172a;
font-size: 1.2rem;
font-weight: 800;
letter-spacing: 0;
}
.mucwiki-home-section h2::before {
content: "";
display: inline-block;
width: .42rem;
height: 1.08rem;
border-radius: 999px;
background: #315f9e;
}
.mucwiki-home-grid {
display: grid;
gap: .76rem;
}
.mucwiki-home-grid--primary {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mucwiki-home-card,
.mucwiki-home-panel,
.mucwiki-home-help__grid > div {
border: 1px solid #d9e1ec;
border-radius: 12px;
background: #fff;
box-shadow: 0 10px 30px rgba(37, 55, 82, .055);
}
.mucwiki-home-card {
position: relative;
min-height: 5.65rem;
padding: .9rem 1rem;
}
.mucwiki-home-card:hover,
.mucwiki-home-card:focus {
border-color: #9cb8dc;
box-shadow: 0 14px 34px rgba(37, 55, 82, .1);
}
.mucwiki-home-card strong,
.mucwiki-home-card span {
display: block;
}
.mucwiki-home-card strong {
padding-right: 1.25rem;
font-size: 1.02rem;
}
.mucwiki-home-card::after {
content: "›";
position: absolute;
top: .84rem;
right: 1rem;
color: #8aa2c2;
font-size: 1.35rem;
line-height: 1;
}
.mucwiki-home-card span {
margin-top: .34rem;
color: #536070;
line-height: 1.55;
}
.mucwiki-home-columns {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .9rem;
}
.mucwiki-home-panel {
padding: 1rem 1.1rem;
}
.mucwiki-home-panel ul {
display: grid;
gap: .38rem;
margin: .2rem 0 0;
padding-left: 1.1rem;
line-height: 1.75;
}
.mucwiki-home-panel--building {
background: #fffdf7;
border-color: #ead7a0;
}
.mucwiki-home-link-cloud {
display: flex;
flex-wrap: wrap;
gap: .56rem;
}
.mucwiki-home-link-cloud span {
display: inline-flex;
align-items: center;
min-height: 2.25rem;
padding: .38rem .72rem;
border: 1px solid #d9e1ec;
border-radius: 999px;
background: #fff;
color: #344054;
line-height: 1.35;
box-shadow: 0 6px 18px rgba(37, 55, 82, .04);
}
.mucwiki-home-help__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .82rem;
}
.mucwiki-home-help__grid > div {
padding: .95rem;
}
.mucwiki-home-help h3 {
margin: 0 0 .45rem;
color: #172033;
font-size: 1rem;
font-weight: 800;
}
.mucwiki-home-help p {
color: #536070;
line-height: 1.66;
}
.skin-tweeki.page-首页 .firstHeading,
.skin-tweeki.page-首页 #firstHeading,
.skin-tweeki.page-首页 h1.firstHeading {
display: none;
}
.skin-tweeki.page-首页 #siteSub,
.skin-tweeki.page-首页 #contentSub,
.skin-tweeki.page-首页 #jump-to-nav,
.skin-tweeki.page-首页 .printfooter,
.skin-tweeki.page-首页 .sidebar-right,
.skin-tweeki.page-首页 .tweeki-toc,
.skin-tweeki.page-首页 .mw-parser-output > p:first-child {
display: none;
}
@media (max-width: 980px) {
.mucwiki-home-masthead,
.mucwiki-home-note,
.mucwiki-home-columns,
.mucwiki-home-help__grid {
grid-template-columns: 1fr;
}
.mucwiki-home-grid--primary {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 560px) {
.mucwiki-home-masthead {
padding: .9rem;
border-radius: 14px;
}
.mucwiki-home-copy {
min-height: auto;
gap: .5rem;
}
.mucwiki-home-copy p:nth-of-type(4) {
display: none;
}
.mucwiki-home-title {
font-size: 1.62rem;
}
.mucwiki-home-lede {
font-size: .98rem;
}
.mucwiki-home-side {
gap: .55rem;
}
.mucwiki-home-media {
display: none;
}
.mucwiki-home-stats-grid {
gap: .45rem;
}
.mucwiki-home-stat {
padding: .55rem .5rem;
}
.mucwiki-home-stat strong {
font-size: .98rem;
}
.mucwiki-home-stat span {
font-size: .78rem;
}
.mucwiki-home-topline,
.mucwiki-home-note {
padding: .78rem;
}
.mucwiki-home-grid--primary {
grid-template-columns: 1fr;
}
.mucwiki-home-card {
min-height: 5.2rem;
}
.mucwiki-home-link-cloud span {
width: 100%;
border-radius: 10px;
}
}