Made Image more responsive

This commit is contained in:
reverend 2020-08-02 23:02:06 +02:00
parent 0bb23d6a71
commit aa2a5cf3cc
3 changed files with 8 additions and 26 deletions

View File

@ -1,4 +1,6 @@
.LP-Image{
max-width:100%;
max-height:100%;
object-fit: cover;
width: 100%;
height: auto;
vertical-align: top;
}

View File

@ -1,3 +1,5 @@
{
"context":{
"source": "/images/photo_2020-05-02_18-11-21.jpg"
}
}

View File

@ -1,23 +1 @@
<img src="/images/photo_2020-05-02_18-11-21.jpg" class="LP-Image"/>
<div style="height: 80px;width: 40px; background-color: green;">
<img src="/images/photo_2020-05-02_18-11-21.jpg" class="LP-Image"/>
</div>
<p></p>
<div style="height: 40px;width: 80px;background-color: green;">
<img src="/images/photo_2020-05-02_18-11-21.jpg" class="LP-Image"/>
</div>
<p></p>
<div style="height: 80px;width: 40px;background-color: green;">
<img src="/images/ice-vertical-panorama.jpg" class="LP-Image"/>
</div>
<p></p>
<div style="height: 40px;width: 80px;background-color: green;">
<img src="/images/ice-vertical-panorama.jpg" class="LP-Image"/>
</div>
<img src="{{source}}" class="LP-Image"/>