diff options
| Commit | 0afd8149fbdd381e671ac55d042a8326d034821a (patch) | |
|---|---|---|
| Author | 2023-11-09 10:24:29 +0200 | |
| Committer | 2023-11-09 10:24:29 +0200 | |
| Files | 2d65d3f795c06a69e0e2bde0f178cfd18a9e4f46 /awk-edits/Icons.awk | |
| syndamia.com-0afd8149fbdd381e671ac55d042a8326d034821a.tar syndamia.com-0afd8149fbdd381e671ac55d042a8326d034821a.tar.gz syndamia.com-0afd8149fbdd381e671ac55d042a8326d034821a.zip | ||
| Parent | ed43fac2e61a30f567ca8519e791f2984335511f (diff) | |
[Icons] warn and question icons now have special formatting to make the "float" to the left
Also added border for warn
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | awk-edits/Icons.awk | 4 |
diff --git a/awk-edits/Icons.awk b/awk-edits/Icons.awk index 4b3abf7..268efa2 100644 --- a/awk-edits/Icons.awk +++ b/awk-edits/Icons.awk @@ -19,8 +19,10 @@ function flagSub(name, alt) { /&&bg/ { flagSub("bg", "BGN") } function articleIconSub(name, filename) { + sub("p>&&" name, + "p class=\"special-par " name "-par\">\\&\\&" name) gsub("&&" name, - "<img src=\"/img/" filename "\" class=\"article-icons unzoomable\" alt=\"" name "\">") + "<img src=\"/img/" filename "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">") } /&&warn/ { articleIconSub("warn", "dialog-warning.png") } |