tweak pic rendering a bit
This commit is contained in:
parent
3b06d70020
commit
5d63140cf3
|
@ -292,7 +292,7 @@ where
|
|||
self.write("\">")
|
||||
}
|
||||
Tag::Image(_link_type, dest, title) => {
|
||||
self.write("<img src=\"")?;
|
||||
self.write("<img class=\"pic\" src=\"")?;
|
||||
escape_href(&mut self.writer, &dest)?;
|
||||
self.write("\" alt=\"")?;
|
||||
self.raw_text()?;
|
||||
|
|
|
@ -232,6 +232,13 @@ img {
|
|||
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 */
|
||||
|
||||
a {
|
||||
|
|
Loading…
Reference in a new issue