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