Constant width for img in newsBox
This commit is contained in:
@@ -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%;
|
||||||
|
|||||||
Reference in New Issue
Block a user