Initial commit: spec + squelette site + données causes/facteurs
Site perso comparant causes de décès réelles (CépiDc/CIM-10) et positions des partis sur leurs facteurs de risque, en vue des présidentielles 2027. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BfMPw3qHuYEtf1msg2DhfE
This commit is contained in:
commit
e19e3aeb96
10 changed files with 638 additions and 0 deletions
110
style.css
Normal file
110
style.css
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
@import url('../style.css');
|
||||
|
||||
body {
|
||||
max-width: var(--max-w);
|
||||
margin-inline: auto;
|
||||
padding: var(--pad-x);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: var(--f-display);
|
||||
color: var(--c-green);
|
||||
font-size: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
p.intro {
|
||||
color: var(--c-text-sec);
|
||||
max-width: 640px;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: var(--f-display);
|
||||
color: var(--c-green);
|
||||
font-size: 1.375rem;
|
||||
margin: 2.5rem 0 1rem;
|
||||
}
|
||||
|
||||
#causes-tree > details {
|
||||
border: 1px solid var(--c-green-mid);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 0.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
|
||||
details details {
|
||||
border-left: 2px solid var(--c-green-mid);
|
||||
margin: 0.5rem 0 0.5rem 0.5rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
color: var(--c-green);
|
||||
}
|
||||
|
||||
details table {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border: 1px solid var(--c-green-mid);
|
||||
padding: 0.6rem 0.8rem;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--c-green-light);
|
||||
color: var(--c-green);
|
||||
}
|
||||
|
||||
td.pos-cell {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
td.pos-cell:hover {
|
||||
background: var(--c-green-light);
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-block;
|
||||
border-radius: 999px;
|
||||
padding: 0.15rem 0.6rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.pill-pour { background: #2e7d32; }
|
||||
.pill-divise { background: #d99a00; }
|
||||
.pill-contre { background: #c62828; }
|
||||
|
||||
dialog {
|
||||
max-width: 520px;
|
||||
border: 1px solid var(--c-green-mid);
|
||||
border-radius: 6px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
dialog h3 {
|
||||
color: var(--c-green);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
dialog a {
|
||||
display: inline-block;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
dialog button {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue