模板:新闻首页/styles.css:修订间差异
来自Ac-Wiki
更多操作
小 重做新闻首页为资讯索引外观 |
小 修正首页响应式布局溢出 |
||
| 第2行: | 第2行: | ||
display: grid; | display: grid; | ||
gap: 1.1rem; | gap: 1.1rem; | ||
max-width: 100%; | |||
margin-block: 0.5rem 1.5rem; | margin-block: 0.5rem 1.5rem; | ||
color: var(--color-base, #202122); | color: var(--color-base, #202122); | ||
overflow-wrap: anywhere; | |||
} | } | ||
.acw-news-home * { box-sizing: border-box; } | .acw-news-home * { box-sizing: border-box; min-width: 0; } | ||
.acw-news-masthead { | .acw-news-masthead { | ||
padding: 0.95rem 0 1.05rem; | padding: 0.95rem 0 1.05rem; | ||
| 第32行: | 第34行: | ||
.acw-news-front { | .acw-news-front { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1. | grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); | ||
gap: | gap: 1rem; | ||
align-items: start; | align-items: start; | ||
} | } | ||
.acw-news-mainline { | .acw-news-mainline { | ||
padding-right: | padding-right: 1rem; | ||
border-right: 1px solid var(--border-color-subtle, #eaecf0); | border-right: 1px solid var(--border-color-subtle, #eaecf0); | ||
} | } | ||
.acw-news-side { | .acw-news-side { | ||
display: grid; | display: grid; | ||
gap: | gap: 0.9rem; | ||
} | } | ||
.acw-news-block-title { | .acw-news-block-title { | ||
| 第82行: | 第84行: | ||
.acw-news-briefs li { | .acw-news-briefs li { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 3.6rem minmax(0, 1fr); | ||
gap: 0. | gap: 0.55rem; | ||
padding: 0.52rem 0; | padding: 0.52rem 0; | ||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | ||
| 第104行: | 第106行: | ||
} | } | ||
.acw-news-topic { | .acw-news-topic { | ||
padding: 0. | padding: 0.85rem; | ||
border-right: 1px solid var(--border-color-subtle, #eaecf0); | border-right: 1px solid var(--border-color-subtle, #eaecf0); | ||
} | } | ||
| 第127行: | 第129行: | ||
line-height: 1.6; | line-height: 1.6; | ||
} | } | ||
@media screen and (max-width: | @media screen and (max-width: 1100px) { | ||
.acw-news-front { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); } | |||
} | |||
@media screen and (max-width: 860px) { | |||
.acw-news-front { grid-template-columns: 1fr; } | .acw-news-front { grid-template-columns: 1fr; } | ||
.acw-news-mainline { padding-right: 0; border-right: 0; } | .acw-news-mainline { padding-right: 0; border-right: 0; } | ||
2026年6月22日 (一) 21:33的最新版本
.acw-news-home {
display: grid;
gap: 1.1rem;
max-width: 100%;
margin-block: 0.5rem 1.5rem;
color: var(--color-base, #202122);
overflow-wrap: anywhere;
}
.acw-news-home * { box-sizing: border-box; min-width: 0; }
.acw-news-masthead {
padding: 0.95rem 0 1.05rem;
border-top: 2px solid var(--border-color-base, #a2a9b1);
border-bottom: 1px solid var(--border-color-base, #a2a9b1);
}
.acw-news-kicker {
margin: 0 0 0.3rem;
color: var(--color-progressive, #36c);
font-size: var(--font-size-small, 0.875rem);
font-weight: 800;
}
.acw-news-title {
margin: 0;
color: var(--color-emphasized, #101418);
font-size: 2.25rem;
line-height: 1.12;
font-weight: 800;
}
.acw-news-lede {
max-width: 62rem;
margin: 0.65rem 0 0;
color: var(--color-subtle, #54595d);
line-height: 1.75;
}
.acw-news-front {
display: grid;
grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
gap: 1rem;
align-items: start;
}
.acw-news-mainline {
padding-right: 1rem;
border-right: 1px solid var(--border-color-subtle, #eaecf0);
}
.acw-news-side {
display: grid;
gap: 0.9rem;
}
.acw-news-block-title {
margin: 0 0 0.7rem;
color: var(--color-emphasized, #101418);
font-size: 1.05rem;
line-height: 1.35;
font-weight: 800;
}
.acw-news-dpl {
line-height: 1.75;
}
.acw-news-dpl ul {
margin: 0;
padding: 0;
list-style: none;
}
.acw-news-mainline .acw-news-dpl li {
padding: 0.72rem 0;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
font-size: 1rem;
}
.acw-news-mainline .acw-news-dpl li:first-child {
padding-top: 0;
font-size: 1.12rem;
font-weight: 800;
}
.acw-news-panel {
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
background: var(--background-color-base, #fff);
padding: 0.85rem;
}
.acw-news-briefs {
margin: 0;
padding: 0;
list-style: none;
}
.acw-news-briefs li {
display: grid;
grid-template-columns: 3.6rem minmax(0, 1fr);
gap: 0.55rem;
padding: 0.52rem 0;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
line-height: 1.6;
}
.acw-news-briefs li:first-child { padding-top: 0; }
.acw-news-briefs li:last-child { padding-bottom: 0; border-bottom: 0; }
.acw-news-label {
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
font-weight: 800;
}
.acw-news-topics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
overflow: hidden;
background: var(--background-color-base, #fff);
}
.acw-news-topic {
padding: 0.85rem;
border-right: 1px solid var(--border-color-subtle, #eaecf0);
}
.acw-news-topic:last-child { border-right: 0; }
.acw-news-topic-name {
display: block;
margin-bottom: 0.35rem;
color: var(--color-emphasized, #101418);
font-weight: 800;
}
.acw-news-topic p {
margin: 0;
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
line-height: 1.6;
}
.acw-news-create input[type="text"] { max-width: 100%; border-radius: 6px; }
.acw-news-note {
margin: 0.6rem 0 0;
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
line-height: 1.6;
}
@media screen and (max-width: 1100px) {
.acw-news-front { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); }
}
@media screen and (max-width: 860px) {
.acw-news-front { grid-template-columns: 1fr; }
.acw-news-mainline { padding-right: 0; border-right: 0; }
.acw-news-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acw-news-topic:nth-child(2) { border-right: 0; }
.acw-news-topic:nth-child(-n+2) { border-bottom: 1px solid var(--border-color-subtle, #eaecf0); }
}
@media screen and (max-width: 640px) {
.acw-news-title { font-size: 1.55rem; }
.acw-news-topics { grid-template-columns: 1fr; }
.acw-news-topic { border-right: 0; border-bottom: 1px solid var(--border-color-subtle, #eaecf0); }
.acw-news-topic:last-child { border-bottom: 0; }
.acw-news-briefs li { grid-template-columns: 1fr; gap: 0.1rem; }
}