mirror of
https://github.com/lise-henry/crowbook
synced 2024-05-24 14:16:04 +02:00
Use CSS for grammar errors
This commit is contained in:
parent
b9ea1a1b68
commit
ece6af778b
|
@ -372,7 +372,7 @@ impl<'a> HtmlRenderer<'a> {
|
|||
let content = try!(this.as_mut().render_vec(v));
|
||||
if this.as_ref().proofread {
|
||||
match annotation {
|
||||
&Data::GrammarError(ref s) => Ok(format!("<span title = \"{}\" style = \"background: red\">{}</span>",
|
||||
&Data::GrammarError(ref s) => Ok(format!("<span title = \"{}\" class = \"grammar-error\">{}</span>",
|
||||
escape_quotes(s.as_str()),
|
||||
content))
|
||||
}
|
||||
|
|
|
@ -214,5 +214,7 @@ footer p {
|
|||
width: 70%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Grammar error */
|
||||
.grammar-error {
|
||||
background: #d966ff;
|
||||
}
|
Loading…
Reference in New Issue