Files
xamxam/public/assets/css/apropos.css

190 lines
3.6 KiB
CSS

/* ============================================================
À PROPOS PAGE (apropos.php) + LICENCE PAGE (licence.php)
============================================================ */
@import url("./variables.css");
.apropos-body {
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--bg-primary);
}
.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;
}
/* ------------------------------------------------------------------ */
/* Main prose column — Markdown-rendered content */
/* ------------------------------------------------------------------ */
.prose {
font-family: var(--font-body);
font-size: 1.55rem;
line-height: 1.45;
color: var(--text-primary);
font-weight: 400;
margin: 0 0 2rem 0;
}
.prose p {
margin: 0 0 1.2em 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: 1.55rem; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose a {
color: var(--accent-primary);
text-underline-offset: 2px;
}
.prose ul,
.prose ol {
padding-left: 1.5rem;
margin-bottom: 1rem;
}
.prose li {
margin-bottom: .3em;
}
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose code {
font-family: "Courier New", Courier, monospace; /* keep monospace for code */
font-size: 0.9em;
background: var(--bg-tertiary);
padding: .1em .3em;
border-radius: 2px;
}
/* ------------------------------------------------------------------ */
/* Right aside — links, contacts, credits */
/* ------------------------------------------------------------------ */
.apropos-aside {
display: flex;
flex-direction: column;
gap: 2rem;
}
.apropos-section-title {
font-family: var(--font-display);
font-size: 1.55rem;
font-weight: 400;
color: var(--text-primary);
margin: 0 0 0.5rem 0;
line-height: 1.2;
}
.apropos-section-title a {
color: inherit;
text-decoration: underline;
text-underline-offset: 3px;
}
/* Contact entries — <address> elements */
.apropos-aside address {
margin-bottom: 1rem;
font-style: normal; /* override browser italic default for <address> */
}
.apropos-aside address strong {
font-weight: 700;
font-size: 0.95rem;
color: var(--text-primary);
display: block;
margin-bottom: 0.15rem;
}
.apropos-aside address span,
.apropos-aside address a {
font-size: 0.9rem;
color: var(--text-primary);
line-height: 1.4;
display: block;
}
.apropos-aside address a {
text-decoration: underline;
text-underline-offset: 2px;
}
.apropos-credits-text {
font-size: 0.9rem;
color: var(--text-primary);
line-height: 1.6;
}
/* Licences section (legacy) */
.apropos-licences {
margin-top: 2rem;
}
.apropos-licences h2 {
font-family: var(--font-display);
font-size: 1.55rem;
font-weight: 400;
margin: 0 0 0.75rem 0;
}
.apropos-licences p {
font-size: 0.9rem;
color: var(--text-primary);
line-height: 1.6;
margin: 0 0 0.75rem 0;
}
/* Responsive */
@media (max-width: 900px) {
.apropos-layout {
grid-template-columns: 1fr;
gap: 2rem;
}
.prose {
font-size: 1.2rem;
}
.apropos-section-title {
font-size: 1.2rem;
}
}
@media (max-width: 600px) {
.apropos-main {
padding: 1.5rem 1rem 3rem;
}
.prose {
font-size: 1rem;
}
}