mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
351 lines
7.3 KiB
CSS
351 lines
7.3 KiB
CSS
/* ============================================================
|
|
À PROPOS PAGE (apropos.php)
|
|
============================================================ */
|
|
|
|
@import url("./variables.css");
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Page shell */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.apropos-main {
|
|
flex: 1;
|
|
padding: 3rem 2rem 5rem;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Two-column layout: sticky TOC nav | content */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-layout {
|
|
display: grid;
|
|
grid-template-columns: 180px 1fr;
|
|
gap: 4rem;
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
align-items: start;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Left — sticky table of contents */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-toc {
|
|
position: sticky;
|
|
top: 2.5rem;
|
|
}
|
|
|
|
.apropos-toc-label {
|
|
font-family: var(--font-body);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
margin: 0 0 0.6rem 0;
|
|
}
|
|
|
|
.apropos-toc ul {
|
|
list-style: none;
|
|
margin: 0 0 1.5rem 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.apropos-toc ul a {
|
|
font-family: var(--font-body);
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
display: block;
|
|
padding: 0.2rem 0;
|
|
transition: color 0.15s;
|
|
border-left: 2px solid transparent;
|
|
padding-left: 0.6rem;
|
|
}
|
|
|
|
.apropos-toc ul a:hover {
|
|
color: var(--text-primary);
|
|
border-left-color: var(--accent-primary);
|
|
}
|
|
|
|
.apropos-toc-erg {
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-toc-erg a {
|
|
font-size: 0.8rem;
|
|
color: var(--accent-primary);
|
|
text-decoration: none;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.apropos-toc-erg a:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Right — main content area */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.apropos-section {
|
|
padding-bottom: 3.5rem;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
margin-bottom: 3.5rem;
|
|
}
|
|
|
|
.apropos-section:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Section titles */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-section-title {
|
|
font-family: var(--font-display);
|
|
font-size: 2rem;
|
|
font-weight: 400;
|
|
color: var(--text-primary);
|
|
margin: 0 0 1.75rem 0;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Intro prose — Markdown-rendered content */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.prose {
|
|
font-family: var(--font-body);
|
|
font-size: 1.45rem;
|
|
line-height: 1.5;
|
|
color: var(--text-primary);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.prose p {
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
.prose p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.prose h1,
|
|
.prose h2,
|
|
.prose h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 400;
|
|
margin: 1.5em 0 0.5em 0;
|
|
}
|
|
|
|
.prose h1 { font-size: 2rem; }
|
|
.prose h2 { font-size: 1.5rem; }
|
|
.prose h3 { font-size: 1.2rem; }
|
|
|
|
.prose a {
|
|
color: var(--accent-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.prose ul,
|
|
.prose ol {
|
|
padding-left: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.prose li {
|
|
margin-bottom: 0.3em;
|
|
}
|
|
|
|
.prose strong { font-weight: 700; }
|
|
.prose em { font-style: italic; }
|
|
|
|
.prose code {
|
|
font-family: "Courier New", Courier, monospace;
|
|
font-size: 0.88em;
|
|
background: var(--bg-tertiary);
|
|
padding: 0.1em 0.3em;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Contacts grid */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-contacts-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.apropos-contact-card {
|
|
font-style: normal;
|
|
padding: 1.1rem 0;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-contact-card:first-child {
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-contact-card strong {
|
|
display: block;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.apropos-contact-card span {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.apropos-contact-card a {
|
|
font-size: 0.85rem;
|
|
color: var(--accent-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.apropos-contact-card a:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Credits list */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-credits-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.apropos-credit-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.6fr;
|
|
gap: 1rem;
|
|
padding: 1rem 0;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
align-items: baseline;
|
|
}
|
|
|
|
.apropos-credit-row:first-child {
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-credits-list dt {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.apropos-credits-list dd {
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Single-column layout — used by licence.php (no sidebar) */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-single {
|
|
max-width: 720px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Responsive */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
@media (max-width: 900px) {
|
|
.apropos-layout {
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.apropos-toc {
|
|
position: static;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-toc-label {
|
|
margin: 0;
|
|
}
|
|
|
|
.apropos-toc ul {
|
|
flex-direction: row;
|
|
margin: 0;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.apropos-toc ul a {
|
|
border-left: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.apropos-toc-erg {
|
|
border-top: none;
|
|
padding-top: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.prose {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.apropos-section-title {
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.apropos-main {
|
|
padding: 1.5rem 1rem 3rem;
|
|
}
|
|
|
|
.prose {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.apropos-credit-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.25rem;
|
|
}
|
|
}
|