feat(connaissances): la fiche en trois étages (B19b M1)
Retours de Jules du 27/10, n° 1 et 3. - ① Le titre, puis un en-tête de propriétés compact (comme Obsidian) : nature, échelles, porteur, couche, date, statut, adresse, sources, une ligne par type de relation avec sa provenance (bordure seule), registre ; --fs-sm, atténué, grille dl. - ② Le texte : la définition dans nos mots, en corps principal, dans un bloc cf__texte qui accueillera plusieurs paragraphes (option B) sans retouche. - ③ Crédit, licence, dettes non créditées et vacances en bas, --fs-xs, atténués, dans un <details> replié par défaut. - Lois /atis-design : plus de petit titre en capitales (la nature entre dans l'en-tête), plus de points médians (parenthèses), plus de flèche ↗ sur les liens sortants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWGVn1RZVsSd6YYS1o7CHk
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
219c3b3c59
commit
80bd4a6d03
+195
-110
@@ -5,8 +5,13 @@
|
||||
fiche de l'objet dans #detail. URL partageable : ?vue=mixte&fiche=cpt:holoptisme.
|
||||
|
||||
Données : la fixture de B18, importée au build (aucune route serveur : /api/connaissances
|
||||
est B20). Seuls les objets publiés sont rendus. Rien n'est lu du vault, rien n'est copié de
|
||||
Holosapiens au-delà des titres, URL et dates ; la dette de forme se dit dans le bandeau.
|
||||
est B20). Seuls les objets publiés ont un nœud et une fiche ; la fiche nomme aussi ses
|
||||
sources à creuser et ses relations vers un objet non publié. Rien n'est lu du vault, rien
|
||||
n'est copié de Holosapiens au-delà des titres, URL et dates ; la dette de forme se dit dans
|
||||
le bandeau.
|
||||
|
||||
B19b (retours de Jules du 27/10) : graphe par défaut, sans Précédente / Suivante ; la fiche
|
||||
en trois étages (propriétés, texte, fond replié) ; la logique dans utils/connaissances/.
|
||||
-->
|
||||
<template>
|
||||
<main class="cn">
|
||||
@@ -45,103 +50,135 @@
|
||||
</template>
|
||||
|
||||
<template #detail="{ fiche, filtrer }">
|
||||
<!--
|
||||
Trois étages (retours de Jules du 27/10, n° 1 et 3) : ① le titre et l'en-tête de
|
||||
propriétés, dense et atténué, comme les propriétés d'Obsidian ; ② le texte, l'étage
|
||||
qu'on lit ; ③ crédit, licence, dettes et vacances, repliés en bas.
|
||||
-->
|
||||
<article v-if="objetOuvert" class="cf">
|
||||
<p class="cf__nature">{{ LIBELLES_NATURE[objetOuvert.nature] }}</p>
|
||||
<h2 class="cf__titre">{{ objetOuvert.nom_canonique }}</h2>
|
||||
|
||||
<ChipGroup v-if="fiche.etiquettes?.echelle?.length" :aria-label="`Échelles de ${fiche.nom}`" class="cf__chips">
|
||||
<Chip
|
||||
v-for="e in fiche.etiquettes.echelle"
|
||||
:key="e"
|
||||
:label="e"
|
||||
variant="echelle"
|
||||
:active="(vf.etat.filtres.echelle ?? []).includes(e)"
|
||||
:aria-label="`Filtrer par échelle : ${e}`"
|
||||
@toggle="filtrer('echelle', e)"
|
||||
/>
|
||||
</ChipGroup>
|
||||
<!-- ① Propriétés : une ligne par propriété, une ligne par type de relation -->
|
||||
<dl class="cf__props">
|
||||
<dt>Nature</dt>
|
||||
<dd>{{ LIBELLES_NATURE[objetOuvert.nature] }}</dd>
|
||||
|
||||
<!-- Concept : la définition, dans nos mots -->
|
||||
<template v-if="objetOuvert.nature === 'concept'">
|
||||
<p class="cf__definition">{{ objetOuvert.definition_courte }}</p>
|
||||
<p class="cf__mention">Définition écrite par AEP, dans ses mots.</p>
|
||||
</template>
|
||||
<template v-if="fiche.etiquettes?.echelle?.length">
|
||||
<dt class="cf__k cf__k--chips">Échelles</dt>
|
||||
<dd>
|
||||
<ChipGroup :aria-label="`Échelles de ${fiche.nom}`" class="cf__chips">
|
||||
<Chip
|
||||
v-for="e in fiche.etiquettes.echelle"
|
||||
:key="e"
|
||||
:label="e"
|
||||
variant="echelle"
|
||||
:active="(vf.etat.filtres.echelle ?? []).includes(e)"
|
||||
:aria-label="`Filtrer par échelle : ${e}`"
|
||||
@toggle="filtrer('echelle', e)"
|
||||
/>
|
||||
</ChipGroup>
|
||||
</dd>
|
||||
</template>
|
||||
|
||||
<!-- Objet : date de l'original, lien sortant -->
|
||||
<dl v-else class="cf__faits">
|
||||
<template v-if="objetOuvert.date_original">
|
||||
<template v-if="porteursOuverts.length">
|
||||
<dt class="cf__k cf__k--cible">{{ porteursOuverts.length > 1 ? 'Porteurs' : 'Porteur' }}</dt>
|
||||
<dd>
|
||||
<ul class="cf__cibles">
|
||||
<li v-for="p in porteursOuverts" :key="p.id">
|
||||
<button type="button" class="cf__vers" @click="vf.ouvrirFiche(p.id)">{{ p.nom_canonique }}</button>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</template>
|
||||
|
||||
<template v-if="objetOuvert.couche">
|
||||
<dt>Couche</dt>
|
||||
<dd>{{ LIBELLES_COUCHE[objetOuvert.couche] }}</dd>
|
||||
</template>
|
||||
|
||||
<!-- Objet (texte, organisation, outil) : date de l'original, statut, adresse -->
|
||||
<template v-if="objetOuvert.nature !== 'concept' && objetOuvert.date_original">
|
||||
<dt>{{ objetOuvert.date_original_nature === 'vue' ? 'En ligne au' : 'Date de l’original' }}</dt>
|
||||
<dd>
|
||||
{{ dateFr(objetOuvert.date_original) }}
|
||||
<span v-if="objetOuvert.date_original_nature === 'vue'" class="cf__discret">(aucune date affichée)</span>
|
||||
<span v-if="objetOuvert.date_original_nature === 'vue'">(aucune date affichée)</span>
|
||||
</dd>
|
||||
</template>
|
||||
<template v-if="objetOuvert.statut">
|
||||
<template v-if="objetOuvert.nature !== 'concept' && objetOuvert.statut">
|
||||
<dt>Statut</dt>
|
||||
<dd>{{ objetOuvert.statut }}</dd>
|
||||
</template>
|
||||
<template v-if="objetOuvert.url_canonique">
|
||||
<dt>Adresse</dt>
|
||||
<template v-if="objetOuvert.nature !== 'concept' && objetOuvert.url_canonique">
|
||||
<dt class="cf__k cf__k--cible">Adresse</dt>
|
||||
<dd>
|
||||
<a :href="String(objetOuvert.url_canonique)" target="_blank" rel="noopener noreferrer" class="cf__lien">{{ urlCourte(String(objetOuvert.url_canonique)) }}<span aria-hidden="true"> ↗</span><span class="sr-only"> (nouvel onglet)</span></a>
|
||||
<a :href="objetOuvert.url_canonique" target="_blank" rel="noopener noreferrer" class="cf__lien cf__lien--cible">{{ urlCourte(objetOuvert.url_canonique) }}<span class="sr-only"> (nouvel onglet)</span></a>
|
||||
</dd>
|
||||
</template>
|
||||
|
||||
<!-- Sources (extrait_de), publiées ou non : une source à creuser se dit -->
|
||||
<template v-if="sourcesOuvertes.length">
|
||||
<dt class="cf__k cf__k--cible">{{ sourcesOuvertes.length > 1 ? 'Sources' : 'Source' }}</dt>
|
||||
<dd>
|
||||
<ul class="cf__cibles cf__cibles--colonne">
|
||||
<li v-for="s in sourcesOuvertes" :key="s.id" class="cf__source">
|
||||
<button v-if="estRendu(s)" type="button" class="cf__vers" @click="vf.ouvrirFiche(s.id)">{{ s.nom_canonique }}</button>
|
||||
<span v-else class="cf__cible-texte">{{ s.nom_canonique }}</span>
|
||||
<span class="cf__cible-texte">({{ dateSource(s) }}<template v-if="!estRendu(s)">, à creuser</template>)</span>
|
||||
<a v-if="s.url_canonique" :href="s.url_canonique" target="_blank" rel="noopener noreferrer" class="cf__lien cf__lien--cible">
|
||||
lien<span class="sr-only"> vers {{ s.nom_canonique }} (nouvel onglet)</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</template>
|
||||
|
||||
<!-- Relations typées : le libellé du type, puis les cibles et leur provenance -->
|
||||
<template v-for="g in relationsOuvertes" :key="g.libelle">
|
||||
<dt class="cf__k cf__k--cible">{{ libelleLigne(g.libelle) }}</dt>
|
||||
<dd>
|
||||
<ul class="cf__cibles">
|
||||
<li v-for="r in g.relations" :key="r.cle" class="cf__relation">
|
||||
<button v-if="estRendu(r.cible)" type="button" class="cf__vers" @click="vf.ouvrirFiche(r.cible.id)">{{ r.cible.nom_canonique }}</button>
|
||||
<span v-else class="cf__cible-texte">{{ r.cible.nom_canonique }} (non publié)</span>
|
||||
<span class="cf__provenance" :class="`cf__provenance--${r.provenance}`">{{ r.provenance === 'source' ? 'énoncé par la source' : 'posé par AEP' }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</template>
|
||||
|
||||
<template v-if="objetOuvert.registre_id">
|
||||
<dt>Registre</dt>
|
||||
<dd>Renvoie au registre des œuvres : <code>{{ objetOuvert.registre_id }}</code></dd>
|
||||
</template>
|
||||
</dl>
|
||||
|
||||
<!-- Sources d'un concept -->
|
||||
<section v-if="sourcesOuvertes.length" class="cf__bloc" :aria-labelledby="`cf-sources-${idDom(fiche.id)}`">
|
||||
<h3 :id="`cf-sources-${idDom(fiche.id)}`" class="cf__soustitre">Sources</h3>
|
||||
<ul class="cf__liste">
|
||||
<li v-for="s in sourcesOuvertes" :key="s.id" class="cf__source">
|
||||
<button v-if="estRendu(s)" type="button" class="cf__vers" @click="vf.ouvrirFiche(s.id)">{{ s.nom_canonique }}</button>
|
||||
<span v-else>{{ s.nom_canonique }}</span>
|
||||
<span class="cf__discret">
|
||||
· {{ s.date_original ? (s.date_original_nature === 'vue' ? `en ligne au ${dateFr(s.date_original)}` : dateFr(s.date_original)) : 'date à relever' }}
|
||||
<template v-if="!estRendu(s)"> · à creuser</template>
|
||||
</span>
|
||||
<a v-if="s.url_canonique" :href="String(s.url_canonique)" target="_blank" rel="noopener noreferrer" class="cf__lien cf__lien--ext">
|
||||
lien<span aria-hidden="true"> ↗</span><span class="sr-only"> vers {{ s.nom_canonique }} (nouvel onglet)</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ② Le texte, dans nos mots : un bloc qui accueillera plusieurs paragraphes (option B) -->
|
||||
<div v-if="objetOuvert.nature === 'concept'" class="cf__texte">
|
||||
<p>{{ objetOuvert.definition_courte }}</p>
|
||||
</div>
|
||||
<p v-if="objetOuvert.nature === 'concept'" class="cf__mention">Définition écrite par AEP, dans ses mots.</p>
|
||||
|
||||
<!-- Relations typées, avec leur provenance -->
|
||||
<section v-if="relationsOuvertes.length" class="cf__bloc" :aria-labelledby="`cf-rel-${idDom(fiche.id)}`">
|
||||
<h3 :id="`cf-rel-${idDom(fiche.id)}`" class="cf__soustitre">Relations</h3>
|
||||
<ul class="cf__liste">
|
||||
<li v-for="r in relationsOuvertes" :key="r.cle" class="cf__relation">
|
||||
<span class="cf__type">{{ r.libelle }}</span>
|
||||
<button v-if="r.cible && estRendu(r.cible)" type="button" class="cf__vers" @click="vf.ouvrirFiche(r.cible.id)">{{ r.cible.nom_canonique }}</button>
|
||||
<span v-else-if="r.cible">{{ r.cible.nom_canonique }} <span class="cf__discret">(non publié)</span></span>
|
||||
<span class="cf__provenance" :class="`cf__provenance--${r.provenance}`">{{ r.provenance === 'source' ? 'énoncé par la source' : 'posé par AEP' }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<p v-if="objetOuvert.registre_id" class="cf__registre">
|
||||
Renvoie au registre des œuvres : <code>{{ objetOuvert.registre_id }}</code>
|
||||
</p>
|
||||
|
||||
<!-- Crédit, licence, dettes -->
|
||||
<section class="cf__bloc cf__credit" :aria-labelledby="`cf-credit-${idDom(fiche.id)}`">
|
||||
<h3 :id="`cf-credit-${idDom(fiche.id)}`" class="cf__soustitre">Crédit et licence</h3>
|
||||
<p v-if="objetOuvert.credit">Crédit : {{ objetOuvert.credit }}</p>
|
||||
<p v-if="objetOuvert.nature === 'concept'">Cette fiche : {{ jeu.licence_couche }}, couche de connaissances AEP.</p>
|
||||
<p v-else-if="objetOuvert.licence">Licence de l’original : {{ objetOuvert.licence }}.</p>
|
||||
<template v-if="dettesOuvertes.length">
|
||||
<p class="cf__dettes-titre">Dettes non créditées par la source :</p>
|
||||
<ul class="cf__dettes">
|
||||
<li v-for="d in dettesOuvertes" :key="d">{{ d }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<template v-if="vacancesOuvertes.length">
|
||||
<p class="cf__dettes-titre">Ce qu’on n’a pas trouvé :</p>
|
||||
<ul class="cf__dettes">
|
||||
<li v-for="v in vacancesOuvertes" :key="v.enonce">{{ v.enonce }} <span class="cf__discret">(constaté le {{ dateFr(v.date) }})</span></li>
|
||||
</ul>
|
||||
</template>
|
||||
</section>
|
||||
<!-- ③ Le fond : crédit, licence, dettes non créditées, vacances, repliés par défaut -->
|
||||
<details v-if="aUnFond" class="cf__fond">
|
||||
<summary class="cf__fond-titre">Crédit, licence et dettes</summary>
|
||||
<div class="cf__fond-corps">
|
||||
<p v-if="objetOuvert.credit">Crédit : {{ objetOuvert.credit }}</p>
|
||||
<p v-if="objetOuvert.nature === 'concept'">Cette fiche : {{ jeu.licence_couche }}, couche de connaissances AEP.</p>
|
||||
<p v-else-if="objetOuvert.licence">Licence de l’original : {{ objetOuvert.licence }}.</p>
|
||||
<template v-if="dettesOuvertes.length">
|
||||
<p class="cf__fond-sous">Dettes non créditées par la source :</p>
|
||||
<ul class="cf__fond-liste">
|
||||
<li v-for="d in dettesOuvertes" :key="d">{{ d }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<template v-if="vacancesOuvertes.length">
|
||||
<p class="cf__fond-sous">Ce qu’on n’a pas trouvé :</p>
|
||||
<ul class="cf__fond-liste">
|
||||
<li v-for="v in vacancesOuvertes" :key="v.enonce">{{ v.enonce }} (constaté le {{ dateFr(v.date) }})</li>
|
||||
</ul>
|
||||
</template>
|
||||
</div>
|
||||
</details>
|
||||
</article>
|
||||
</template>
|
||||
</VueFiches>
|
||||
@@ -153,7 +190,7 @@
|
||||
import jeuBrut from '~/data/connaissances/fixture-lot2.json'
|
||||
import type { ConfigVueFiches } from '~/utils/vueFiches'
|
||||
import type { JeuConnaissances, ObjetConnaissance } from '~/utils/connaissances/valider'
|
||||
import { lecture, estRendu, sourcesDe, relationsDe, dettesDe, vacancesDe } from '~/utils/connaissances/lire'
|
||||
import { lecture, estRendu, sourcesDe, porteursDe, relationsParLibelle, dettesDe, vacancesDe } from '~/utils/connaissances/lire'
|
||||
import { NATURES, ECHELLES, COUCHES, LIBELLES_NATURE, LIBELLES_COUCHE, type Nature } from '~/utils/connaissances/vocabulaire'
|
||||
import { fichesConnaissances, grapheConnaissances, valeurPorteur } from '~/composables/useFicheAdapter'
|
||||
|
||||
@@ -197,9 +234,28 @@ const vf = useVueFiches(fiches, config, { etatDefaut: 'carte' })
|
||||
// ── Détail : l'objet de la fiche ouverte, typé, lu une fois par fiche (utils/connaissances/lire.ts) ──
|
||||
const objetOuvert = computed<ObjetConnaissance | undefined>(() => (vf.ficheOuverte ? lu.rendus.get(String(vf.ficheOuverte.id)) : undefined))
|
||||
const sourcesOuvertes = computed(() => (objetOuvert.value ? sourcesDe(lu, objetOuvert.value.id) : []))
|
||||
const relationsOuvertes = computed(() => (objetOuvert.value ? relationsDe(lu, objetOuvert.value.id) : []))
|
||||
/** Une ligne de l'en-tête par type de relation (dans un sens), les cibles à la suite. */
|
||||
const relationsOuvertes = computed(() => (objetOuvert.value ? relationsParLibelle(lu, objetOuvert.value.id) : []))
|
||||
/** Porteurs, sauf l'objet lui-même (une organisation se porte elle-même : rien à dire). */
|
||||
const porteursOuverts = computed(() => {
|
||||
const o = objetOuvert.value
|
||||
return o ? porteursDe(lu, o).filter((p) => p.id !== o.id) : []
|
||||
})
|
||||
const dettesOuvertes = computed(() => dettesDe(objetOuvert.value))
|
||||
const vacancesOuvertes = computed(() => vacancesDe(objetOuvert.value))
|
||||
/** L'étage du fond existe dès qu'il a une ligne à dire. */
|
||||
const aUnFond = computed(() => {
|
||||
const o = objetOuvert.value
|
||||
return !!o && (!!o.credit || o.nature === 'concept' || !!o.licence || dettesOuvertes.value.length > 0 || vacancesOuvertes.value.length > 0)
|
||||
})
|
||||
/** Clé d'une ligne de relation : « condition de » → « Condition de » ; « homonyme de, fusion refusée : » perd ses deux-points. */
|
||||
const libelleLigne = (l: string) => {
|
||||
const s = l.replace(/\s*:$/, '')
|
||||
return s.charAt(0).toUpperCase() + s.slice(1)
|
||||
}
|
||||
/** Date d'une source, entre parenthèses dans l'en-tête (jamais de point médian). */
|
||||
const dateSource = (s: ObjetConnaissance) =>
|
||||
s.date_original ? (s.date_original_nature === 'vue' ? `en ligne au ${dateFr(s.date_original)}` : dateFr(s.date_original)) : 'date à relever'
|
||||
|
||||
const MOIS = ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre']
|
||||
function dateFr(d: unknown): string {
|
||||
@@ -255,29 +311,44 @@ useSeoMeta({
|
||||
.cn-vue { flex: 1 1 0; min-height: 0; min-width: 0; }
|
||||
|
||||
|
||||
/* ── Fiche d'un objet ── */
|
||||
/* ── Fiche d'un objet : trois étages ── */
|
||||
.cf { min-width: 0; overflow-wrap: anywhere; }
|
||||
.cf p { margin: 0; }
|
||||
.cf__nature {
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: var(--fw-semibold);
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: color-mix(in srgb, var(--text) 78%, transparent);
|
||||
/* Texte atténué : DESIGN-SYSTEM §Texte atténué (78 %, pas --text-muted ni opacity) */
|
||||
.cf { --cf-attenue: color-mix(in srgb, var(--text) 78%, transparent); }
|
||||
.cf__titre { margin: 0 0 var(--space-xs); font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
|
||||
|
||||
/* ① En-tête de propriétés : dense, atténué, une grille clé / valeur */
|
||||
.cf__props {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
|
||||
gap: 0 var(--space-sm);
|
||||
margin: 0 0 var(--space-md);
|
||||
padding-bottom: var(--space-xs);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.45;
|
||||
color: var(--cf-attenue);
|
||||
}
|
||||
.cf__titre { margin: 2px 0 var(--space-xs); font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.25; }
|
||||
.cf__chips { margin-bottom: var(--space-sm); }
|
||||
.cf__definition { font-size: var(--fs-base); line-height: 1.55; }
|
||||
.cf__mention { margin-top: 2px !important; font-size: var(--fs-xs); color: color-mix(in srgb, var(--text) 78%, transparent); }
|
||||
.cf__faits { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--space-sm); margin: 0; font-size: var(--fs-sm); }
|
||||
.cf__faits dt { font-weight: var(--fw-semibold); }
|
||||
.cf__faits dd { margin: 0; min-width: 0; }
|
||||
.cf__bloc { margin-top: var(--space-md); }
|
||||
.cf__soustitre { margin: 0 0 var(--space-2xs); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
|
||||
.cf__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--fs-sm); line-height: 1.45; }
|
||||
.cf__props dt,
|
||||
.cf__props dd { margin: 0; min-width: 0; padding: var(--space-2xs) 0; }
|
||||
.cf__props dt { max-width: 9rem; font-weight: var(--fw-medium); }
|
||||
.cf__props dd { color: var(--text); }
|
||||
/* Une clé s'aligne sur la première cible de sa ligne (bouton de 44 px, chip de 32 px) */
|
||||
.cf__k { display: flex; align-items: center; align-self: start; }
|
||||
.cf__k--cible { min-height: calc(44px + 2 * var(--space-2xs)); padding-block: 0 !important; }
|
||||
.cf__k--chips { min-height: calc(32px + 2 * var(--space-2xs)); }
|
||||
.cf__props dd:has(> .cf__cibles) { padding-block: 0; }
|
||||
.cf__props dd:has(> .cf__chips) { padding-block: var(--space-2xs); }
|
||||
.cf__cibles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-sm); }
|
||||
.cf__cibles--colonne { flex-direction: column; align-items: flex-start; }
|
||||
.cf__cibles > li { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2xs); min-height: 44px; }
|
||||
.cf__cible-texte { color: var(--cf-attenue); }
|
||||
.cf__vers {
|
||||
padding: var(--space-2xs) 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 44px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--text);
|
||||
@@ -289,25 +360,39 @@ useSeoMeta({
|
||||
cursor: pointer;
|
||||
}
|
||||
.cf__lien { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
|
||||
.cf__lien--ext { margin-left: 4px; }
|
||||
.cf__lien--cible { display: inline-flex; align-items: center; min-height: 44px; }
|
||||
.cf__vers:focus-visible,
|
||||
.cf__lien:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
|
||||
.cf__discret { color: color-mix(in srgb, var(--text) 78%, transparent); }
|
||||
.cf__type { margin-right: 4px; }
|
||||
/* Provenance d'une relation : bordure seule, pleine = la source l'énonce, tirets = AEP la pose */
|
||||
.cf__provenance {
|
||||
display: inline-block;
|
||||
margin-left: 6px;
|
||||
padding: 0 6px;
|
||||
padding: 0 var(--space-2xs);
|
||||
border-radius: var(--radius-full);
|
||||
border: 1px solid var(--border-strong, var(--border));
|
||||
font-size: var(--fs-xs);
|
||||
color: color-mix(in srgb, var(--text) 82%, transparent);
|
||||
line-height: 1.4;
|
||||
color: var(--cf-attenue);
|
||||
}
|
||||
.cf__provenance--curation { border-style: dashed; }
|
||||
.cf__registre { margin-top: var(--space-sm) !important; font-size: var(--fs-sm); }
|
||||
.cf__credit { font-size: var(--fs-sm); line-height: 1.5; }
|
||||
.cf__dettes-titre { margin-top: var(--space-xs) !important; font-weight: var(--fw-semibold); }
|
||||
.cf__dettes { margin: 2px 0 0; padding-left: 1.1rem; }
|
||||
.cf__props code { font-size: var(--fs-xs); }
|
||||
|
||||
/* ② Le texte : corps principal, l'étage qu'on lit ; plusieurs paragraphes demain */
|
||||
.cf__texte { max-width: 65ch; font-size: var(--fs-base); line-height: var(--lh-base); }
|
||||
.cf .cf__texte > * + * { margin-top: var(--space-sm); }
|
||||
.cf__mention { margin-top: var(--space-2xs) !important; font-size: var(--fs-xs); color: var(--cf-attenue); }
|
||||
|
||||
/* ③ Le fond : petit, atténué, replié */
|
||||
.cf__fond { margin-top: var(--space-lg); padding-top: var(--space-xs); border-top: 1px solid var(--border); font-size: var(--fs-xs); line-height: 1.5; color: var(--cf-attenue); }
|
||||
.cf__fond-titre {
|
||||
padding-block: calc((44px - 1.5em) / 2);
|
||||
font-weight: var(--fw-medium);
|
||||
cursor: pointer;
|
||||
list-style-position: inside;
|
||||
}
|
||||
.cf__fond-titre:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
|
||||
.cf__fond-corps { display: flex; flex-direction: column; gap: var(--space-2xs); padding-bottom: var(--space-xs); }
|
||||
.cf__fond-sous { margin-top: var(--space-xs) !important; font-weight: var(--fw-semibold); }
|
||||
.cf__fond-liste { margin: 0; padding-left: var(--space-md); }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.cn-tete { padding: var(--space-2xs) var(--space-sm); }
|
||||
|
||||
Reference in New Issue
Block a user