tweak pic rendering a bit

This commit is contained in:
liquidex 2024-02-07 11:35:08 +01:00
parent 3b06d70020
commit 5d63140cf3
2 changed files with 8 additions and 1 deletions

View file

@ -292,7 +292,7 @@ where
self.write("\">") self.write("\">")
} }
Tag::Image(_link_type, dest, title) => { Tag::Image(_link_type, dest, title) => {
self.write("<img src=\"")?; self.write("<img class=\"pic\" src=\"")?;
escape_href(&mut self.writer, &dest)?; escape_href(&mut self.writer, &dest)?;
self.write("\" alt=\"")?; self.write("\" alt=\"")?;
self.raw_text()?; self.raw_text()?;

View file

@ -232,6 +232,13 @@ img {
max-width: 100%; max-width: 100%;
} }
/* Also regarding images - make them look a bit more pretty by default */
img.pic {
border-radius: 6px;
margin: 8px 0;
}
/* Fix the default blue and ugly purple links normally have */ /* Fix the default blue and ugly purple links normally have */
a { a {