模板:新闻首页/styles.css
来自Ac-Wiki
更多操作
.acw-news-home {
display: grid;
gap: 1.1rem;
margin-block: 0.5rem 1.5rem;
color: var(--color-base, #202122);
}
.acw-news-home * { box-sizing: border-box; }
.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.55fr) minmax(18rem, 0.8fr);
gap: 1.25rem;
align-items: start;
}
.acw-news-mainline {
padding-right: 1.25rem;
border-right: 1px solid var(--border-color-subtle, #eaecf0);
}
.acw-news-side {
display: grid;
gap: 1rem;
}
.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: 4rem minmax(0, 1fr);
gap: 0.65rem;
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.9rem;
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: 920px) {
.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; }
}