模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
Maintenance script(留言 | 贡献) Refine homepage component styling |
Maintenance script(留言 | 贡献) Refine homepage component layout |
||
| 第2行: | 第2行: | ||
color: #1d2939; | color: #1d2939; | ||
font-size: 1rem; | font-size: 1rem; | ||
display: grid; | |||
gap: 1rem; | |||
} | } | ||
| 第21行: | 第23行: | ||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, | grid-template-columns: minmax(0, 1fr) minmax(20rem, .46fr); | ||
gap: . | gap: 1.05rem; | ||
align-items: stretch; | align-items: stretch; | ||
padding: . | padding: 1.05rem; | ||
border: 1px solid # | border: 1px solid #d7e0eb; | ||
border-radius: | border-radius: 8px; | ||
background: | background: #fff; | ||
box-shadow: 0 | box-shadow: 0 16px 42px rgba(31, 47, 70, .055); | ||
} | } | ||
| 第34行: | 第36行: | ||
display: grid; | display: grid; | ||
align-content: center; | align-content: center; | ||
gap: . | gap: .7rem; | ||
min-height: 11.4rem; | min-height: 11.4rem; | ||
padding: . | padding: 1.1rem 1.05rem; | ||
border-left: 4px solid #245b9f; | |||
line-height: 1.76; | line-height: 1.76; | ||
} | } | ||
| 第67行: | 第70行: | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
color: #0f172a; | color: #0f172a; | ||
font-size: 2. | font-size: 2.22rem; | ||
font-weight: 900; | font-weight: 900; | ||
line-height: 1.12; | line-height: 1.12; | ||
| 第82行: | 第85行: | ||
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; | ||
} | } | ||
| 第89行: | 第92行: | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
min-height: | min-height: 10.1rem; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid # | border: 1px solid #e5edf6; | ||
border-radius: | border-radius: 8px; | ||
background: # | background: #f2f6fb; | ||
box-shadow: | box-shadow: none; | ||
} | } | ||
| 第101行: | 第104行: | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: none; | ||
height: auto; | height: auto; | ||
border-radius: 8px; | border-radius: 8px; | ||
| 第115行: | 第118行: | ||
min-width: 0; | min-width: 0; | ||
padding: .68rem .72rem; | padding: .68rem .72rem; | ||
border: 1px solid # | border: 1px solid #dbe5f0; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #f8fbff; | ||
color: #617083; | color: #617083; | ||
line-height: 1.28; | line-height: 1.28; | ||
| 第139行: | 第142行: | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: 1rem; | margin-top: .1rem; | ||
} | } | ||
| 第147行: | 第150行: | ||
gap: .52rem; | gap: .52rem; | ||
margin: 0 0 .72rem; | margin: 0 0 .72rem; | ||
padding-bottom: . | padding-bottom: .52rem; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #e3ebf4; | ||
color: #0f172a; | color: #0f172a; | ||
font-size: 1.16rem; | font-size: 1.16rem; | ||
| 第171行: | 第174行: | ||
.mucwiki-home-grid--primary { | .mucwiki-home-grid--primary { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
} | |||
.mucwiki-home-section--entries { | |||
padding: 1rem 1.05rem 1.1rem; | |||
border: 1px solid #dbe4ef; | |||
border-radius: 8px; | |||
background: rgba(255, 255, 255, .82); | |||
} | } | ||
| 第186行: | 第196行: | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
position: relative; | position: relative; | ||
min-height: 5. | min-height: 5.35rem; | ||
padding: . | padding: .88rem .95rem; | ||
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; | ||
| 第204行: | 第214行: | ||
border-color: #a9c0dc; | border-color: #a9c0dc; | ||
background: #fbfdff; | background: #fbfdff; | ||
box-shadow: 0 | box-shadow: 0 8px 22px rgba(31, 47, 70, .052); | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
} | } | ||
| 第240行: | 第250行: | ||
.mucwiki-home-topline, | .mucwiki-home-topline, | ||
.mucwiki-home-note { | .mucwiki-home-note { | ||
margin-top: | margin-top: 0; | ||
color: #536070; | color: #536070; | ||
line-height: 1.7; | line-height: 1.7; | ||
| 第246行: | 第256行: | ||
.mucwiki-home-topline { | .mucwiki-home-topline { | ||
padding: . | padding: .75rem .95rem; | ||
background: #fff; | background: #fff; | ||
} | } | ||
| 第254行: | 第264行: | ||
grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr); | grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr); | ||
gap: .84rem; | gap: .84rem; | ||
padding: . | padding: .92rem 1rem; | ||
background: #fbfcfe; | background: #fbfcfe; | ||
} | } | ||
| 第261行: | 第271行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: | gap: 1rem; | ||
} | } | ||
| 第267行: | 第277行: | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
padding: | padding: 1.05rem 1.15rem; | ||
min-height: 13rem; | min-height: 13rem; | ||
} | } | ||
| 第289行: | 第299行: | ||
.mucwiki-home-panel--building { | .mucwiki-home-panel--building { | ||
border-color: #e2cf9a; | border-color: #e2cf9a; | ||
background: # | background: #fffaf2; | ||
} | } | ||
| 第384行: | 第394行: | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
.mucwiki-home { | |||
gap: .85rem; | |||
} | |||
.mucwiki-home-masthead { | .mucwiki-home-masthead { | ||
gap: .66rem; | gap: .66rem; | ||
padding: . | padding: .76rem; | ||
border-radius: 8px; | border-radius: 8px; | ||
} | } | ||
| 第393行: | 第407行: | ||
min-height: auto; | min-height: auto; | ||
gap: .5rem; | gap: .5rem; | ||
padding: . | padding: .28rem .3rem .28rem .72rem; | ||
border-left-width: 3px; | |||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
font-size: 1. | font-size: 1.56rem; | ||
} | } | ||
| 第405行: | 第420行: | ||
.mucwiki-home-media { | .mucwiki-home-media { | ||
min-height: 7.2rem; | |||
} | |||
.mucwiki-home-media .mw-file-element, | |||
.mucwiki-home-media img { | |||
max-width: 100%; | |||
} | } | ||
| 第426行: | 第446行: | ||
.mucwiki-home-section { | .mucwiki-home-section { | ||
margin-top: | margin-top: 0; | ||
} | } | ||
| 第437行: | 第457行: | ||
.mucwiki-home-grid--primary { | .mucwiki-home-grid--primary { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | |||
.mucwiki-home-section--entries { | |||
padding: .8rem; | |||
} | } | ||
.mucwiki-home-card { | .mucwiki-home-card { | ||
min-height: 4. | min-height: 4.45rem; | ||
padding: .72rem . | padding: .72rem .82rem; | ||
} | } | ||
| 第461行: | 第485行: | ||
.mucwiki-home-link-cloud { | .mucwiki-home-link-cloud { | ||
display: | display: flex; | ||
flex-wrap: wrap; | |||
gap: .38rem; | gap: .38rem; | ||
} | } | ||
.mucwiki-home-link-cloud p { | .mucwiki-home-link-cloud p { | ||
display: | display: flex; | ||
flex-wrap: wrap; | |||
gap: .38rem; | gap: .38rem; | ||
} | } | ||
.mucwiki-home-link-cloud span { | .mucwiki-home-link-cloud span { | ||
width: | width: auto; | ||
border-radius: 8px; | border-radius: 8px; | ||
font-size: .9rem; | |||
} | } | ||
} | } | ||
2026年6月4日 (四) 18:33的版本
.mucwiki-home {
color: #1d2939;
font-size: 1rem;
display: grid;
gap: 1rem;
}
.mucwiki-home a {
color: #075fc7;
text-decoration: none;
}
.mucwiki-home a:hover,
.mucwiki-home a:focus {
color: #064b9c;
text-decoration: underline;
}
.mucwiki-home p {
margin: 0;
}
.mucwiki-home-masthead {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(20rem, .46fr);
gap: 1.05rem;
align-items: stretch;
padding: 1.05rem;
border: 1px solid #d7e0eb;
border-radius: 8px;
background: #fff;
box-shadow: 0 16px 42px rgba(31, 47, 70, .055);
}
.mucwiki-home-copy {
display: grid;
align-content: center;
gap: .7rem;
min-height: 11.4rem;
padding: 1.1rem 1.05rem;
border-left: 4px solid #245b9f;
line-height: 1.76;
}
.mucwiki-home-kicker {
display: inline-flex;
width: max-content;
max-width: 100%;
min-height: 1.72rem;
align-items: center;
padding: .24rem .66rem;
border: 1px solid #c8d8ea;
border-radius: 999px;
background: #eef6ff;
color: #173f75;
font-size: .84rem;
font-weight: 800;
line-height: 1.2;
}
.mucwiki-home-kicker::before {
content: "";
width: .48rem;
height: .48rem;
margin-right: .38rem;
border-radius: 999px;
background: #245b9f;
}
.mucwiki-home-title {
color: #0f172a;
font-size: 2.22rem;
font-weight: 900;
line-height: 1.12;
}
.mucwiki-home-lede {
max-width: 42rem;
color: #253044;
font-size: 1.05rem;
font-weight: 700;
}
.mucwiki-home-side {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
gap: .7rem;
min-width: 0;
}
.mucwiki-home-media {
display: grid;
place-items: center;
min-height: 10.1rem;
overflow: hidden;
border: 1px solid #e5edf6;
border-radius: 8px;
background: #f2f6fb;
box-shadow: none;
}
.mucwiki-home-media .mw-file-element,
.mucwiki-home-media img {
display: block;
width: 100%;
max-width: none;
height: auto;
border-radius: 8px;
}
.mucwiki-home-stats-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .6rem;
}
.mucwiki-home-stat {
min-width: 0;
padding: .68rem .72rem;
border: 1px solid #dbe5f0;
border-radius: 8px;
background: #f8fbff;
color: #617083;
line-height: 1.28;
}
.mucwiki-home-stat strong,
.mucwiki-home-stat span {
display: block;
}
.mucwiki-home-stat strong {
color: #245b9f;
font-size: 1.16rem;
font-weight: 800;
}
.mucwiki-home-stat span {
margin-top: .18rem;
font-size: .85rem;
}
.mucwiki-home-section {
margin-top: .1rem;
}
.mucwiki-home-section h2 {
display: flex;
align-items: center;
gap: .52rem;
margin: 0 0 .72rem;
padding-bottom: .52rem;
border-bottom: 1px solid #e3ebf4;
color: #0f172a;
font-size: 1.16rem;
font-weight: 800;
letter-spacing: 0;
}
.mucwiki-home-section h2::before {
content: "";
display: inline-block;
width: .34rem;
height: 1.08rem;
border-radius: 999px;
background: #245b9f;
}
.mucwiki-home-grid {
display: grid;
gap: .72rem;
}
.mucwiki-home-grid--primary {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mucwiki-home-section--entries {
padding: 1rem 1.05rem 1.1rem;
border: 1px solid #dbe4ef;
border-radius: 8px;
background: rgba(255, 255, 255, .82);
}
.mucwiki-home-card,
.mucwiki-home-panel,
.mucwiki-home-help__grid > div,
.mucwiki-home-topline,
.mucwiki-home-note {
border: 1px solid #dbe4ef;
border-radius: 8px;
background: rgba(255, 255, 255, .96);
box-shadow: 0 1px 2px rgba(31, 47, 70, .025);
}
.mucwiki-home-card {
position: relative;
min-height: 5.35rem;
padding: .88rem .95rem;
overflow: hidden;
transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.mucwiki-home-card::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: .18rem;
background: #245b9f;
opacity: .72;
}
.mucwiki-home-card:hover {
border-color: #a9c0dc;
background: #fbfdff;
box-shadow: 0 8px 22px rgba(31, 47, 70, .052);
transform: translateY(-1px);
}
.mucwiki-home-card strong,
.mucwiki-home-card span {
display: block;
}
.mucwiki-home-card strong {
padding-right: 1.2rem;
padding-left: .28rem;
color: #0f172a;
font-size: 1rem;
font-weight: 800;
}
.mucwiki-home-card::after {
content: "›";
position: absolute;
top: .9rem;
right: 1rem;
color: #8aa2c2;
font-size: 1.25rem;
line-height: 1;
}
.mucwiki-home-card span {
margin-top: .34rem;
padding-left: .28rem;
color: #617083;
line-height: 1.58;
}
.mucwiki-home-topline,
.mucwiki-home-note {
margin-top: 0;
color: #536070;
line-height: 1.7;
}
.mucwiki-home-topline {
padding: .75rem .95rem;
background: #fff;
}
.mucwiki-home-note {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr);
gap: .84rem;
padding: .92rem 1rem;
background: #fbfcfe;
}
.mucwiki-home-columns {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.mucwiki-home-panel {
position: relative;
overflow: hidden;
padding: 1.05rem 1.15rem;
min-height: 13rem;
}
.mucwiki-home-panel::before {
content: "";
position: absolute;
inset: 0 0 auto;
height: .2rem;
background: #245b9f;
}
.mucwiki-home-panel ul {
display: grid;
gap: .38rem;
margin: .15rem 0 0;
padding-left: 1.1rem;
line-height: 1.75;
}
.mucwiki-home-panel--building {
border-color: #e2cf9a;
background: #fffaf2;
}
.mucwiki-home-panel--building::before {
background: #b7791f;
}
.mucwiki-home-link-cloud {
display: flex;
flex-wrap: wrap;
gap: .5rem;
}
.mucwiki-home-link-cloud p {
display: flex;
flex-wrap: wrap;
gap: .5rem;
margin: 0;
}
.mucwiki-home-link-cloud span {
display: inline-flex;
align-items: center;
min-height: 2.1rem;
padding: .32rem .62rem;
border: 1px solid #dbe4ef;
border-radius: 999px;
background: rgba(255, 255, 255, .96);
color: #344054;
font-size: .95rem;
line-height: 1.32;
box-shadow: none;
transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.mucwiki-home-link-cloud span:hover {
border-color: #a9bdd7;
background: #eef6ff;
transform: translateY(-1px);
}
.mucwiki-home-help__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .78rem;
}
.mucwiki-home-help__grid > div {
position: relative;
padding: .95rem 1rem;
background: #fbfcfe;
}
.mucwiki-home-help__grid > div::before {
content: "";
display: block;
width: 2rem;
height: .18rem;
margin-bottom: .72rem;
border-radius: 999px;
background: #245b9f;
}
.mucwiki-home-help h3 {
margin: 0 0 .45rem;
color: #0f172a;
font-size: 1rem;
font-weight: 800;
}
.mucwiki-home-help p {
color: #617083;
line-height: 1.66;
}
.mucwiki-home-card a,
.mucwiki-home-link-cloud a,
.mucwiki-home-stat a {
text-decoration: none;
}
@media (max-width: 980px) {
.mucwiki-home-masthead,
.mucwiki-home-note,
.mucwiki-home-columns,
.mucwiki-home-help__grid {
grid-template-columns: 1fr;
}
.mucwiki-home-grid--primary {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 560px) {
.mucwiki-home {
gap: .85rem;
}
.mucwiki-home-masthead {
gap: .66rem;
padding: .76rem;
border-radius: 8px;
}
.mucwiki-home-copy {
min-height: auto;
gap: .5rem;
padding: .28rem .3rem .28rem .72rem;
border-left-width: 3px;
}
.mucwiki-home-title {
font-size: 1.56rem;
}
.mucwiki-home-lede {
font-size: .94rem;
}
.mucwiki-home-media {
min-height: 7.2rem;
}
.mucwiki-home-media .mw-file-element,
.mucwiki-home-media img {
max-width: 100%;
}
.mucwiki-home-stats-grid {
gap: .36rem;
}
.mucwiki-home-stat {
padding: .46rem .42rem;
border-radius: 8px;
}
.mucwiki-home-stat strong {
font-size: .98rem;
}
.mucwiki-home-stat span {
font-size: .78rem;
}
.mucwiki-home-section {
margin-top: 0;
}
.mucwiki-home-section h2 {
margin-bottom: .55rem;
padding-bottom: .42rem;
font-size: 1.06rem;
}
.mucwiki-home-grid--primary {
grid-template-columns: 1fr;
}
.mucwiki-home-section--entries {
padding: .8rem;
}
.mucwiki-home-card {
min-height: 4.45rem;
padding: .72rem .82rem;
}
.mucwiki-home-card span {
margin-top: .24rem;
line-height: 1.5;
}
.mucwiki-home-topline,
.mucwiki-home-note,
.mucwiki-home-panel,
.mucwiki-home-help__grid > div {
padding: .76rem .82rem;
}
.mucwiki-home-note {
gap: .5rem;
}
.mucwiki-home-link-cloud {
display: flex;
flex-wrap: wrap;
gap: .38rem;
}
.mucwiki-home-link-cloud p {
display: flex;
flex-wrap: wrap;
gap: .38rem;
}
.mucwiki-home-link-cloud span {
width: auto;
border-radius: 8px;
font-size: .9rem;
}
}