模板:考试首页/styles.css:修订间差异
来自Ac-Wiki
更多操作
拆分考试首页独立样式 |
小 重做考试首页为分类目录外观 |
||
| 第1行: | 第1行: | ||
.acw-exam-home{display:flex;flex-direction:column;gap:1rem;margin-block:.5rem 1.5rem;color:var(--color-base,#202122)}.acw-exam-home *{box-sizing:border-box}.acw-exam-hero{border:1px solid var(--border-color-base,#a2a9b1);border-radius:8px;background:var(--background-color-base,#fff); | .acw-exam-home { | ||
display: flex; | |||
flex-direction: column; | |||
gap: 1rem; | |||
margin-block: 0.5rem 1.5rem; | |||
color: var(--color-base, #202122); | |||
} | |||
.acw-exam-home * { box-sizing: border-box; } | |||
.acw-exam-hero { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr) auto; | |||
gap: 1rem; | |||
align-items: end; | |||
padding: 1rem; | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
border-radius: 8px; | |||
background: var(--background-color-base, #fff); | |||
} | |||
.acw-exam-title { | |||
margin: 0; | |||
color: var(--color-emphasized, #101418); | |||
font-size: 1.65rem; | |||
line-height: 1.25; | |||
font-weight: 800; | |||
} | |||
.acw-exam-lede { | |||
max-width: 58rem; | |||
margin: 0.55rem 0 0; | |||
color: var(--color-subtle, #54595d); | |||
line-height: 1.7; | |||
} | |||
.acw-exam-count { | |||
min-width: 5.2rem; | |||
padding: 0.6rem 0.75rem; | |||
border: 1px solid var(--border-color-subtle, #eaecf0); | |||
border-radius: 8px; | |||
background: var(--background-color-neutral-subtle, #f8f9fa); | |||
text-align: center; | |||
} | |||
.acw-exam-count strong { | |||
display: block; | |||
color: var(--color-emphasized, #101418); | |||
font-size: 1.45rem; | |||
line-height: 1.1; | |||
} | |||
.acw-exam-count span { | |||
color: var(--color-subtle, #54595d); | |||
font-size: var(--font-size-small, 0.875rem); | |||
} | |||
.acw-exam-map { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: 0.9rem; | |||
} | |||
.acw-exam-domain { | |||
position: relative; | |||
min-height: 12rem; | |||
padding: 0.95rem; | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
border-radius: 8px; | |||
background: var(--background-color-base, #fff); | |||
} | |||
.acw-exam-index { | |||
display: block; | |||
margin-bottom: 0.55rem; | |||
color: var(--color-subtle, #54595d); | |||
font-size: var(--font-size-small, 0.875rem); | |||
font-weight: 800; | |||
} | |||
.acw-exam-domain-title { | |||
margin: 0 0 0.35rem; | |||
color: var(--color-emphasized, #101418); | |||
font-size: 1.05rem; | |||
line-height: 1.35; | |||
font-weight: 800; | |||
} | |||
.acw-exam-domain p { | |||
margin: 0 0 0.75rem; | |||
color: var(--color-subtle, #54595d); | |||
font-size: var(--font-size-small, 0.875rem); | |||
line-height: 1.6; | |||
} | |||
.acw-exam-tags { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.42rem; | |||
} | |||
.acw-exam-tag { | |||
display: inline-flex; | |||
align-items: center; | |||
min-height: 1.65rem; | |||
padding: 0.16rem 0.5rem; | |||
border: 1px solid var(--border-color-subtle, #eaecf0); | |||
border-radius: 999px; | |||
background: var(--background-color-neutral-subtle, #f8f9fa); | |||
color: var(--color-base, #202122); | |||
font-size: var(--font-size-small, 0.875rem); | |||
} | |||
.acw-exam-lower { | |||
display: grid; | |||
grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr); | |||
gap: 1rem; | |||
align-items: start; | |||
} | |||
.acw-exam-panel { | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
border-radius: 8px; | |||
background: var(--background-color-base, #fff); | |||
overflow: hidden; | |||
} | |||
.acw-exam-panel-title { | |||
margin: 0; | |||
padding: 0.8rem 0.95rem; | |||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | |||
background: var(--background-color-neutral-subtle, #f8f9fa); | |||
color: var(--color-emphasized, #101418); | |||
font-weight: 800; | |||
} | |||
.acw-exam-panel-body { padding: 0.85rem 0.95rem; } | |||
.acw-exam-list { | |||
margin: 0; | |||
padding: 0; | |||
list-style: none; | |||
} | |||
.acw-exam-list li { | |||
padding: 0.55rem 0; | |||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | |||
line-height: 1.6; | |||
} | |||
.acw-exam-list li:first-child { padding-top: 0; } | |||
.acw-exam-list li:last-child { padding-bottom: 0; border-bottom: 0; } | |||
.acw-exam-label { | |||
display: inline-block; | |||
min-width: 3rem; | |||
color: var(--color-subtle, #54595d); | |||
font-size: var(--font-size-small, 0.875rem); | |||
font-weight: 800; | |||
} | |||
.acw-exam-dpl { line-height: 1.7; } | |||
.acw-exam-dpl ul { margin: 0; padding-left: 1.15rem; } | |||
.acw-exam-create input[type="text"] { max-width: 100%; border-radius: 6px; } | |||
.acw-exam-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: 980px) { | |||
.acw-exam-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |||
.acw-exam-lower { grid-template-columns: 1fr; } | |||
} | |||
@media screen and (max-width: 640px) { | |||
.acw-exam-hero { grid-template-columns: 1fr; } | |||
.acw-exam-title { font-size: 1.35rem; } | |||
.acw-exam-map { grid-template-columns: 1fr; } | |||
.acw-exam-count { text-align: left; } | |||
} | |||
2026年6月22日 (一) 21:25的最新版本
.acw-exam-home {
display: flex;
flex-direction: column;
gap: 1rem;
margin-block: 0.5rem 1.5rem;
color: var(--color-base, #202122);
}
.acw-exam-home * { box-sizing: border-box; }
.acw-exam-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 1rem;
align-items: end;
padding: 1rem;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
background: var(--background-color-base, #fff);
}
.acw-exam-title {
margin: 0;
color: var(--color-emphasized, #101418);
font-size: 1.65rem;
line-height: 1.25;
font-weight: 800;
}
.acw-exam-lede {
max-width: 58rem;
margin: 0.55rem 0 0;
color: var(--color-subtle, #54595d);
line-height: 1.7;
}
.acw-exam-count {
min-width: 5.2rem;
padding: 0.6rem 0.75rem;
border: 1px solid var(--border-color-subtle, #eaecf0);
border-radius: 8px;
background: var(--background-color-neutral-subtle, #f8f9fa);
text-align: center;
}
.acw-exam-count strong {
display: block;
color: var(--color-emphasized, #101418);
font-size: 1.45rem;
line-height: 1.1;
}
.acw-exam-count span {
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
}
.acw-exam-map {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.9rem;
}
.acw-exam-domain {
position: relative;
min-height: 12rem;
padding: 0.95rem;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
background: var(--background-color-base, #fff);
}
.acw-exam-index {
display: block;
margin-bottom: 0.55rem;
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
font-weight: 800;
}
.acw-exam-domain-title {
margin: 0 0 0.35rem;
color: var(--color-emphasized, #101418);
font-size: 1.05rem;
line-height: 1.35;
font-weight: 800;
}
.acw-exam-domain p {
margin: 0 0 0.75rem;
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
line-height: 1.6;
}
.acw-exam-tags {
display: flex;
flex-wrap: wrap;
gap: 0.42rem;
}
.acw-exam-tag {
display: inline-flex;
align-items: center;
min-height: 1.65rem;
padding: 0.16rem 0.5rem;
border: 1px solid var(--border-color-subtle, #eaecf0);
border-radius: 999px;
background: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-base, #202122);
font-size: var(--font-size-small, 0.875rem);
}
.acw-exam-lower {
display: grid;
grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
gap: 1rem;
align-items: start;
}
.acw-exam-panel {
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
background: var(--background-color-base, #fff);
overflow: hidden;
}
.acw-exam-panel-title {
margin: 0;
padding: 0.8rem 0.95rem;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
background: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-emphasized, #101418);
font-weight: 800;
}
.acw-exam-panel-body { padding: 0.85rem 0.95rem; }
.acw-exam-list {
margin: 0;
padding: 0;
list-style: none;
}
.acw-exam-list li {
padding: 0.55rem 0;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
line-height: 1.6;
}
.acw-exam-list li:first-child { padding-top: 0; }
.acw-exam-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.acw-exam-label {
display: inline-block;
min-width: 3rem;
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
font-weight: 800;
}
.acw-exam-dpl { line-height: 1.7; }
.acw-exam-dpl ul { margin: 0; padding-left: 1.15rem; }
.acw-exam-create input[type="text"] { max-width: 100%; border-radius: 6px; }
.acw-exam-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: 980px) {
.acw-exam-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acw-exam-lower { grid-template-columns: 1fr; }
}
@media screen and (max-width: 640px) {
.acw-exam-hero { grid-template-columns: 1fr; }
.acw-exam-title { font-size: 1.35rem; }
.acw-exam-map { grid-template-columns: 1fr; }
.acw-exam-count { text-align: left; }
}