模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) 修正移动端首页校园图尺寸 |
style: align homepage resource cards naturally |
||
| (未显示2个用户的13个中间版本) | |||
| 第1行: | 第1行: | ||
.mucwiki-home { | .mucwiki-home { | ||
display: grid; | display: grid; | ||
gap: | grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); | ||
gap: 1rem; | |||
align-items: start; | |||
color: #202122; | color: #202122; | ||
font-size: 1rem; | font-size: 1rem; | ||
line-height: 1.62; | |||
} | } | ||
| 第9行: | 第12行: | ||
.mucwiki-home * { | .mucwiki-home * { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | |||
.mucwiki-home p { | |||
margin: 0; | |||
} | } | ||
.mucwiki-home a { | .mucwiki-home a { | ||
color: # | color: #8f1d2c; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| 第18行: | 第25行: | ||
.mucwiki-home a:hover, | .mucwiki-home a:hover, | ||
.mucwiki-home a:focus { | .mucwiki-home a:focus { | ||
color: # | color: #67151f; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
.mucwiki-home | .mucwiki-home-intro { | ||
display: grid; | display: grid; | ||
grid- | grid-column: 1; | ||
gap: . | gap: .72rem; | ||
padding: 1.15rem 1.25rem; | |||
border: 1px solid #eaded7; | |||
border: | border-left: 4px solid #8f1d2c; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #fffdfa; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-title { | ||
color: #181d22; | |||
font-size: 1.65rem; | |||
font-weight: 800; | |||
line-height: 1.16; | |||
color: # | |||
font-size: . | |||
font-weight: | |||
line-height: 1. | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-title big { | ||
font-size: 1em; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-lede { | ||
color: # | color: #29323b; | ||
font-size: 1. | font-size: 1.04rem; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-intro p:not(.mucwiki-home-title):not(.mucwiki-home-lede) { | ||
color: #555f69; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-aside { | ||
display: grid; | display: grid; | ||
grid- | grid-column: 2; | ||
gap: . | grid-row: 1 / span 2; | ||
gap: .65rem; | |||
min-width: 0; | min-width: 0; | ||
} | |||
.mucwiki-home-status, | |||
.mucwiki-home-section { | |||
grid-column: 1 / -1; | |||
} | } | ||
.mucwiki-home-media { | .mucwiki-home-media { | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #e4dfd6; | |||
border: 1px solid # | |||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #fff; | ||
} | } | ||
.mucwiki-home-media | .mucwiki-home-media figure, | ||
.mucwiki-home-media | .mucwiki-home-resource-media figure { | ||
float: none; | |||
clear: none; | |||
display: block; | display: block; | ||
width: | width: 100%; | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0; | |||
padding: 0; | |||
border | border: 0; | ||
background: transparent; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-media a.mw-file-description, | ||
display: | .mucwiki-home-resource-media a.mw-file-description { | ||
display: block; | |||
width: 100%; | |||
max-width: 100%; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-media img { | ||
display: block; | |||
width: 100%; | |||
max-width: none; | |||
height: auto; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-media figcaption { | ||
display: block; | |||
margin: 0; | |||
padding: .48rem .62rem .56rem; | |||
border-top: 1px solid #e4dfd6; | |||
background: #fffdfa; | |||
color: #59636e; | |||
font-size: .86rem; | |||
line-height: 1.42; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stats { | ||
. | padding: .62rem .72rem; | ||
border: 1px solid #e8e3dc; | |||
border-radius: 8px; | |||
background: #fff; | |||
color: #555f69; | |||
font-size: .94rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stats a { | ||
color: #67151f; | |||
color: # | font-weight: 800; | ||
font-weight: | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-status { | ||
display: grid; | |||
gap: .32rem; | |||
padding: .66rem .82rem; | |||
border: 1px solid #e5e0d8; | |||
border-radius: 8px; | |||
background: #fbfaf7; | |||
color: #555f69; | |||
line-height: 1.52; | |||
} | } | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: | display: grid; | ||
gap: .68rem; | |||
margin-top: .15rem; | |||
} | } | ||
| 第174行: | 第154行: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: . | gap: .5rem; | ||
margin: 0 | margin: 0; | ||
padding-bottom: . | padding-bottom: .42rem; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #e8e3dc; | ||
color: # | color: #181d22; | ||
font-size: 1. | font-size: 1.12rem; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0; | letter-spacing: 0; | ||
| 第186行: | 第166行: | ||
.mucwiki-home-section h2::before { | .mucwiki-home-section h2::before { | ||
content: ""; | content: ""; | ||
width: .28rem; | width: .28rem; | ||
height: | height: 1rem; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: # | background: #8f1d2c; | ||
} | } | ||
.mucwiki-home-grid { | .mucwiki-home-link-grid { | ||
display: | display: flex; | ||
gap: . | flex-wrap: wrap; | ||
gap: .45rem; | |||
margin: 0; | |||
padding: 0; | |||
list-style: none; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid li { | ||
display: inline-flex; | |||
min-height: 2rem; | |||
align-items: center; | |||
max-width: 100%; | |||
margin: 0; | |||
padding: .32rem .62rem; | |||
border: 1px solid #e1e5e0; | |||
border-radius: 999px; | |||
background: #fff; | |||
color: #4d5862; | |||
font-size: .92rem; | |||
line-height: 1.25; | |||
padding: . | |||
border | |||
background: # | |||
color: # | |||
font-size: | |||
line-height: 1 | |||
. | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid li:hover { | ||
border-color: #d7b7ae; | |||
background: #fff7f5; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid--building li { | ||
color: | border-color: #e4dfd6; | ||
background: #fffdfa; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-help-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: . | gap: .8rem; | ||
} | } | ||
.mucwiki-home-panel { | .mucwiki-home-panel { | ||
display: grid; | |||
gap: .55rem; | |||
padding: .9rem 1rem; | |||
border: 1px solid #e1e5e0; | |||
border-radius: 8px; | |||
background: #fff; | background: #fff; | ||
color: #555f69; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-question { | ||
color: #22272d; | |||
font-weight: 800; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-question big { | ||
font-size: 1em; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resources-grid { | ||
display: grid; | |||
grid-template-columns: minmax(0, 1fr); | |||
gap: .72rem; | |||
align-items: start; | |||
. | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: . | gap: .46rem; | ||
padding: .72rem .78rem; | |||
border: 1px solid #e1e5e0; | |||
border-radius: 8px; | |||
background: #fffdfa; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links p { | ||
display: inline-flex; | display: inline-flex; | ||
min-height: 2rem; | |||
align-items: center; | align-items: center; | ||
margin: 0; | |||
padding: . | padding: .28rem .58rem; | ||
border: 1px solid # | border: 1px solid #eaded7; | ||
border-radius: 999px; | border-radius: 999px; | ||
background | background: #fff; | ||
line-height: 1.25; | |||
line-height: 1. | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links big { | ||
font-size: 1em; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .68rem; | ||
align-items: start; | |||
min-width: 0; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media figure { | ||
display: block; | |||
overflow: hidden; | |||
background: # | border: 1px solid #e4dfd6; | ||
border-radius: 8px; | |||
background: #fff; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media a.mw-file-description { | ||
display: block; | display: block; | ||
padding: .62rem; | |||
background: #fffdfa; | |||
background: # | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media img { | ||
display: block; | |||
width: 100%; | |||
max-width: 100%; | |||
height: auto; | |||
border-radius: 4px; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media figcaption { | ||
display: block; | |||
margin: 0; | |||
padding: .44rem .58rem .5rem; | |||
border-top: 1px solid #e8e3dc; | |||
color: #59636e; | |||
. | font-size: .84rem; | ||
line-height: 1.36; | |||
} | } | ||
.mucwiki-home-resource-media figcaption:empty { | |||
display: none; | |||
} | } | ||
@media (max-width: | @media screen and (max-width: 920px) { | ||
.mucwiki-home { | .mucwiki-home { | ||
grid-template-columns: minmax(0, 1fr); | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-aside { | ||
grid-column: 1; | |||
grid-row: auto; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-help-grid, | ||
.mucwiki-home-resources-grid { | |||
grid-template-columns: minmax(0, 1fr); | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media { | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | } | ||
} | |||
.mucwiki-home | @media screen and (max-width: 560px) { | ||
.mucwiki-home { | |||
gap: .68rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-intro, | ||
.mucwiki-home-status, | |||
.mucwiki-home-panel, | |||
.mucwiki-home-resource-links { | |||
padding: .68rem .76rem; | |||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
font-size: 1. | font-size: 1.28rem; | ||
line-height: 1. | } | ||
.mucwiki-home-intro { | |||
gap: .44rem; | |||
line-height: 1.48; | |||
} | } | ||
.mucwiki-home-lede { | .mucwiki-home-lede { | ||
font-size: | font-size: 1rem; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-status { | ||
gap: .22rem; | |||
line-height: 1.45; | |||
gap: . | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid { | ||
gap: .38rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid li { | ||
width: 100%; | width: 100%; | ||
border-radius: 8px; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links { | ||
display: grid; | display: grid; | ||
gap: .38rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links p { | ||
width: 100%; | |||
border-radius: 8px; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media { | ||
grid-template-columns: minmax(0, 1fr); | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media a.mw-file-description { | ||
padding: .55rem; | |||
padding: . | |||
} | } | ||
} | } | ||