news responsive
This commit is contained in:
parent
a954ba6023
commit
63b8efa1e0
|
|
@ -14,14 +14,15 @@
|
|||
gap: 1.6rem;
|
||||
}
|
||||
|
||||
@media (max-width: 953px) {
|
||||
@media (max-width: 1200px) {
|
||||
.news-post-wrapper {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 630px) {
|
||||
@media (max-width: 768px) {
|
||||
.news-post-wrapper {
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
justify-items: center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,3 +3,16 @@
|
|||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 4rem;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.news-page-wrapper {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.news-page-wrapper {
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
justify-items: center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
.news-post-img {
|
||||
max-height: 22.1rem;
|
||||
min-height: 22.1rem;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
|
|||
Loading…
Reference in New Issue