only pop out targeted elements + proper grid
This commit is contained in:
parent
1726f52ace
commit
73c28ae08f
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue