From 6f571412dc8bde579ce680ab2eead145adfd91d1 Mon Sep 17 00:00:00 2001 From: Roxane Date: Sun, 7 Apr 2024 22:20:40 +0200 Subject: [PATCH] repair display --- css/style.css | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/css/style.css b/css/style.css index 1a2fd0e..c0c9d3d 100644 --- a/css/style.css +++ b/css/style.css @@ -147,19 +147,18 @@ nav ul li a { color: white; } -.sec:not(:target) { - display: none; -} - -#a-propos { +#a-propos:target, +#a-propos:not(:target) ~ section:not(#a-propos) { display: block; } -#mesProjets:target { - display: block; +#a-propos:not(:target), +#a-propos:target ~ section:not(#a-propos) { + display: none; } -#cv:target { - display: block; + +#a-propos:target ~ #mesProjets:target ~ #cv:target { + display: none; } section h2 {