Add styles for images, screenshots & figures
This commit is contained in:
parent
4af5593e47
commit
fd36da256b
1 changed files with 24 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue