Files
xamxam/public/assets/apropos.css
Pontoporeia f20aab5f66 css: deduplicate html/body reset; fix pages-edit.php invalid HTML
Move the repeated 'html, body { margin:0; padding:0; height:100% }' block from
main.css, search.css, tfe.css, and apropos.css into the single canonical location
in common.css. All four public page stylesheets already load common.css first, so
the rule applies identically — no visual change.

Fix pages-edit.php invalid HTML: the EasyMDE <link rel=stylesheet> was placed
inside <body> (after head.php was already closed), which is invalid. Add an
$extraCss hook to templates/admin/head.php so pages can inject <link> tags into
<head> via an array variable, matching the pattern already used by the public
templates/public/head.php. Also add a symmetric $extraJs hook to
templates/admin/footer.php for future use. pages-edit.php now sets
$extraCss = ['easymde.min.css'] before requiring head.php; the EasyMDE JS
<script> and its inline init remain in <body> in the correct load order.
2026-03-28 17:00:57 +01:00

175 lines
3.3 KiB
CSS

/* ============================================================
À PROPOS PAGE (apropos.php)
============================================================ */
.apropos-body {
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--white);
}
.apropos-main {
flex: 1;
overflow-y: auto;
padding: 2.5rem 1.5rem 4rem;
}
/* Two-column layout */
.apropos-layout {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 4rem;
max-width: 1200px;
}
/* Single-column layout — used by licence.php (no right column) */
.apropos-single {
max-width: 720px;
}
/* Left col — main description text in big monospace */
.apropos-left {}
.apropos-description {
font-family: "Courier New", Courier, monospace;
font-size: 1.55rem;
line-height: 1.45;
color: var(--black);
font-weight: 400;
margin: 0 0 2rem 0;
}
.apropos-description p {
margin: 0 0 1.2em 0;
}
/* Right col — links, contacts, credits */
.apropos-right {
display: flex;
flex-direction: column;
gap: 2rem;
}
.apropos-section-title {
font-family: "Courier New", Courier, monospace;
font-size: 1.55rem;
font-weight: 400;
color: var(--black);
margin: 0 0 0.5rem 0;
line-height: 1.2;
}
.apropos-section-title a {
color: inherit;
text-decoration: underline;
text-underline-offset: 3px;
}
.apropos-contact {
margin-bottom: 1rem;
}
.apropos-contact-name {
font-weight: 700;
font-size: 0.95rem;
color: var(--black);
display: block;
margin-bottom: 0.15rem;
}
.apropos-contact-role,
.apropos-contact-email {
font-size: 0.9rem;
color: var(--black);
line-height: 1.4;
display: block;
}
.apropos-credits-text {
font-size: 0.9rem;
color: var(--black);
line-height: 1.6;
}
/* Markdown-rendered page content */
.apropos-page-content p {
margin: 0 0 1.2em 0;
}
.apropos-page-content h1,
.apropos-page-content h2,
.apropos-page-content h3 {
font-family: "Courier New", Courier, monospace;
font-weight: 400;
margin: 1.5em 0 0.5em 0;
}
.apropos-page-content h1 { font-size: 1.55rem; }
.apropos-page-content h2 { font-size: 1.3rem; }
.apropos-page-content h3 { font-size: 1.1rem; }
.apropos-page-content a {
color: var(--purple);
text-underline-offset: 2px;
}
.apropos-page-content ul,
.apropos-page-content ol {
padding-left: 1.5rem;
margin-bottom: 1rem;
}
.apropos-page-content li {
margin-bottom: .3em;
}
.apropos-page-content strong { font-weight: 700; }
.apropos-page-content em { font-style: italic; }
.apropos-page-content code {
font-family: "Courier New", Courier, monospace;
font-size: 0.9em;
background: rgba(0,0,0,.06);
padding: .1em .3em;
border-radius: 2px;
}
/* Licences section */
.apropos-licences {
margin-top: 2rem;
}
.apropos-licences h2 {
font-family: "Courier New", Courier, monospace;
font-size: 1.55rem;
font-weight: 400;
margin: 0 0 0.75rem 0;
}
.apropos-licences p {
font-size: 0.9rem;
color: var(--black);
line-height: 1.6;
margin: 0 0 0.75rem 0;
}
/* Responsive */
@media (max-width: 900px) {
.apropos-layout {
grid-template-columns: 1fr;
gap: 2rem;
}
.apropos-description {
font-size: 1.2rem;
}
.apropos-section-title {
font-size: 1.2rem;
}
}
@media (max-width: 600px) {
.apropos-main {
padding: 1.5rem 1rem 3rem;
}
.apropos-description {
font-size: 1rem;
}
}