Handle galleries view in news in mobile

This commit is contained in:
Christian Wolf 2024-01-07 11:53:26 +01:00
parent 08513e79d3
commit b3c46080af

View File

@ -373,6 +373,10 @@ h1 {
padding: 10px; padding: 10px;
flex: 30% 0 0; flex: 30% 0 0;
// height: 30%; // height: 30%;
img {
max-width: 100%;
}
} }
} }
} }
@ -572,18 +576,22 @@ h1 {
align-items: center; align-items: center;
justify-items: center; justify-items: center;
&.cols-2 { grid-template-columns: 1fr;
grid-template-columns: 1fr 1fr;
} @include media-large() {
&.cols-3 { &.cols-2 {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
&.cols-4 { &.cols-3 {
grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
}
&.cols-4 {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
} }
.tsc-gallery-img { .tsc-gallery-img {
margin: 20px; margin: 5px 0;
} }
} }