Merge pull request #4504 from roc-lang/fix-styles

Fix some web styles
This commit is contained in:
Richard Feldman 2022-11-16 21:53:05 -05:00 committed by GitHub
commit 1e4cf52fd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 4 deletions

View file

@ -275,7 +275,7 @@ pub const ANSI_STYLE_CODES: StyleCodes = StyleCodes {
macro_rules! html_color {
($name: expr) => {
concat!("<span style='color: ", $name, "'>")
concat!("<span class='color-", $name, "'>")
};
}
@ -287,8 +287,8 @@ pub const HTML_STYLE_CODES: StyleCodes = StyleCodes {
magenta: html_color!("magenta"),
cyan: html_color!("cyan"),
white: html_color!("white"),
bold: "<span style='font-weight: bold'>",
underline: "<span style='text-decoration: underline'>",
bold: "<span class='bold'>",
underline: "<span class='underline'>",
reset: "</span>",
color_reset: "</span>",
};