Constant width for img in newsBox

This commit is contained in:
marko
2021-05-23 20:00:02 +02:00
parent 8bce33ea51
commit ce37cfb70e

View File

@@ -30,6 +30,10 @@
align-items: center;
}
.newsBody > img{
flex: 1;
}
@media (min-width: 1280px) {
.newsBody{
flex-direction: row;
@@ -43,12 +47,13 @@
}
.newsText{
flex: 3;
margin: 1vw;
}
.newsText a {
float: none;
}
.newsText amp-img,
.newsText amp-img,
.newsText img{
max-width: 100%;
height: auto;
@@ -56,6 +61,7 @@
margin: auto;
box-shadow: 0 1px 2px 0 rgba(0,0,0,.5);
}
.newsText video,
.newsText amp-video{
max-width: 100%;