improvement: Move inline styles to SCSS instead (#5578)

* fix: convert propStyle to propClass
This commit is contained in:
tomdegoede
2020-06-11 01:39:48 +02:00
committed by GitHub
parent 67627d7587
commit fc3ed30f3d
30 changed files with 282 additions and 70 deletions

View File

@@ -307,15 +307,15 @@ export function highlight (el) {
// (some types are highlighted similarly)
el[appendChild](
node = _document.createElement("span")
).setAttribute("style", [
).setAttribute("class", [
// 0: not formatted
"color: #555; font-weight: bold;",
"token-not-formatted",
// 1: keywords
"",
// 2: punctuation
"",
// 3: strings and regexps
"color: #555;",
"token-string",
// 4: comments
""
][