tweak pic rendering a bit
This commit is contained in:
parent
3b06d70020
commit
5d63140cf3
|
@ -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()?;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue