Files
xamxam/public/assets/apropos.css
Pontoporeia 59ae2151d0 semantic HTML: apropos.php and licence.php (TODO section V & VI)
apropos.php:
- Remove redundant <div class="apropos-left"> wrapper; prose div is now a direct
  grid child
- <div class="apropos-description apropos-page-content"> → <div class="prose">
  (single canonical class for Markdown-rendered content)
- <div class="apropos-right"> → <aside class="apropos-aside"> (supplementary info
  landmark; contacts and credits are secondary to the main description)
- Three bare <div> wrappers inside the aside → <section> (erg link, Contacts, Crédits)
- Three <div class="apropos-contact"> entries → <address> with font-style:normal
  override; <span class="apropos-contact-name"> → <strong>;
  <span class="apropos-contact-email"> → <a href="mailto:…">
  Removes classes: apropos-left, apropos-right, apropos-contact, apropos-contact-name,
  apropos-contact-role, apropos-contact-email, apropos-description, apropos-page-content

licence.php:
- <div class="apropos-description apropos-page-content apropos-single"> →
  <div class="prose apropos-single"> (consistent with apropos.php rename)

apropos.css:
- Rename .apropos-description / .apropos-page-content → .prose; merge all prose
  content rules under the single .prose selector
- Rename .apropos-right → .apropos-aside; remove .apropos-left (empty rule)
- Replace .apropos-contact, .apropos-contact-name etc. with element selectors:
  .apropos-aside address, .apropos-aside address strong,
  .apropos-aside address span, .apropos-aside address a
- Update responsive blocks to reference .prose instead of .apropos-description
2026-03-29 17:01:53 +02:00

188 lines
3.5 KiB
CSS

/* ============================================================
À PROPOS PAGE (apropos.php) + LICENCE PAGE (licence.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;
}
/* ------------------------------------------------------------------ */
/* Main prose column — Markdown-rendered content */
/* ------------------------------------------------------------------ */
.prose {
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;
}
.prose p {
margin: 0 0 1.2em 0;
}
.prose h1,
.prose h2,
.prose h3 {
font-family: "Courier New", Courier, monospace;
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(--purple);
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;
font-size: 0.9em;
background: rgba(0,0,0,.06);
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: "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;
}
/* 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(--black);
display: block;
margin-bottom: 0.15rem;
}
.apropos-aside address span,
.apropos-aside address a {
font-size: 0.9rem;
color: var(--black);
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(--black);
line-height: 1.6;
}
/* Licences section (legacy) */
.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;
}
.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;
}
}