Code and image styles

This commit is contained in:
lilith 2025-02-14 01:12:07 +01:00
commit 59eaeb40ec
Signed by: lilith
SSH key fingerprint: SHA256:7kmBUkMCVUCN9z9MyGuBan8hifDCBaiG1RonGxdCB3A
6 changed files with 155 additions and 22 deletions

View file

@ -326,14 +326,29 @@ h6,
line-height: var();
}
code,
.code {
pre {
font-family: "Departure Mono", ui-monospace, monospace;
display: inline-block;
font-size: 0.8em;
display: block;
padding: 1rem;
border-radius: 1rem;
background-color: var(--color-shade-1);
}
pre code {
background-color: initial;
border-radius: initial;
padding: initial;
font-size: inherit;
}
code,
.code {
font-family: "Departure Mono", ui-monospace, monospace;
font-size: 0.8em;
background-color: var(--color-shade-1);
border-radius: 0.2em;
padding: 0 0.2em;
}
table tr th {
text-align: left;
@ -356,6 +371,32 @@ a:visited:hover, a:visited:active, a:visited:focus {
text-decoration: none;
}
figure {
display: flex;
flex-direction: column;
align-items: center;
}
figure img {
width: 100%;
max-height: 30vh;
object-fit: contain;
object-position: center;
}
figure img.glitch {
filter: url("glitch.svg#glitch");
}
img {
width: 80%;
max-height: 30vh;
object-fit: contain;
object-position: center;
margin: 0 auto;
}
img.glitch {
filter: url("glitch.svg#glitch");
}
* {
box-sizing: border-box;
}
@ -394,7 +435,7 @@ a.a-visited, a.a-visited:hover, a.a-visited:active, a.a-visited:focus {
text-decoration: underline;
}
code,
pre,
.code {
max-width: 100%;
overflow-x: auto;