模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
style: adapt homepage for Citizen skin |
style: rebuild prod-content homepage for Citizen |
||
| 第4行: | 第4行: | ||
color: #202122; | color: #202122; | ||
font-size: 1rem; | font-size: 1rem; | ||
line-height: 1.62; | |||
} | } | ||
| 第9行: | 第10行: | ||
.mucwiki-home * { | .mucwiki-home * { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | |||
.mucwiki-home p { | |||
margin: 0; | |||
} | } | ||
| 第22行: | 第27行: | ||
} | } | ||
.mucwiki-home | .mucwiki-home-hero { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1fr) minmax(18rem, | grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); | ||
gap: 1rem; | gap: 1rem; | ||
align-items: | align-items: start; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-intro { | ||
display: grid; | display: grid; | ||
gap: .72rem; | |||
gap: . | padding: 1.15rem 1.25rem; | ||
padding: 1. | |||
border: 1px solid #eaded7; | border: 1px solid #eaded7; | ||
border-left: 4px solid #8f1d2c; | 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; | |||
color: # | |||
font-size: . | |||
font-weight: 800; | font-weight: 800; | ||
line-height: 1. | line-height: 1.16; | ||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title big { | ||
font-size: 1em; | |||
font-size: | |||
} | } | ||
.mucwiki-home-lede { | .mucwiki-home-lede { | ||
color: #29323b; | color: #29323b; | ||
font-size: 1.04rem; | 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; | color: #555f69; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-aside { | ||
display: grid; | display: grid; | ||
gap: .65rem; | |||
gap: . | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
.mucwiki-home-media { | .mucwiki-home-media { | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #e4dfd6; | border: 1px solid #e4dfd6; | ||
| 第107行: | 第78行: | ||
} | } | ||
.mucwiki-home-media . | .mucwiki-home-media .thumb, | ||
.mucwiki-home-media img { | .mucwiki-home-resource-media .thumb { | ||
float: none; | |||
clear: none; | |||
width: auto; | |||
max-width: 100%; | |||
margin: 0; | |||
} | |||
.mucwiki-home-media .thumbinner, | |||
.mucwiki-home-resource-media .thumbinner { | |||
width: auto !important; | |||
max-width: 100%; | |||
border: 0; | |||
border-radius: 8px; | |||
background: transparent; | |||
} | |||
.mucwiki-home-media img, | |||
.mucwiki-home-resource-media img { | |||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
| 第116行: | 第105行: | ||
} | } | ||
.mucwiki-home-media | .mucwiki-home-media .thumbcaption, | ||
.mucwiki-home-resource-media .thumbcaption { | |||
padding: .42rem .55rem .5rem; | |||
color: #656f7a; | |||
font-size: .86rem; | |||
padding: . | line-height: 1.42; | ||
color: # | |||
font-size: . | |||
line-height: 1. | |||
} | } | ||
.mucwiki-home-stats | .mucwiki-home-stats { | ||
padding: .62rem .72rem; | |||
border: 1px solid #e8e3dc; | border: 1px solid #e8e3dc; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
color: #555f69; | |||
font-size: .94rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-stats a { | ||
color: #67151f; | color: #67151f; | ||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-status { | ||
display: grid; | |||
gap: .45rem; | |||
padding: .82rem .95rem; | |||
border: 1px solid #e5e0d8; | |||
border-radius: 8px; | |||
background: #fbfaf7; | |||
color: #555f69; | |||
} | } | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: . | display: grid; | ||
gap: .68rem; | |||
margin-top: .15rem; | |||
} | } | ||
| 第179行: | 第147行: | ||
align-items: center; | align-items: center; | ||
gap: .5rem; | gap: .5rem; | ||
margin: 0 | margin: 0; | ||
padding-bottom: .42rem; | padding-bottom: .42rem; | ||
border-bottom: 1px solid #e8e3dc; | border-bottom: 1px solid #e8e3dc; | ||
| 第196行: | 第164行: | ||
} | } | ||
.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-grid | .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: 1px solid #e1e5e0; | ||
border-radius: | border-radius: 999px; | ||
background: #fff; | background: #fff; | ||
color: #4d5862; | |||
font-size: .92rem; | |||
line-height: 1.25; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid li:hover { | ||
border-color: #d7b7ae; | |||
background: #fff7f5; | |||
border-color: # | |||
background: # | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid--building li { | ||
border-color: #e4dfd6; | |||
border- | |||
background: #fffdfa; | 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; | |||
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; | display: grid; | ||
grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr); | |||
gap: .9rem; | |||
align-items: start; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links { | ||
display: grid; | |||
display: | |||
gap: .45rem; | gap: .45rem; | ||
padding: .9rem 1rem; | |||
border: 1px solid #e1e5e0; | |||
border-radius: 8px; | |||
background: #fffdfa; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-links p { | ||
margin: 0; | |||
} | } | ||
.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: .62rem; | ||
min-width: 0; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-resource-media .thumb { | ||
overflow: hidden; | |||
border: 1px solid #e4dfd6; | |||
border-radius: 8px; | |||
background: #f7f4ef; | |||
} | } | ||
@media screen and (max-width: 920px) { | |||
.mucwiki-home-hero { | |||
@media screen and (max-width: | |||
.mucwiki-home- | |||
grid-template-columns: minmax(0, 1fr); | grid-template-columns: minmax(0, 1fr); | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-aside { | ||
grid-row: 4; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-help-grid, | ||
.mucwiki-home-resources-grid { | |||
grid-template-columns: minmax(0, 1fr); | grid-template-columns: minmax(0, 1fr); | ||
} | } | ||
.mucwiki-home-media { | .mucwiki-home-resource-media { | ||
grid-template-columns: minmax(0, 1fr); | |||
} | } | ||
} | } | ||
@media screen and (max-width: | @media screen and (max-width: 560px) { | ||
.mucwiki-home { | .mucwiki-home { | ||
gap: . | gap: .82rem; | ||
} | } | ||
.mucwiki-home- | .mucwiki-home-intro, | ||
padding: | .mucwiki-home-status, | ||
.mucwiki-home-panel, | |||
.mucwiki-home-resource-links { | |||
padding: .82rem .9rem; | |||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
font-size: 1. | font-size: 1.42rem; | ||
} | } | ||
.mucwiki-home-grid | .mucwiki-home-link-grid { | ||
gap: .38rem; | |||
} | } | ||
.mucwiki-home- | .mucwiki-home-link-grid li { | ||
width: 100%; | |||
border-radius: 8px; | |||
} | } | ||
} | } | ||
2026年6月14日 (日) 01:31的版本
.mucwiki-home {
display: grid;
gap: 1rem;
color: #202122;
font-size: 1rem;
line-height: 1.62;
}
.mucwiki-home,
.mucwiki-home * {
box-sizing: border-box;
}
.mucwiki-home p {
margin: 0;
}
.mucwiki-home a {
color: #8f1d2c;
text-decoration: none;
}
.mucwiki-home a:hover,
.mucwiki-home a:focus {
color: #67151f;
text-decoration: underline;
}
.mucwiki-home-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
gap: 1rem;
align-items: start;
}
.mucwiki-home-intro {
display: grid;
gap: .72rem;
padding: 1.15rem 1.25rem;
border: 1px solid #eaded7;
border-left: 4px solid #8f1d2c;
border-radius: 8px;
background: #fffdfa;
}
.mucwiki-home-title {
color: #181d22;
font-size: 1.65rem;
font-weight: 800;
line-height: 1.16;
}
.mucwiki-home-title big {
font-size: 1em;
}
.mucwiki-home-lede {
color: #29323b;
font-size: 1.04rem;
font-weight: 700;
}
.mucwiki-home-intro p:not(.mucwiki-home-title):not(.mucwiki-home-lede) {
color: #555f69;
}
.mucwiki-home-aside {
display: grid;
gap: .65rem;
min-width: 0;
}
.mucwiki-home-media {
overflow: hidden;
border: 1px solid #e4dfd6;
border-radius: 8px;
background: #f7f4ef;
}
.mucwiki-home-media .thumb,
.mucwiki-home-resource-media .thumb {
float: none;
clear: none;
width: auto;
max-width: 100%;
margin: 0;
}
.mucwiki-home-media .thumbinner,
.mucwiki-home-resource-media .thumbinner {
width: auto !important;
max-width: 100%;
border: 0;
border-radius: 8px;
background: transparent;
}
.mucwiki-home-media img,
.mucwiki-home-resource-media img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
border-radius: 8px;
}
.mucwiki-home-media .thumbcaption,
.mucwiki-home-resource-media .thumbcaption {
padding: .42rem .55rem .5rem;
color: #656f7a;
font-size: .86rem;
line-height: 1.42;
}
.mucwiki-home-stats {
padding: .62rem .72rem;
border: 1px solid #e8e3dc;
border-radius: 8px;
background: #fff;
color: #555f69;
font-size: .94rem;
}
.mucwiki-home-stats a {
color: #67151f;
font-weight: 800;
}
.mucwiki-home-status {
display: grid;
gap: .45rem;
padding: .82rem .95rem;
border: 1px solid #e5e0d8;
border-radius: 8px;
background: #fbfaf7;
color: #555f69;
}
.mucwiki-home-section {
display: grid;
gap: .68rem;
margin-top: .15rem;
}
.mucwiki-home-section h2 {
display: flex;
align-items: center;
gap: .5rem;
margin: 0;
padding-bottom: .42rem;
border-bottom: 1px solid #e8e3dc;
color: #181d22;
font-size: 1.12rem;
font-weight: 800;
letter-spacing: 0;
}
.mucwiki-home-section h2::before {
content: "";
width: .28rem;
height: 1rem;
border-radius: 999px;
background: #8f1d2c;
}
.mucwiki-home-link-grid {
display: flex;
flex-wrap: wrap;
gap: .45rem;
margin: 0;
padding: 0;
list-style: none;
}
.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;
}
.mucwiki-home-link-grid li:hover {
border-color: #d7b7ae;
background: #fff7f5;
}
.mucwiki-home-link-grid--building li {
border-color: #e4dfd6;
background: #fffdfa;
}
.mucwiki-home-help-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .8rem;
}
.mucwiki-home-panel {
display: grid;
gap: .55rem;
padding: .9rem 1rem;
border: 1px solid #e1e5e0;
border-radius: 8px;
background: #fff;
color: #555f69;
}
.mucwiki-home-question {
color: #22272d;
font-weight: 800;
}
.mucwiki-home-question big {
font-size: 1em;
}
.mucwiki-home-resources-grid {
display: grid;
grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr);
gap: .9rem;
align-items: start;
}
.mucwiki-home-resource-links {
display: grid;
gap: .45rem;
padding: .9rem 1rem;
border: 1px solid #e1e5e0;
border-radius: 8px;
background: #fffdfa;
}
.mucwiki-home-resource-links p {
margin: 0;
}
.mucwiki-home-resource-links big {
font-size: 1em;
}
.mucwiki-home-resource-media {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .62rem;
min-width: 0;
}
.mucwiki-home-resource-media .thumb {
overflow: hidden;
border: 1px solid #e4dfd6;
border-radius: 8px;
background: #f7f4ef;
}
@media screen and (max-width: 920px) {
.mucwiki-home-hero {
grid-template-columns: minmax(0, 1fr);
}
.mucwiki-home-aside {
grid-row: 4;
}
.mucwiki-home-help-grid,
.mucwiki-home-resources-grid {
grid-template-columns: minmax(0, 1fr);
}
.mucwiki-home-resource-media {
grid-template-columns: minmax(0, 1fr);
}
}
@media screen and (max-width: 560px) {
.mucwiki-home {
gap: .82rem;
}
.mucwiki-home-intro,
.mucwiki-home-status,
.mucwiki-home-panel,
.mucwiki-home-resource-links {
padding: .82rem .9rem;
}
.mucwiki-home-title {
font-size: 1.42rem;
}
.mucwiki-home-link-grid {
gap: .38rem;
}
.mucwiki-home-link-grid li {
width: 100%;
border-radius: 8px;
}
}