World outlines ?
This commit is contained in:
parent
df19fcfebb
commit
e3dcd08714
2 changed files with 13 additions and 0 deletions
|
@ -254,6 +254,12 @@
|
|||
"bold": true,
|
||||
"italicized": true,
|
||||
"caseInsensitive": true
|
||||
},
|
||||
"Pokerogue": {
|
||||
"caseInsensitive": true,
|
||||
"color": "#366383",
|
||||
"outline": "#d43131",
|
||||
"bold": true
|
||||
}
|
||||
}
|
||||
}
|
|
@ -120,6 +120,13 @@ function highlighter(json, full = true) {
|
|||
style += "font-style: italic;"
|
||||
}
|
||||
|
||||
if (termProps.outline) {
|
||||
var width = 2
|
||||
style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};`
|
||||
// style += `-webkit-text-stroke: 1px ${termProps.outline};`
|
||||
// ^ Not in use because it looks bad :30
|
||||
}
|
||||
|
||||
if (termProps.bold) {
|
||||
classes += "bold"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue