Files
xamxam/public/assets/css/tfe.css

210 lines
3.5 KiB
CSS

/* ============================================================
TFE INDIVIDUAL PAGE (tfe.php)
============================================================ */
@import url("./variables.css");
.tfe-body {
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--bg-primary);
}
.tfe-main {
flex: 1;
overflow-y: auto;
padding: 2rem 1.5rem 3rem;
}
/* Two-column article layout */
.tfe-layout {
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 3rem;
max-width: 1200px;
}
/* Left column — article header */
.tfe-left {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
/* Back link — top of left column */
.tfe-back-link {
font-size: .88rem;
color: var(--text-tertiary);
text-decoration: underline;
text-underline-offset: 2px;
}
/* Title (h1) — primary heading, very large */
.tfe-title {
font-family: var(--font-display);
font-size: 2.2rem;
font-weight: 400;
color: var(--text-primary);
margin: 0;
line-height: 1.15;
letter-spacing: -0.01em;
}
/* Author (p) — large but secondary */
.tfe-author {
font-family: var(--font-display);
font-size: 1.9rem;
font-weight: 400;
color: var(--text-primary);
margin: 0;
line-height: 1.15;
letter-spacing: -0.01em;
}
/* Metadata description list — target <dl> directly inside article > header */
article dl {
display: flex;
flex-direction: column;
gap: 0.45rem;
font-size: 0.95rem;
line-height: 1.4;
margin: 0;
}
/* Each dt/dd pair grouped in a <div> inside <dl> */
article dl > div {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
}
article dl dt {
color: var(--text-primary);
font-weight: 400;
flex-shrink: 0;
}
article dl dd {
color: var(--text-primary);
font-weight: 700;
margin: 0;
}
article dl dd a {
color: inherit;
text-decoration: underline;
text-underline-offset: 2px;
}
/* Note field: align dt/dd to top, value in italics */
.tfe-meta-note {
align-items: start;
}
.tfe-note-value {
font-style: italic;
}
/* Synopsis paragraph */
.tfe-synopsis-text {
font-size: 0.95rem;
line-height: 1.7;
color: var(--text-primary);
margin: 0;
}
/* Right column — aside (supplementary media) */
.tfe-right {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
/* Each file display unit — target <figure> directly inside <aside> */
aside figure {
overflow: hidden;
margin: 0;
}
aside figure img {
width: 100%;
height: auto;
display: block;
}
aside figure embed,
aside figure video {
width: 100%;
display: block;
border: none;
}
aside figure video {
max-height: 500px;
}
aside figure embed {
height: clamp(300px, 80vh, 700px);
}
/* figcaption under media — target <figcaption> inside <aside> */
aside figcaption {
font-size: 0.8rem;
color: var(--text-secondary);
margin: 0.3rem 0 0;
font-style: italic;
}
/* PDF fallback download link */
.tfe-pdf-fallback {
font-size: 0.85rem;
margin: 0.4rem 0 0;
}
.tfe-pdf-fallback a {
color: var(--text-primary);
text-decoration: underline;
text-underline-offset: 2px;
}
/* "Not available" and "no files" notices */
.tfe-restricted,
.tfe-no-files {
font-size: 0.95rem;
color: var(--text-secondary);
font-style: italic;
padding: 1rem 0;
margin: 0;
}
/* Responsive */
@media (max-width: 900px) {
.tfe-layout {
grid-template-columns: 1fr;
gap: 2rem;
}
.tfe-title {
font-size: 1.7rem;
}
.tfe-author {
font-size: 1.5rem;
}
}
@media (max-width: 600px) {
.tfe-main {
padding: 1.5rem 1rem 2rem;
}
.tfe-title {
font-size: 1.4rem;
}
.tfe-author {
font-size: 1.25rem;
}
}