Updated styling and formatting

This commit is contained in:
Sebin Nyshkim 2019-11-08 10:02:45 +01:00
parent 833d4e5402
commit 88a63a4293

View file

@ -9,10 +9,16 @@
export default { export default {
name: "rich-figure", name: "rich-figure",
props: { props: {
imgSrc: { type: String, required: true }, imgSrc: {
type: String,
required: true
},
caption: {
type: String,
required: true
},
imgPos: String, imgPos: String,
imgW: String, imgW: String
caption: { type: String, required: true }
} }
}; };
</script> </script>
@ -37,6 +43,7 @@ figure {
} }
img { img {
display: block;
width: 100%; width: 100%;
} }
} }
@ -54,7 +61,7 @@ figure {
&.right { &.right {
float: right; float: right;
margin: 0 0 1em 1em; margin: 0 0 0.375em 0.75em;
} }
} }
} }