From 7c77caa3f219e3141213704d02af564e3279aeb3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 4 Nov 2023 15:11:19 +0200 Subject: [Icons] Moved Flags.awk into Icons.awk and added &&question and &&warn ftags with Mint-Y icons --- awk-edits/Flags.awk | 27 --------------------------- awk-edits/Icons.awk | 27 +++++++++++++++++++++++++++ awk-edits/empty | 0 src/styles.css | 3 +++ 4 files changed, 30 insertions(+), 27 deletions(-) delete mode 100644 awk-edits/Flags.awk create mode 100644 awk-edits/Icons.awk delete mode 100644 awk-edits/empty diff --git a/awk-edits/Flags.awk b/awk-edits/Flags.awk deleted file mode 100644 index aad1343..0000000 --- a/awk-edits/Flags.awk +++ /dev/null @@ -1,27 +0,0 @@ -# .*html -# -# == About == -# -# A collection of ftags that generate an image HTML tag, containing the specified -# flag. This is done, because these tags need to have specific classes, which is -# supported in Markdown, but is less flexible and more tedious. - -# == ftags == -# -# &&gb Great Britain flag -# &&bg Bulgarian flag -# -# -- Placement/Flow -- -# -# They can reside absolutely anywhere in text. - -function flagSub(name, alt) { - gsub("&&" name, "\""") -} - -/&&gb/ { - flagSub("gb", "ENG") -} -/&&bg/ { - flagSub("bg", "BGN") -} diff --git a/awk-edits/Icons.awk b/awk-edits/Icons.awk new file mode 100644 index 0000000..4b3abf7 --- /dev/null +++ b/awk-edits/Icons.awk @@ -0,0 +1,27 @@ +# .*html +# +# == About == +# +# A collection of ftags that generate an image HTML tag, containing the specified +# thing. This is done, because these tags need to have specific classes, which is +# supported in Markdown, but is less flexible and more tedious. +# +# -- Placement/Flow -- +# +# They can reside absolutely anywhere in text. + +function flagSub(name, alt) { + gsub("&&" name, + "\""") +} + +/&&gb/ { flagSub("gb", "ENG") } +/&&bg/ { flagSub("bg", "BGN") } + +function articleIconSub(name, filename) { + gsub("&&" name, + "\""") +} + +/&&warn/ { articleIconSub("warn", "dialog-warning.png") } +/&&question/ { articleIconSub("question", "dialog-question.png") } diff --git a/awk-edits/empty b/awk-edits/empty deleted file mode 100644 index e69de29..0000000 diff --git a/src/styles.css b/src/styles.css index 340d086..2207ac9 100644 --- a/src/styles.css +++ b/src/styles.css @@ -141,8 +141,11 @@ img { .pixelated-render { image-rendering: pixelated; } .oldschool-badge { height: 38px; } .flag { max-width: 1.3em; } /* Compatibility with Chrome 49.0.2623.112 (for old machines) */ + .file-type-icon { min-width: 1.3em; vertical-align: middle; } .borderless, .oldschool-badge, .file-type-icon { border: none; } + + .article-icons { border: none; margin-bottom: 0.25em; vertical-align: middle; } .btn, .h-anchor { /* Thanks https://stackoverflow.com/a/4407335/12036073 */ -- cgit v1.3.1-23-gd82d