From 90d465275113ddf3d33216486c05ebc8f89f7b03 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 10 Jul 2023 21:22:57 +0300 Subject: (file-lists) Reworked to use characters --- FontForge-helper.ff | 9 +++++++-- awk-edits/File-lists.awk | 12 ++++++------ src/font/tabler-icons-subset.ttf | Bin 6836 -> 7072 bytes src/styles.css | 17 ++++------------- 4 files changed, 17 insertions(+), 21 deletions(-) diff --git a/FontForge-helper.ff b/FontForge-helper.ff index 85e7a05..6e7db90 100755 --- a/FontForge-helper.ff +++ b/FontForge-helper.ff @@ -24,9 +24,8 @@ SelectMore("ueaa2") # file-text SelectMore("ued4e") # file-zip SelectMore("ueaaa") # folder-minus SelectMore("ueaab") # folder-plus -SelectMore("ueaad") # folder SelectMore("ueade") # link -SelectMore("ueade") # markdown +SelectMore("uec41") # markdown SelectMore("ueafa") # movie SelectMore("ueb0a") # photo SelectMore("ueb70") # presentation @@ -59,6 +58,12 @@ Select("uf1e2"); Cut(); Select("u2632"); Paste() # chevrons-up to ︽ presentation form for vertical left double angle bracket Select("uea66"); Cut(); Select("uFE3D"); Paste() +# folder-minus to - fullwidth hyphen-minus +Select("ueaaa"); Cut(); Select("uFF0D"); Paste() + +# folder-plus to + fullwidth plus sign +Select("ueaab"); Cut(); Select("uFF0B"); Paste() + # link to § section sign Select("ueade"); Cut(); Select("u00A7"); Paste() diff --git a/awk-edits/File-lists.awk b/awk-edits/File-lists.awk index 4e387f3..aa7e727 100644 --- a/awk-edits/File-lists.awk +++ b/awk-edits/File-lists.awk @@ -100,22 +100,22 @@ BEGIN { flrepl[4] = "" # Not used, refer to fileSubstitute function flname[5] = "ft-photo" - flrepl[5] = "photo.svg" + flrepl[5] = "\\" flname[6] = "ft-text" - flrepl[6] = "file-text.svg" + flrepl[6] = "\\" flname[7] = "ft-zip" - flrepl[7] = "file-zip.svg" + flrepl[7] = "\\" flname[8] = "ft-movie" - flrepl[8] = "movie.svg" + flrepl[8] = "\\" flname[9] = "ft-markdown" - flrepl[9] = "markdown.svg" + flrepl[9] = "\\" flnamelength = 9 # POSIX compatibility: length(flname) is not valid for (i = 1; i <= flnamelength; i++) { flpat[i] = "&&" flname[i] if (index(flname[i], "ft") == 1) - flrepl[i] = "" + flrepl[i] = "
" flrepl[i] "
" } } diff --git a/src/font/tabler-icons-subset.ttf b/src/font/tabler-icons-subset.ttf index 02ab6aa..c1c4b5c 100644 Binary files a/src/font/tabler-icons-subset.ttf and b/src/font/tabler-icons-subset.ttf differ diff --git a/src/styles.css b/src/styles.css index 1b3b204..6964102 100644 --- a/src/styles.css +++ b/src/styles.css @@ -468,19 +468,10 @@ dt, dd { /* File tables */ .file-wrapper { margin: 0.5em 0; } - .file-wrapper > summary { - background: url('/img/folder-plus.svg') no-repeat left top; - list-style: none; - padding-left: 1.5em; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - } - .file-wrapper[open] > summary { - background: url('/img/folder-minus.svg') no-repeat left top; - } - .file-wrapper > summary:hover { cursor: pointer; } + .file-wrapper > summary { list-style: none; } + .file-wrapper > summary::before { content: '\FF0B'; } + .file-wrapper[open] > summary::before { content: '\FF0D'; } + .file-wrapper > summary:hover { cursor: pointer; } .file-wrapper > .file-list { margin-left: 1.5em; } .file-list { -- cgit v1.3.1-26-gb76a