模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) Reduce homepage panel framing |
Maintenance(留言 | 贡献) Update MUCWiki homepage component styles |
||
| 第1行: | 第1行: | ||
.mucwiki-home { | .mucwiki-home { | ||
display: grid; | display: grid; | ||
gap: 1rem; | gap: 1rem; | ||
color: #202122; | |||
font-size: 1rem; | |||
} | |||
.mucwiki-home, | |||
.mucwiki-home * { | |||
box-sizing: border-box; | |||
} | } | ||
.mucwiki-home a { | .mucwiki-home a { | ||
color: # | color: #215c8f; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| 第13行: | 第18行: | ||
.mucwiki-home a:hover, | .mucwiki-home a:hover, | ||
.mucwiki-home a:focus { | .mucwiki-home a:focus { | ||
color: # | color: #17446e; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| 第23行: | 第28行: | ||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, | grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .58fr); | ||
gap: | gap: 1rem; | ||
align-items: stretch; | align-items: stretch; | ||
padding: | padding: 1rem; | ||
border: 1px solid # | border: 1px solid #d7ddd7; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: #fff; | background: | ||
box-shadow: 0 | linear-gradient(135deg, rgba(255, 241, 239, .72), rgba(255, 255, 255, .84) 38%), | ||
#fff; | |||
box-shadow: 0 18px 48px rgba(42, 48, 41, .07); | |||
} | } | ||
| 第36行: | 第43行: | ||
display: grid; | display: grid; | ||
align-content: center; | align-content: center; | ||
gap: . | gap: .72rem; | ||
min-height: | min-height: 12.2rem; | ||
padding: 1. | padding: 1.25rem 1.35rem; | ||
line-height: 1. | border-left: 4px solid #b42318; | ||
border-radius: 8px; | |||
background: rgba(255, 255, 255, .62); | |||
line-height: 1.74; | |||
} | } | ||
| 第49行: | 第59行: | ||
align-items: center; | align-items: center; | ||
padding: .24rem .66rem; | padding: .24rem .66rem; | ||
border: 1px solid # | border: 1px solid #f0c9c4; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #fff1ef; | ||
color: # | color: #7f1d1d; | ||
font-size: . | font-size: .82rem; | ||
font-weight: 800; | font-weight: 800; | ||
line-height: 1.2; | line-height: 1.2; | ||
| 第60行: | 第70行: | ||
.mucwiki-home-kicker::before { | .mucwiki-home-kicker::before { | ||
content: ""; | content: ""; | ||
width: . | width: .46rem; | ||
height: . | height: .46rem; | ||
margin-right: .38rem; | margin-right: .38rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #b42318; | ||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
color: # | color: #141b22; | ||
font-size: 2. | font-size: 2.38rem; | ||
font-weight: 900; | font-weight: 900; | ||
line-height: 1. | line-height: 1.08; | ||
} | } | ||
.mucwiki-home-lede { | .mucwiki-home-lede { | ||
max-width: 42rem; | max-width: 42rem; | ||
color: # | color: #263044; | ||
font-size: 1.05rem; | font-size: 1.05rem; | ||
font-weight: 700; | font-weight: 700; | ||
| 第84行: | 第94行: | ||
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; | ||
} | } | ||
| 第90行: | 第100行: | ||
.mucwiki-home-media { | .mucwiki-home-media { | ||
display: grid; | display: grid; | ||
align-items: center; | |||
min-height: 10. | justify-items: center; | ||
min-height: 10.25rem; | |||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid # | border: 1px solid #e1e6e0; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #f5f6f4; | ||
} | } | ||
| 第111行: | 第121行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .58rem; | ||
} | } | ||
.mucwiki-home-stat { | .mucwiki-home-stat { | ||
min-width: 0; | min-width: 0; | ||
padding: .68rem . | padding: .68rem .7rem; | ||
border: 1px solid # | border: 1px solid #dfe5de; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: | background: rgba(250, 251, 249, .96); | ||
color: # | color: #54595d; | ||
line-height: 1.28; | line-height: 1.28; | ||
text-align: center; | |||
} | } | ||
| 第129行: | 第140行: | ||
} | } | ||
.mucwiki-home-stat strong { | .mucwiki-home-stat strong, | ||
color: # | .mucwiki-home-stat strong a { | ||
font-size: 1. | color: #17446e; | ||
font-size: 1.14rem; | |||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
| 第137行: | 第149行: | ||
.mucwiki-home-stat span { | .mucwiki-home-stat span { | ||
margin-top: .18rem; | margin-top: .18rem; | ||
font-size: . | font-size: .82rem; | ||
font-weight: 700; | |||
} | } | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: . | margin-top: .05rem; | ||
} | } | ||
| 第149行: | 第162行: | ||
gap: .52rem; | gap: .52rem; | ||
margin: 0 0 .72rem; | margin: 0 0 .72rem; | ||
padding-bottom: . | padding-bottom: .5rem; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #e5e9e4; | ||
color: # | color: #141b22; | ||
font-size: 1. | font-size: 1.14rem; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0; | letter-spacing: 0; | ||
| 第163行: | 第176行: | ||
height: 1.08rem; | height: 1.08rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #b42318; | ||
} | } | ||
| 第187行: | 第200行: | ||
.mucwiki-home-topline, | .mucwiki-home-topline, | ||
.mucwiki-home-note { | .mucwiki-home-note { | ||
border: 1px solid # | border: 1px solid #dfe5de; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: rgba(255, 255, 255, .96); | background: rgba(255, 255, 255, .96); | ||
box-shadow: 0 1px 2px rgba( | box-shadow: 0 1px 2px rgba(42, 48, 41, .026); | ||
} | } | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
position: relative; | position: relative; | ||
min-height: 5. | min-height: 5.25rem; | ||
padding: . | padding: .86rem 2rem .86rem .96rem; | ||
overflow: hidden; | overflow: hidden; | ||
transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; | transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; | ||
| 第205行: | 第218行: | ||
position: absolute; | position: absolute; | ||
inset: 0 auto 0 0; | inset: 0 auto 0 0; | ||
width: . | width: .18rem; | ||
background: # | background: #24735d; | ||
opacity: . | opacity: .74; | ||
} | |||
.mucwiki-home-card::after { | |||
content: "›"; | |||
position: absolute; | |||
top: .86rem; | |||
right: .92rem; | |||
color: #8b9b8d; | |||
font-size: 1.25rem; | |||
line-height: 1; | |||
} | } | ||
.mucwiki-home-card:hover { | .mucwiki-home-card:hover { | ||
border-color: # | border-color: #b8c8b8; | ||
background: # | background: #fbfdfb; | ||
box-shadow: 0 | box-shadow: 0 10px 24px rgba(42, 48, 41, .058); | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
} | } | ||
| 第223行: | 第246行: | ||
.mucwiki-home-card strong { | .mucwiki-home-card strong { | ||
padding-left: .28rem; | padding-left: .28rem; | ||
color: # | color: #141b22; | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
| 第243行: | 第255行: | ||
margin-top: .34rem; | margin-top: .34rem; | ||
padding-left: .28rem; | padding-left: .28rem; | ||
color: # | color: #5b6670; | ||
line-height: 1. | line-height: 1.56; | ||
} | } | ||
| 第250行: | 第262行: | ||
.mucwiki-home-note { | .mucwiki-home-note { | ||
margin-top: 0; | margin-top: 0; | ||
color: # | color: #54595d; | ||
line-height: 1. | line-height: 1.68; | ||
} | } | ||
.mucwiki-home-topline { | .mucwiki-home-topline { | ||
padding: . | padding: .76rem .95rem; | ||
background: # | background: #fbfcfb; | ||
} | } | ||
| 第262行: | 第274行: | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr); | grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr); | ||
gap: . | gap: .85rem; | ||
padding: .92rem 1rem; | padding: .92rem 1rem; | ||
background: # | background: #fbfcfb; | ||
} | } | ||
| 第275行: | 第287行: | ||
.mucwiki-home-panel { | .mucwiki-home-panel { | ||
position: relative; | position: relative; | ||
min-height: 12.6rem; | |||
overflow: hidden; | overflow: hidden; | ||
padding: 1.05rem 1.15rem; | padding: 1.05rem 1.15rem; | ||
} | } | ||
| 第285行: | 第297行: | ||
inset: 0 0 auto; | inset: 0 0 auto; | ||
height: .2rem; | height: .2rem; | ||
background: # | background: #24735d; | ||
} | } | ||
| 第297行: | 第309行: | ||
.mucwiki-home-panel--building { | .mucwiki-home-panel--building { | ||
border-color: # | border-color: #ead8a8; | ||
background: # | background: #fff8ea; | ||
} | } | ||
.mucwiki-home-panel--building::before { | .mucwiki-home-panel--building::before { | ||
background: # | background: #8a570b; | ||
} | } | ||
| 第321行: | 第333行: | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
min-height: 2. | min-height: 2.08rem; | ||
padding: .32rem .62rem; | padding: .32rem .62rem; | ||
border: 1px solid # | border: 1px solid #dfe5de; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: rgba(255, 255, 255, .96); | background: rgba(255, 255, 255, .96); | ||
color: #344054; | color: #344054; | ||
font-size: . | font-size: .94rem; | ||
line-height: 1.32; | line-height: 1.32; | ||
transition: border-color .16s ease, background .16s ease, transform .16s ease; | transition: border-color .16s ease, background .16s ease, transform .16s ease; | ||
} | } | ||
.mucwiki-home-link-cloud span:hover { | .mucwiki-home-link-cloud span:hover { | ||
border-color: # | border-color: #b8c8b8; | ||
background: # | background: #edf7f3; | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
} | } | ||
| 第348行: | 第359行: | ||
position: relative; | position: relative; | ||
padding: .95rem 1rem; | padding: .95rem 1rem; | ||
background: # | background: #fbfcfb; | ||
} | } | ||
| 第358行: | 第369行: | ||
margin-bottom: .72rem; | margin-bottom: .72rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #b42318; | ||
} | } | ||
.mucwiki-home-help h3 { | .mucwiki-home-help h3 { | ||
margin: 0 0 .45rem; | margin: 0 0 .45rem; | ||
color: # | color: #141b22; | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: 800; | font-weight: 800; | ||
| 第369行: | 第380行: | ||
.mucwiki-home-help p { | .mucwiki-home-help p { | ||
color: # | color: #54595d; | ||
line-height: 1.66; | line-height: 1.66; | ||
} | } | ||
| 第400行: | 第411行: | ||
gap: .66rem; | gap: .66rem; | ||
padding: .76rem; | padding: .76rem; | ||
} | } | ||
| 第406行: | 第416行: | ||
min-height: auto; | min-height: auto; | ||
gap: .5rem; | gap: .5rem; | ||
padding: . | padding: .62rem .3rem .62rem .72rem; | ||
border-left-width: 3px; | border-left-width: 3px; | ||
} | } | ||
| 第433行: | 第443行: | ||
.mucwiki-home-stat { | .mucwiki-home-stat { | ||
padding: .46rem .42rem; | padding: .46rem .42rem; | ||
} | } | ||
| 第464行: | 第473行: | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
min-height: 4.45rem; | min-height: 4.45rem; | ||
padding: .72rem .82rem; | padding: .72rem 1.9rem .72rem .82rem; | ||
} | } | ||
| 第483行: | 第492行: | ||
} | } | ||
.mucwiki-home-link-cloud | .mucwiki-home-link-cloud, | ||
.mucwiki-home-link-cloud p { | .mucwiki-home-link-cloud p { | ||
gap: .38rem; | gap: .38rem; | ||
} | } | ||