Updated styling

This commit is contained in:
Sebin Nyshkim 2019-11-04 00:27:52 +01:00
parent 2c5eda97e3
commit 807b877035

View file

@ -1,11 +1,11 @@
<template>
<div class="image-paragraph" :class="imgPos">
<div class="image">
<img :src="imgSrc" alt="Image" />
</div>
<div class="text">
<slot></slot>
</div>
<div class="image">
<img :src="imgSrc" alt="Image" />
</div>
<div class="text">
<slot></slot>
</div>
</div>
</template>
@ -55,12 +55,12 @@ export default {
flex: 0 1 100%;
@media (min-width: 35em) {
flex: 0 1 20em;
flex: 1;
}
}
.text {
flex: 0 1 100%;
flex: 1;
}
}
@ -93,8 +93,12 @@ export default {
}
}
img {
max-width: 100%;
.image {
text-align: center;
img {
max-width: 100%;
}
}
}
</style>