section scales, not anchor

This commit is contained in:
2023-07-22 12:58:29 +02:00
parent 3b950c7144
commit 20e3c3ea33
4 changed files with 1 additions and 542 deletions
+1 -4
View File
@@ -55,15 +55,12 @@ a{
color: var(--nord0);
transition: 200ms;
}
a:hover{
section:hover{
scale: 1.02;
}
section:has(a:hover){
box-shadow: 1em 1em 1em 1em rgba(0,0,0, 0.3);
}
section:has(a:hover) + section{
box-shadow: 1em 1em 1em 1em rgba(0,0,0, 0.3);
}
</style>
<section>