section scales, not anchor

This commit is contained in:
2023-07-22 12:58:29 +02:00
parent 2f5a71f8e3
commit 9c1002bc5e
4 changed files with 1 additions and 542 deletions

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>