Add styles for images, screenshots & figures

This commit is contained in:
Foster Hangdaan 2023-08-27 17:01:51 -04:00
parent 4af5593e47
commit fd36da256b
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -51,7 +51,13 @@ a {
}
img {
background-color: var(--color-bg--layer-01);
width: 100%;
border-radius: 5px;
object-fit: contain;
aspect-ratio: 16 / 9;
margin-top: 1rem;
margin-bottom: 1rem;
}
ol, ul {
@ -197,6 +203,12 @@ table {
}
img.icon {
background-color: initial;
border-radius: initial;
object-fit: initial;
object-position: initial;
aspect-ratio: initial;
margin: initial;
width: 1em;
height: 1em;
user-select: none;
@ -221,3 +233,15 @@ .tag {
border: 1px solid var(--color-fg);
border-radius: 3px;
}
figure {
margin-top: 2rem;
margin-bottom: 2rem;
img {
margin: 0;
}
figcaption {
text-align: center;
font-style: italic;
}
}