only pop out targeted elements + proper grid

This commit is contained in:
array-in-a-matrix 2023-11-29 18:15:19 -05:00
parent 1726f52ace
commit 73c28ae08f

View file

@ -677,7 +677,7 @@ body {
text-align: center;
}
:target {
:target:not(main) {
animation: highlight 1s ease;
transform: translateX(20px);
}
@ -692,7 +692,7 @@ body {
}
}
section {
:target:not(main) {
border-left: 40px solid rgba(255, 255, 255, 0);
padding: 0px;
transition: all 0.5s ease;
@ -709,29 +709,33 @@ section {
transform: scale(1.5);
}
main div {
box-sizing: unset;
}
.center {
text-align: center;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
grid-gap: 20px;
display: flex;
flex-wrap: wrap;
justify-content: stretch;
margin: auto;
gap: 4%;
}
.grid-item {
display: grid;
grid-template-rows: max-content 200px 1fr;
margin: 4% 0;
width: 15rem;
height: 22rem;
text-align: center;
}
.grid-item div {
height: 50%;
}
.grid-item img {
display: block;
margin: auto;
width: 100%;
height: auto;
height: 100%;
object-fit: contain;
}
.grid-item-banner {