模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) Refine MUC Wiki home component styling |
Maintenance script(留言 | 贡献) Move home component styles to TemplateStyles |
||
| 第6行: | 第6行: | ||
.mucwiki-home a { | .mucwiki-home a { | ||
color: #075fc7; | color: #075fc7; | ||
text-decoration: | text-decoration: none; | ||
} | } | ||
| 第21行: | 第21行: | ||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1. | grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .52fr); | ||
gap: | gap: 1rem; | ||
align-items: stretch; | align-items: stretch; | ||
padding: | padding: 1rem; | ||
border: 1px solid # | border: 1px solid #d8e2ee; | ||
border-radius: | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
box-shadow: 0 | box-shadow: 0 18px 44px rgba(31, 47, 70, .08); | ||
} | } | ||
| 第34行: | 第34行: | ||
display: grid; | display: grid; | ||
align-content: center; | align-content: center; | ||
gap: . | gap: .68rem; | ||
min-height: | min-height: 11.2rem; | ||
padding: . | padding: .6rem .55rem; | ||
line-height: 1. | line-height: 1.72; | ||
} | } | ||
.mucwiki-home-kicker { | .mucwiki-home-kicker { | ||
display: inline- | display: inline-flex; | ||
width: max-content; | width: max-content; | ||
max-width: 100%; | max-width: 100%; | ||
padding: . | min-height: 1.72rem; | ||
align-items: center; | |||
padding: .24rem .66rem; | |||
border: 1px solid #bfd0e6; | border: 1px solid #bfd0e6; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #edf4ff; | ||
color: # | color: #245b9f; | ||
font-size: .84rem; | font-size: .84rem; | ||
font-weight: 800; | font-weight: 800; | ||
line-height: 1.2; | |||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
color: # | color: #101828; | ||
font-size: 2. | font-size: 2.28rem; | ||
font-weight: | font-weight: 900; | ||
line-height: 1. | line-height: 1.08; | ||
} | } | ||
| 第63行: | 第66行: | ||
max-width: 42rem; | max-width: 42rem; | ||
color: #253044; | color: #253044; | ||
font-size: 1. | font-size: 1.08rem; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| 第70行: | 第73行: | ||
display: grid; | display: grid; | ||
grid-template-rows: minmax(0, 1fr) auto; | grid-template-rows: minmax(0, 1fr) auto; | ||
gap: . | gap: .72rem; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
| 第77行: | 第80行: | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
min-height: | min-height: 9.4rem; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid # | border: 1px solid #e8eef6; | ||
border-radius: | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
box-shadow: 0 1px 2px rgba(31, 47, 70, .035); | |||
} | } | ||
| 第88行: | 第92行: | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: 312px; | ||
height: auto; | height: auto; | ||
border-radius: 8px; | border-radius: 8px; | ||
| 第96行: | 第100行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .6rem; | ||
} | } | ||
.mucwiki-home-stat { | .mucwiki-home-stat { | ||
min-width: 0; | min-width: 0; | ||
padding: . | padding: .62rem .7rem; | ||
border: 1px solid # | border: 1px solid #d8e2ee; | ||
border-radius: | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
color: # | color: #667085; | ||
line-height: 1.28; | line-height: 1.28; | ||
} | } | ||
| 第116行: | 第120行: | ||
.mucwiki-home-stat strong { | .mucwiki-home-stat strong { | ||
color: #075fc7; | color: #075fc7; | ||
font-size: 1. | font-size: 1.12rem; | ||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
| 第123行: | 第127行: | ||
margin-top: .18rem; | margin-top: .18rem; | ||
font-size: .85rem; | font-size: .85rem; | ||
} | } | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: | margin-top: 1.15rem; | ||
} | } | ||
| 第155行: | 第137行: | ||
align-items: center; | align-items: center; | ||
gap: .52rem; | gap: .52rem; | ||
margin: 0 0 . | margin: 0 0 .72rem; | ||
color: # | padding-bottom: .58rem; | ||
font-size: 1. | border-bottom: 1px solid #d8e2ee; | ||
color: #101828; | |||
font-size: 1.22rem; | |||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0; | letter-spacing: 0; | ||
| 第165行: | 第149行: | ||
content: ""; | content: ""; | ||
display: inline-block; | display: inline-block; | ||
width: . | width: .34rem; | ||
height: | height: 1.08rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #245b9f; | ||
} | } | ||
.mucwiki-home-grid { | .mucwiki-home-grid { | ||
display: grid; | display: grid; | ||
gap: . | gap: .72rem; | ||
} | } | ||
| 第182行: | 第166行: | ||
.mucwiki-home-card, | .mucwiki-home-card, | ||
.mucwiki-home-panel, | .mucwiki-home-panel, | ||
.mucwiki-home-help__grid > div { | .mucwiki-home-help__grid > div, | ||
border: 1px solid # | .mucwiki-home-topline, | ||
border-radius: | .mucwiki-home-note { | ||
border: 1px solid #d8e2ee; | |||
border-radius: 8px; | |||
background: #fff; | background: #fff; | ||
box-shadow: 0 1px 2px rgba( | box-shadow: 0 1px 2px rgba(31, 47, 70, .035); | ||
} | } | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
position: relative; | position: relative; | ||
min-height: 5. | min-height: 5.6rem; | ||
padding: . | padding: .92rem 1rem; | ||
transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; | |||
} | } | ||
.mucwiki-home-card:hover | .mucwiki-home-card:hover { | ||
border-color: #a8bedc; | |||
border-color: # | box-shadow: 0 12px 30px rgba(31, 47, 70, .08); | ||
box-shadow: 0 | transform: translateY(-1px); | ||
} | } | ||
| 第209行: | 第196行: | ||
padding-right: 1.2rem; | padding-right: 1.2rem; | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: 800; | |||
} | } | ||
| 第214行: | 第202行: | ||
content: "›"; | content: "›"; | ||
position: absolute; | position: absolute; | ||
top: . | top: .9rem; | ||
right: | right: 1rem; | ||
color: #8aa2c2; | color: #8aa2c2; | ||
font-size: 1. | font-size: 1.25rem; | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
.mucwiki-home-card span { | .mucwiki-home-card span { | ||
margin-top: . | margin-top: .34rem; | ||
color: #667085; | |||
line-height: 1.58; | |||
} | |||
.mucwiki-home-topline, | |||
.mucwiki-home-note { | |||
margin-top: .88rem; | |||
color: #536070; | color: #536070; | ||
line-height: 1. | line-height: 1.7; | ||
} | |||
.mucwiki-home-topline { | |||
padding: .72rem .9rem; | |||
} | |||
.mucwiki-home-note { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr); | |||
gap: .84rem; | |||
padding: .9rem 1rem; | |||
} | } | ||
| 第230行: | 第236行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: . | gap: .88rem; | ||
} | } | ||
.mucwiki-home-panel { | .mucwiki-home-panel { | ||
padding: . | padding: 1rem 1.05rem; | ||
} | } | ||
.mucwiki-home-panel ul { | .mucwiki-home-panel ul { | ||
display: grid; | display: grid; | ||
gap: . | gap: .38rem; | ||
margin: . | margin: .15rem 0 0; | ||
padding-left: 1.1rem; | padding-left: 1.1rem; | ||
line-height: 1.75; | line-height: 1.75; | ||
| 第246行: | 第252行: | ||
.mucwiki-home-panel--building { | .mucwiki-home-panel--building { | ||
border-color: #ecd79d; | |||
background: linear-gradient(135deg, #fff 0%, #fffbeb 100%); | |||
} | } | ||
| 第253行: | 第259行: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: . | gap: .55rem; | ||
} | } | ||
| 第259行: | 第265行: | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
min-height: 2. | min-height: 2.25rem; | ||
padding: . | padding: .36rem .68rem; | ||
border: 1px solid # | border: 1px solid #d8e2ee; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
color: #344054; | color: #344054; | ||
line-height: 1.35; | line-height: 1.35; | ||
box-shadow: 0 1px 2px rgba( | box-shadow: 0 1px 2px rgba(31, 47, 70, .025); | ||
} | } | ||
| 第272行: | 第278行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .78rem; | ||
} | } | ||
.mucwiki-home-help__grid > div { | .mucwiki-home-help__grid > div { | ||
padding: . | padding: .95rem; | ||
} | } | ||
.mucwiki-home-help h3 { | .mucwiki-home-help h3 { | ||
margin: 0 0 . | margin: 0 0 .45rem; | ||
color: #172033; | color: #172033; | ||
font-size: 1rem; | font-size: 1rem; | ||
| 第287行: | 第293行: | ||
.mucwiki-home-help p { | .mucwiki-home-help p { | ||
color: # | color: #667085; | ||
line-height: 1.66; | line-height: 1.66; | ||
} | } | ||
. | .mucwiki-home-card a, | ||
. | .mucwiki-home-link-cloud a, | ||
. | .mucwiki-home-stat a { | ||
text-decoration: none; | |||
} | } | ||
| 第322行: | 第318行: | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
padding: . | gap: .72rem; | ||
border-radius: | padding: .88rem; | ||
border-radius: 8px; | |||
} | } | ||
.mucwiki-home-copy { | .mucwiki-home-copy { | ||
min-height: auto; | min-height: auto; | ||
gap: . | gap: .5rem; | ||
padding: .15rem; | |||
} | } | ||
| 第336行: | 第334行: | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
font-size: 1. | font-size: 1.62rem; | ||
} | } | ||
.mucwiki-home-lede { | .mucwiki-home-lede { | ||
font-size: . | font-size: .98rem; | ||
} | } | ||
| 第357行: | 第351行: | ||
.mucwiki-home-stat { | .mucwiki-home-stat { | ||
padding: .52rem .48rem; | padding: .52rem .48rem; | ||
border-radius: 8px; | |||
} | } | ||
.mucwiki-home-stat strong { | .mucwiki-home-stat strong { | ||
font-size: . | font-size: .98rem; | ||
} | } | ||
| 第367行: | 第362行: | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-section { | ||
margin-top: 1rem; | |||
} | } | ||
| 第378行: | 第372行: | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
min-height: 5rem; | min-height: 5rem; | ||
padding: .8rem .86rem; | |||
} | |||
.mucwiki-home-link-cloud { | |||
display: grid; | |||
grid-template-columns: 1fr; | |||
gap: .42rem; | |||
} | } | ||
.mucwiki-home-link-cloud span { | .mucwiki-home-link-cloud span { | ||
width: 100%; | width: 100%; | ||
border-radius: 8px; | |||
} | } | ||
} | } | ||