mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
All third-party assets are now self-hosted — zero external requests at runtime.
CSS (assets/css/):
- modern-normalize.min.css (was assets/)
- common.css, admin.css, main.css, search.css, tfe.css, apropos.css (was assets/)
- easymde.min.css 2.20.0 (was cdn.jsdelivr.net)
- font-awesome.min.css 4.7.0 (was maxcdn.bootstrapcdn.com; injected at runtime by EasyMDE)
JS (assets/js/):
- easymde.min.js 2.20.0 (was cdn.jsdelivr.net)
Fonts (assets/fonts/fontawesome/):
- fontawesome-webfont.{eot,woff2,woff,ttf,svg}, FontAwesome.otf 4.7.0
Path fixes:
- common.css @font-face: ./fonts/ -> ../fonts/ (one level deeper)
- font-awesome.min.css @font-face: ../fonts/ -> ../fonts/fontawesome/ (dedicated subdir)
- pages-edit.php: autoDownloadFontAwesome:false added to EasyMDE init to
suppress the runtime CDN injection that was still present inside easymde.min.js
Reference updates (all now absolute /assets/css/* or /assets/js/*):
- templates/public/head.php: modern-normalize + common
- templates/admin/head.php: modern-normalize + admin
- public/admin/login.php: modern-normalize + admin (standalone head)
- public/index.php, tfe.php, search.php, apropos.php, licence.php: extraCss paths
- public/admin/pages-edit.php: extraCss + extraJs (font-awesome, easymde CSS/JS)
Nginx static-file location already covers .css/.js/.woff/.woff2/.ttf/.otf with
30-day cache headers — no nginx config change needed.
206 lines
3.3 KiB
CSS
206 lines
3.3 KiB
CSS
/* ============================================================
|
|
TFE INDIVIDUAL PAGE (tfe.php)
|
|
============================================================ */
|
|
|
|
.tfe-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
background: var(--white);
|
|
}
|
|
|
|
.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: #666;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
/* Title (h1) — primary heading, very large */
|
|
.tfe-title {
|
|
font-size: 2.2rem;
|
|
font-weight: 400;
|
|
color: var(--black);
|
|
margin: 0;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* Author (p) — large but secondary */
|
|
.tfe-author {
|
|
font-size: 1.9rem;
|
|
font-weight: 400;
|
|
color: var(--black);
|
|
margin: 0;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* Metadata description list */
|
|
.tfe-meta-list {
|
|
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> */
|
|
.tfe-meta-list > div {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tfe-meta-list dt {
|
|
color: var(--black);
|
|
font-weight: 400;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tfe-meta-list dd {
|
|
color: var(--black);
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.tfe-meta-list 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(--black);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Right column — aside (supplementary media) */
|
|
.tfe-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Each file display unit */
|
|
.tfe-media-block {
|
|
overflow: hidden;
|
|
margin: 0;
|
|
}
|
|
|
|
.tfe-media-block img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.tfe-media-block embed,
|
|
.tfe-media-block video {
|
|
width: 100%;
|
|
display: block;
|
|
border: none;
|
|
}
|
|
|
|
.tfe-media-block video {
|
|
max-height: 500px;
|
|
}
|
|
|
|
.tfe-media-block embed {
|
|
height: clamp(300px, 80vh, 700px);
|
|
}
|
|
|
|
/* figcaption under media */
|
|
.tfe-file-caption {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
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(--black);
|
|
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-muted);
|
|
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;
|
|
}
|
|
}
|