fix: 💄 resize images instead of container
This commit is contained in:
parent
b8408c6534
commit
3eb0a11cd9
1 changed files with 8 additions and 7 deletions
|
@ -107,16 +107,12 @@ export default {
|
||||||
&__images {
|
&__images {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 50vh;
|
|
||||||
|
|
||||||
@include mq-desktop {
|
|
||||||
height: 80vh;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__viewport {
|
&__viewport {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -147,9 +143,14 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
max-height: 50vh;
|
||||||
|
|
||||||
|
@include mq-desktop {
|
||||||
|
max-height: 80vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue