Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits
diff options
context:
space:
mode:
Commit0afd8149fbdd381e671ac55d042a8326d034821a (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-11-09 10:24:29 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-11-09 10:24:29 +0200
Files2d65d3f795c06a69e0e2bde0f178cfd18a9e4f46 /awk-edits
syndamia.com-0afd8149fbdd381e671ac55d042a8326d034821a.tar
syndamia.com-0afd8149fbdd381e671ac55d042a8326d034821a.tar.gz
syndamia.com-0afd8149fbdd381e671ac55d042a8326d034821a.zip
Parented43fac2e61a30f567ca8519e791f2984335511f (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.awk4
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) {
/&#38;&#38;bg/ { flagSub("bg", "BGN") }
function articleIconSub(name, filename) {
+ sub("p>&#38;&#38;" name,
+ "p class=\"special-par " name "-par\">\\&#38;\\&#38;" name)
gsub("&#38;&#38;" name,
- "<img src=\"/img/" filename "\" class=\"article-icons unzoomable\" alt=\"" name "\">")
+ "<img src=\"/img/" filename "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">")
}
/&#38;&#38;warn/ { articleIconSub("warn", "dialog-warning.png") }