模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) Improve homepage link distinguishability |
Maintenance script(留言 | 贡献) Refine MUC Wiki home component styling |
||
| 第21行: | 第21行: | ||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1.05fr) minmax( | grid-template-columns: minmax(0, 1.05fr) minmax(17rem, .52fr); | ||
gap: . | gap: .9rem; | ||
align-items: stretch; | align-items: stretch; | ||
padding: | padding: .95rem; | ||
border: 1px solid # | border: 1px solid #dbe4ef; | ||
border-radius: | border-radius: 12px; | ||
background: # | background: #fff; | ||
box-shadow: 0 | box-shadow: 0 1px 2px rgba(37, 55, 82, .045); | ||
} | } | ||
| 第34行: | 第34行: | ||
display: grid; | display: grid; | ||
align-content: center; | align-content: center; | ||
gap: . | gap: .58rem; | ||
min-height: | min-height: 9.6rem; | ||
padding: . | padding: .25rem .2rem .25rem .25rem; | ||
line-height: 1.7; | line-height: 1.7; | ||
} | } | ||
| 第44行: | 第44行: | ||
width: max-content; | width: max-content; | ||
max-width: 100%; | max-width: 100%; | ||
padding: . | padding: .22rem .58rem; | ||
border: 1px solid #bfd0e6; | border: 1px solid #bfd0e6; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #f2f7ff; | ||
color: #315f9e; | color: #315f9e; | ||
font-size: . | font-size: .84rem; | ||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
| 第55行: | 第55行: | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
color: #0f172a; | color: #0f172a; | ||
font-size: 2. | font-size: 2.05rem; | ||
font-weight: 800; | font-weight: 800; | ||
line-height: 1. | line-height: 1.1; | ||
} | } | ||
| 第63行: | 第63行: | ||
max-width: 42rem; | max-width: 42rem; | ||
color: #253044; | color: #253044; | ||
font-size: 1. | font-size: 1.02rem; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| 第70行: | 第70行: | ||
display: grid; | display: grid; | ||
grid-template-rows: minmax(0, 1fr) auto; | grid-template-rows: minmax(0, 1fr) auto; | ||
gap: . | gap: .62rem; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
| 第77行: | 第77行: | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
min-height: 8. | min-height: 8.3rem; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #edf1f6; | border: 1px solid #edf1f6; | ||
border-radius: | border-radius: 10px; | ||
background: #fff; | background: #fff; | ||
} | } | ||
| 第90行: | 第90行: | ||
max-width: 286px; | max-width: 286px; | ||
height: auto; | height: auto; | ||
border-radius: | border-radius: 8px; | ||
} | } | ||
| 第96行: | 第96行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .52rem; | ||
} | } | ||
.mucwiki-home-stat { | .mucwiki-home-stat { | ||
min-width: 0; | min-width: 0; | ||
padding: .64rem | padding: .58rem .64rem; | ||
border: 1px solid # | border: 1px solid #dbe4ef; | ||
border-radius: | border-radius: 10px; | ||
background: #fff; | background: #fff; | ||
color: #536070; | color: #536070; | ||
| 第116行: | 第116行: | ||
.mucwiki-home-stat strong { | .mucwiki-home-stat strong { | ||
color: #075fc7; | color: #075fc7; | ||
font-size: 1. | font-size: 1.08rem; | ||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
| 第127行: | 第127行: | ||
.mucwiki-home-topline, | .mucwiki-home-topline, | ||
.mucwiki-home-note { | .mucwiki-home-note { | ||
border: 1px solid # | border: 1px solid #dbe4ef; | ||
border-radius: | border-radius: 10px; | ||
background: #fff; | background: #fff; | ||
color: #536070; | color: #536070; | ||
| 第135行: | 第135行: | ||
.mucwiki-home-topline { | .mucwiki-home-topline { | ||
margin-top: . | margin-top: .82rem; | ||
padding: . | padding: .66rem .82rem; | ||
} | } | ||
.mucwiki-home-note { | .mucwiki-home-note { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1fr) minmax(17rem, . | grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr); | ||
gap: . | gap: .72rem; | ||
margin-top: . | margin-top: .82rem; | ||
padding: . | padding: .82rem .95rem; | ||
} | } | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: | margin-top: 1rem; | ||
} | } | ||
| 第154行: | 第154行: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: . | gap: .52rem; | ||
margin: 0 0 . | margin: 0 0 .66rem; | ||
color: #0f172a; | color: #0f172a; | ||
font-size: 1. | font-size: 1.17rem; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0; | letter-spacing: 0; | ||
| 第165行: | 第165行: | ||
content: ""; | content: ""; | ||
display: inline-block; | display: inline-block; | ||
width: . | width: .36rem; | ||
height: | height: 1rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: #315f9e; | background: #315f9e; | ||
| 第173行: | 第173行: | ||
.mucwiki-home-grid { | .mucwiki-home-grid { | ||
display: grid; | display: grid; | ||
gap: . | gap: .68rem; | ||
} | } | ||
| 第183行: | 第183行: | ||
.mucwiki-home-panel, | .mucwiki-home-panel, | ||
.mucwiki-home-help__grid > div { | .mucwiki-home-help__grid > div { | ||
border: 1px solid # | border: 1px solid #dbe4ef; | ||
border-radius: | border-radius: 10px; | ||
background: #fff; | background: #fff; | ||
box-shadow: 0 | box-shadow: 0 1px 2px rgba(37, 55, 82, .035); | ||
} | } | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
position: relative; | position: relative; | ||
min-height: 5. | min-height: 5.35rem; | ||
padding: . | padding: .82rem .95rem; | ||
} | } | ||
.mucwiki-home-card:hover, | .mucwiki-home-card:hover, | ||
.mucwiki-home-card:focus { | .mucwiki-home-card:focus { | ||
border-color: # | border-color: #a9bfdc; | ||
box-shadow: 0 14px | box-shadow: 0 4px 14px rgba(37, 55, 82, .065); | ||
} | } | ||
| 第207行: | 第207行: | ||
.mucwiki-home-card strong { | .mucwiki-home-card strong { | ||
padding-right: 1. | padding-right: 1.2rem; | ||
font-size: | font-size: 1rem; | ||
} | } | ||
| 第214行: | 第214行: | ||
content: "›"; | content: "›"; | ||
position: absolute; | position: absolute; | ||
top: . | top: .82rem; | ||
right: | right: .95rem; | ||
color: #8aa2c2; | color: #8aa2c2; | ||
font-size: 1. | font-size: 1.28rem; | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
.mucwiki-home-card span { | .mucwiki-home-card span { | ||
margin-top: . | margin-top: .32rem; | ||
color: #536070; | color: #536070; | ||
line-height: 1.55; | line-height: 1.55; | ||
| 第230行: | 第230行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: . | gap: .82rem; | ||
} | } | ||
.mucwiki-home-panel { | .mucwiki-home-panel { | ||
padding: | padding: .92rem 1rem; | ||
} | } | ||
.mucwiki-home-panel ul { | .mucwiki-home-panel ul { | ||
display: grid; | display: grid; | ||
gap: . | gap: .36rem; | ||
margin: .2rem 0 0; | margin: .2rem 0 0; | ||
padding-left: 1.1rem; | padding-left: 1.1rem; | ||
| 第253行: | 第253行: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: . | gap: .5rem; | ||
} | } | ||
| 第259行: | 第259行: | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
min-height: 2. | min-height: 2.16rem; | ||
padding: . | padding: .34rem .66rem; | ||
border: 1px solid # | border: 1px solid #dbe4ef; | ||
border-radius: | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
color: #344054; | color: #344054; | ||
line-height: 1.35; | line-height: 1.35; | ||
box-shadow: 0 | box-shadow: 0 1px 2px rgba(37, 55, 82, .025); | ||
} | } | ||
| 第272行: | 第272行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .76rem; | ||
} | } | ||
.mucwiki-home-help__grid > div { | .mucwiki-home-help__grid > div { | ||
padding: . | padding: .88rem; | ||
} | } | ||
.mucwiki-home-help h3 { | .mucwiki-home-help h3 { | ||
margin: 0 0 . | margin: 0 0 .42rem; | ||
color: #172033; | color: #172033; | ||
font-size: 1rem; | font-size: 1rem; | ||
| 第322行: | 第322行: | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
padding: . | padding: .86rem; | ||
border-radius: | border-radius: 12px; | ||
} | } | ||
.mucwiki-home-copy { | .mucwiki-home-copy { | ||
min-height: auto; | min-height: auto; | ||
gap: . | gap: .48rem; | ||
} | } | ||
| 第336行: | 第336行: | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
font-size: 1. | font-size: 1.58rem; | ||
} | } | ||
.mucwiki-home-lede { | .mucwiki-home-lede { | ||
font-size: . | font-size: .97rem; | ||
} | } | ||
.mucwiki-home-side { | .mucwiki-home-side { | ||
gap: . | gap: .52rem; | ||
} | } | ||
| 第352行: | 第352行: | ||
.mucwiki-home-stats-grid { | .mucwiki-home-stats-grid { | ||
gap: . | gap: .42rem; | ||
} | } | ||
.mucwiki-home-stat { | .mucwiki-home-stat { | ||
padding: . | padding: .52rem .48rem; | ||
} | } | ||
.mucwiki-home-stat strong { | .mucwiki-home-stat strong { | ||
font-size: . | font-size: .97rem; | ||
} | } | ||
| 第369行: | 第369行: | ||
.mucwiki-home-topline, | .mucwiki-home-topline, | ||
.mucwiki-home-note { | .mucwiki-home-note { | ||
padding: . | padding: .74rem; | ||
} | } | ||
| 第377行: | 第377行: | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
min-height: | min-height: 5rem; | ||
} | } | ||
.mucwiki-home-link-cloud span { | .mucwiki-home-link-cloud span { | ||
width: 100%; | width: 100%; | ||
} | } | ||
} | } | ||
2026年6月4日 (四) 04:18的版本
.mucwiki-home {
color: #172033;
font-size: 1rem;
}
.mucwiki-home a {
color: #075fc7;
text-decoration: underline;
}
.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(17rem, .52fr);
gap: .9rem;
align-items: stretch;
padding: .95rem;
border: 1px solid #dbe4ef;
border-radius: 12px;
background: #fff;
box-shadow: 0 1px 2px rgba(37, 55, 82, .045);
}
.mucwiki-home-copy {
display: grid;
align-content: center;
gap: .58rem;
min-height: 9.6rem;
padding: .25rem .2rem .25rem .25rem;
line-height: 1.7;
}
.mucwiki-home-kicker {
display: inline-block;
width: max-content;
max-width: 100%;
padding: .22rem .58rem;
border: 1px solid #bfd0e6;
border-radius: 999px;
background: #f2f7ff;
color: #315f9e;
font-size: .84rem;
font-weight: 800;
}
.mucwiki-home-title {
color: #0f172a;
font-size: 2.05rem;
font-weight: 800;
line-height: 1.1;
}
.mucwiki-home-lede {
max-width: 42rem;
color: #253044;
font-size: 1.02rem;
font-weight: 700;
}
.mucwiki-home-side {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
gap: .62rem;
min-width: 0;
}
.mucwiki-home-media {
display: grid;
place-items: center;
min-height: 8.3rem;
overflow: hidden;
border: 1px solid #edf1f6;
border-radius: 10px;
background: #fff;
}
.mucwiki-home-media .mw-file-element,
.mucwiki-home-media img {
display: block;
width: 100%;
max-width: 286px;
height: auto;
border-radius: 8px;
}
.mucwiki-home-stats-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .52rem;
}
.mucwiki-home-stat {
min-width: 0;
padding: .58rem .64rem;
border: 1px solid #dbe4ef;
border-radius: 10px;
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.08rem;
font-weight: 800;
}
.mucwiki-home-stat span {
margin-top: .18rem;
font-size: .85rem;
}
.mucwiki-home-topline,
.mucwiki-home-note {
border: 1px solid #dbe4ef;
border-radius: 10px;
background: #fff;
color: #536070;
line-height: 1.68;
}
.mucwiki-home-topline {
margin-top: .82rem;
padding: .66rem .82rem;
}
.mucwiki-home-note {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr);
gap: .72rem;
margin-top: .82rem;
padding: .82rem .95rem;
}
.mucwiki-home-section {
margin-top: 1rem;
}
.mucwiki-home-section h2 {
display: flex;
align-items: center;
gap: .52rem;
margin: 0 0 .66rem;
color: #0f172a;
font-size: 1.17rem;
font-weight: 800;
letter-spacing: 0;
}
.mucwiki-home-section h2::before {
content: "";
display: inline-block;
width: .36rem;
height: 1rem;
border-radius: 999px;
background: #315f9e;
}
.mucwiki-home-grid {
display: grid;
gap: .68rem;
}
.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 #dbe4ef;
border-radius: 10px;
background: #fff;
box-shadow: 0 1px 2px rgba(37, 55, 82, .035);
}
.mucwiki-home-card {
position: relative;
min-height: 5.35rem;
padding: .82rem .95rem;
}
.mucwiki-home-card:hover,
.mucwiki-home-card:focus {
border-color: #a9bfdc;
box-shadow: 0 4px 14px rgba(37, 55, 82, .065);
}
.mucwiki-home-card strong,
.mucwiki-home-card span {
display: block;
}
.mucwiki-home-card strong {
padding-right: 1.2rem;
font-size: 1rem;
}
.mucwiki-home-card::after {
content: "›";
position: absolute;
top: .82rem;
right: .95rem;
color: #8aa2c2;
font-size: 1.28rem;
line-height: 1;
}
.mucwiki-home-card span {
margin-top: .32rem;
color: #536070;
line-height: 1.55;
}
.mucwiki-home-columns {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .82rem;
}
.mucwiki-home-panel {
padding: .92rem 1rem;
}
.mucwiki-home-panel ul {
display: grid;
gap: .36rem;
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: .5rem;
}
.mucwiki-home-link-cloud span {
display: inline-flex;
align-items: center;
min-height: 2.16rem;
padding: .34rem .66rem;
border: 1px solid #dbe4ef;
border-radius: 8px;
background: #fff;
color: #344054;
line-height: 1.35;
box-shadow: 0 1px 2px rgba(37, 55, 82, .025);
}
.mucwiki-home-help__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .76rem;
}
.mucwiki-home-help__grid > div {
padding: .88rem;
}
.mucwiki-home-help h3 {
margin: 0 0 .42rem;
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: .86rem;
border-radius: 12px;
}
.mucwiki-home-copy {
min-height: auto;
gap: .48rem;
}
.mucwiki-home-copy p:nth-of-type(4) {
display: none;
}
.mucwiki-home-title {
font-size: 1.58rem;
}
.mucwiki-home-lede {
font-size: .97rem;
}
.mucwiki-home-side {
gap: .52rem;
}
.mucwiki-home-media {
display: none;
}
.mucwiki-home-stats-grid {
gap: .42rem;
}
.mucwiki-home-stat {
padding: .52rem .48rem;
}
.mucwiki-home-stat strong {
font-size: .97rem;
}
.mucwiki-home-stat span {
font-size: .78rem;
}
.mucwiki-home-topline,
.mucwiki-home-note {
padding: .74rem;
}
.mucwiki-home-grid--primary {
grid-template-columns: 1fr;
}
.mucwiki-home-card {
min-height: 5rem;
}
.mucwiki-home-link-cloud span {
width: 100%;
}
}
.mucwiki-home-card a,
.mucwiki-home-link-cloud a,
.mucwiki-home-stat a {
text-decoration: none;
}
.mucwiki-home-card a:hover,
.mucwiki-home-card a:focus,
.mucwiki-home-link-cloud a:hover,
.mucwiki-home-link-cloud a:focus,
.mucwiki-home-stat a:hover,
.mucwiki-home-stat a:focus {
text-decoration: underline;
}