1
0
Fork 0
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:
Elisabeth Henry 2016-09-29 02:43:50 +02:00
parent b9ea1a1b68
commit ece6af778b
2 changed files with 5 additions and 3 deletions

View File

@ -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))
}

View File

@ -214,5 +214,7 @@ footer p {
width: 70%;
}
/* Grammar error */
.grammar-error {
background: #d966ff;
}