Improve image markup

This commit is contained in:
Vri 🌈 2023-01-16 15:28:03 +01:00
parent 7c1f5f900f
commit 52f3cfc3c2
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 12 additions and 6 deletions

View file

@ -1,10 +1,16 @@
.md-img {
margin: 3em;
&.with-text { margin-bottom: .5em; }
display: flex;
flex-direction: column;
margin: 3rem auto;
img {
border-radius: 1rem;
margin: 0 auto;
box-shadow: rgba(0, 0, 0, .25) 0 0 .5rem;
}
&.with-text img { margin-bottom: .5rem; }
&-text {
font-size: .8em;
font-weight: 300;
margin: 0 0 3em 0;
text-align: center;
}
}