Expand page templates and configure page visibility

This commit is contained in:
2026-11-22 12:54:01 +08:00
parent 931d333ca7
commit f23c3b95ba
27 changed files with 293 additions and 44 deletions
+7 -3
View File
@@ -2,7 +2,7 @@
position: fixed;
inset: 0 0 0 auto;
margin: 0;
width: min(100%, 39rem);
width: min(100%, clamp(45rem, 80vw, 78rem));
max-width: none;
height: 100dvh;
max-height: none;
@@ -33,7 +33,9 @@
.page-template-content h3:focus { outline: none; }
.page-template-back { margin-bottom: 1.15rem; }
.page-template-groups, .page-template-pages { display: grid; gap: .75rem; }
.page-template-groups { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.page-template-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-template-detail { display: grid; gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.page-template-card {
display: grid;
grid-template-columns: 1fr;
@@ -46,7 +48,6 @@
border-radius: .7rem;
text-align: start;
}
.page-template-groups .page-template-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
.page-template-card:hover, .page-template-card:focus-visible { border-color: var(--accent); }
.page-template-card-copy { display: grid; align-content: center; gap: .24rem; padding: clamp(.65rem, 2vw, 1rem); }
.page-template-card-copy small { line-height: 1.5; color: var(--muted); }
@@ -54,7 +55,10 @@
.page-template-image img { width: 100%; height: auto; transition: transform 180ms ease; }
.page-template-card:hover img, .page-template-card:focus-visible img { transform: scale(1.035); }
.page-template-preview-link { margin-block: .8rem 1.2rem; }
@media (min-width: 49rem) {
.page-template-detail { grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 1fr); }
.page-template-detail .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
.page-template-groups .page-template-card { grid-template-columns: 1fr; }
.page-template-pages { grid-template-columns: 1fr; }
}