模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) Tighten mobile homepage first screen |
Maintenance script(留言 | 贡献) Refine MUC Wiki home component styles |
||
| 第19行: | 第19行: | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-masthead { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, | grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .56fr); | ||
gap: | gap: .95rem; | ||
align-items: stretch; | align-items: stretch; | ||
padding: | padding: 1rem; | ||
border: 1px solid #d9e1ec; | border: 1px solid #d9e1ec; | ||
border-radius: | border-radius: 16px; | ||
background: #f5f8fc; | background: #f5f8fc; | ||
box-shadow: 0 18px 50px rgba(37, 55, 82, .08); | box-shadow: 0 18px 50px rgba(37, 55, 82, .08); | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-copy { | ||
display: grid; | display: grid; | ||
align-content: center; | align-content: center; | ||
gap: . | gap: .62rem; | ||
min-height: | min-height: 11.5rem; | ||
padding: .35rem .25rem .35rem .35rem; | padding: .35rem .25rem .35rem .35rem; | ||
line-height: 1. | line-height: 1.7; | ||
} | } | ||
.mucwiki-home-kicker { | .mucwiki-home-kicker { | ||
display: inline-block; | display: inline-block; | ||
padding: . | width: max-content; | ||
border: 1px solid # | max-width: 100%; | ||
padding: .26rem .64rem; | |||
border: 1px solid #bfd0e6; | |||
border-radius: 999px; | border-radius: 999px; | ||
background: #eef5ff; | background: #eef5ff; | ||
color: #315f9e; | color: #315f9e; | ||
font-size: .86rem; | font-size: .86rem; | ||
font-weight: | font-weight: 800; | ||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
color: #0f172a; | color: #0f172a; | ||
font-size: 2. | font-size: 2.18rem; | ||
font-weight: 800; | font-weight: 800; | ||
line-height: 1.08; | line-height: 1.08; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-lede { | ||
max-width: 42rem; | |||
color: #253044; | |||
font-size: 1.03rem; | |||
font-weight: 700; | |||
} | |||
.mucwiki-home-side { | |||
display: grid; | display: grid; | ||
grid-template-rows: minmax(0, 1fr) auto; | grid-template-rows: minmax(0, 1fr) auto; | ||
gap: . | gap: .7rem; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-media { | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
min-height: | min-height: 9.5rem; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #edf1f6; | border: 1px solid #edf1f6; | ||
border-radius: | border-radius: 14px; | ||
background: #fff; | background: #fff; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-media .mw-file-element, | ||
.mucwiki-home- | .mucwiki-home-media img { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: 300px; | ||
height: auto; | height: auto; | ||
border-radius: | border-radius: 11px; | ||
} | |||
.mucwiki-home-stats-grid { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: .55rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stat { | ||
. | min-width: 0; | ||
padding: .64rem .7rem; | |||
border: 1px solid #d9e1ec; | border: 1px solid #d9e1ec; | ||
border-radius: 12px; | border-radius: 12px; | ||
background: #fff; | background: #fff; | ||
color: #536070; | color: #536070; | ||
line-height: 1. | line-height: 1.28; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-stat strong, | ||
.mucwiki-home-stat span { | |||
display: block; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stat strong { | ||
color: #075fc7; | |||
font-size: 1.12rem; | |||
font-weight: 800; | 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: .82rem; | |||
padding: .68rem .85rem; | |||
} | } | ||
| 第110行: | 第148行: | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: 1. | margin-top: 1.05rem; | ||
} | } | ||
| 第117行: | 第155行: | ||
align-items: center; | align-items: center; | ||
gap: .55rem; | gap: .55rem; | ||
margin: 0 0 . | margin: 0 0 .68rem; | ||
color: #0f172a; | color: #0f172a; | ||
font-size: 1. | font-size: 1.2rem; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0; | |||
} | } | ||
| 第127行: | 第166行: | ||
display: inline-block; | display: inline-block; | ||
width: .42rem; | width: .42rem; | ||
height: 1. | height: 1.08rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: #315f9e; | background: #315f9e; | ||
| 第134行: | 第173行: | ||
.mucwiki-home-grid { | .mucwiki-home-grid { | ||
display: grid; | display: grid; | ||
gap: . | gap: .76rem; | ||
} | } | ||
| 第147行: | 第186行: | ||
border-radius: 12px; | border-radius: 12px; | ||
background: #fff; | background: #fff; | ||
box-shadow: 0 10px 30px rgba(37, 55, 82, . | box-shadow: 0 10px 30px rgba(37, 55, 82, .055); | ||
} | } | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
position: relative; | position: relative; | ||
min-height: | min-height: 5.65rem; | ||
padding: . | padding: .9rem 1rem; | ||
} | } | ||
.mucwiki-home-card:hover, | .mucwiki-home-card:hover, | ||
.mucwiki-home-card:focus { | .mucwiki-home-card:focus { | ||
border-color: # | border-color: #9cb8dc; | ||
box-shadow: 0 14px 34px rgba(37, 55, 82, .1); | box-shadow: 0 14px 34px rgba(37, 55, 82, .1); | ||
} | } | ||
| 第175行: | 第214行: | ||
content: "›"; | content: "›"; | ||
position: absolute; | position: absolute; | ||
top: . | top: .84rem; | ||
right: 1rem; | right: 1rem; | ||
color: #8aa2c2; | color: #8aa2c2; | ||
| 第183行: | 第222行: | ||
.mucwiki-home-card span { | .mucwiki-home-card span { | ||
margin-top: . | margin-top: .34rem; | ||
color: #536070; | color: #536070; | ||
line-height: 1. | line-height: 1.55; | ||
} | } | ||
| 第269行: | 第308行: | ||
@media (max-width: 980px) { | @media (max-width: 980px) { | ||
.mucwiki-home- | .mucwiki-home-masthead, | ||
.mucwiki-home-note, | .mucwiki-home-note, | ||
.mucwiki-home-columns, | .mucwiki-home-columns, | ||
| 第282行: | 第321行: | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
.mucwiki-home- | .mucwiki-home-masthead { | ||
padding: .9rem; | padding: .9rem; | ||
border-radius: | border-radius: 14px; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-copy { | ||
min-height: auto; | min-height: auto; | ||
gap: .5rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-copy p:nth-of-type(4) { | ||
display: none; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-title { | ||
font-size: 1.62rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-lede { | ||
font-size: .98rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-side { | ||
gap: .55rem; | gap: .55rem; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-media { | ||
min-height: 0; | min-height: 0; | ||
max-height: | max-height: 7.6rem; | ||
} | |||
.mucwiki-home-media .mw-file-element, | |||
.mucwiki-home-media img { | |||
max-width: 230px; | |||
} | |||
.mucwiki-home-stats-grid { | |||
gap: .45rem; | |||
} | |||
.mucwiki-home-stat { | |||
padding: .55rem .5rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stat strong { | ||
font-size: .98rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stat span { | ||
font-size: .78rem; | |||
} | } | ||
.mucwiki-home-topline, | |||
.mucwiki-home-note { | .mucwiki-home-note { | ||
padding: . | padding: .78rem; | ||
} | } | ||
.mucwiki-home-grid--primary { | .mucwiki-home-grid--primary { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | |||
.mucwiki-home-card { | |||
min-height: 5.2rem; | |||
} | } | ||