80 lines
1.4 KiB
CSS
80 lines
1.4 KiB
CSS
.grid {
|
|
position: absolute;
|
|
display: grid;
|
|
gap: 3.5rem;
|
|
grid-template-columns: repeat(4, 20rem);
|
|
grid-template-rows: 18rem 18rem;
|
|
justify-self: center;
|
|
justify-content: center;
|
|
margin-top: 5rem;
|
|
}
|
|
|
|
.grid-item {
|
|
background-color: #235573;
|
|
padding: 1rem;
|
|
border-radius: .4rem;
|
|
}
|
|
|
|
|
|
#div-content {
|
|
height: 40rem;
|
|
position: relative;
|
|
background-color: #1B4056;
|
|
z-index: 2;
|
|
padding-bottom: 10rem;
|
|
}
|
|
|
|
@media screen and (max-width: 1280px) {
|
|
.grid {
|
|
grid-template-columns: repeat(3, 20rem);
|
|
grid-template-rows: repeat(3, 18rem);
|
|
gap: 2.5rem;
|
|
}
|
|
|
|
#div-content {
|
|
height: 64rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
.grid {
|
|
grid-template-columns: repeat(2, 20rem);
|
|
grid-template-rows: repeat(4, 18rem);
|
|
}
|
|
|
|
#div-content {
|
|
height: 84rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.grid {
|
|
position: relative;
|
|
grid-template-columns: minmax(0, 90%);
|
|
grid-template-rows: auto;
|
|
gap: 1.5rem;
|
|
margin-top: 2rem;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.grid-item {
|
|
min-height: 8rem;
|
|
}
|
|
|
|
#div-content {
|
|
height: auto;
|
|
min-height: 30rem;
|
|
padding-bottom: 5rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
.grid {
|
|
gap: 1rem;
|
|
}
|
|
|
|
#div-content {
|
|
padding-bottom: 4rem;
|
|
}
|
|
}
|