Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit90d465275113ddf3d33216486c05ebc8f89f7b03 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-07-10 21:22:57 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-07-10 21:22:57 +0300
Filesf7f0ef79b7580a58ad10f370707ce3e159682fb5
syndamia.com-90d465275113ddf3d33216486c05ebc8f89f7b03.tar
syndamia.com-90d465275113ddf3d33216486c05ebc8f89f7b03.tar.gz
syndamia.com-90d465275113ddf3d33216486c05ebc8f89f7b03.zip
Parentb03df02e27292bfbe13e2efb4becb721684a4719 (diff)
(file-lists) Reworked to use characters
4 files changed, 17 insertions, 21 deletions
-rwxr-xr-xFontForge-helper.ff9
-rw-r--r--awk-edits/File-lists.awk12
-rw-r--r--src/font/tabler-icons-subset.ttfbin6836 -> 7072 bytes
-rw-r--r--src/styles.css17
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] = "\\&#xeb0a;"
flname[6] = "ft-text"
- flrepl[6] = "file-text.svg"
+ flrepl[6] = "\\&#xeaa2;"
flname[7] = "ft-zip"
- flrepl[7] = "file-zip.svg"
+ flrepl[7] = "\\&#xed4e;"
flname[8] = "ft-movie"
- flrepl[8] = "movie.svg"
+ flrepl[8] = "\\&#xeafa;"
flname[9] = "ft-markdown"
- flrepl[9] = "markdown.svg"
+ flrepl[9] = "\\&#xec41;"
flnamelength = 9 # POSIX compatibility: length(flname) is not valid
for (i = 1; i <= flnamelength; i++) {
flpat[i] = "&#38;&#38;" flname[i]
if (index(flname[i], "ft") == 1)
- flrepl[i] = "<td><img class=\"file-icon unzoomable\" src=\"/img/" flrepl[i] "\"></td>"
+ flrepl[i] = "<td><div class=\"file-icon\">" flrepl[i] "</div></td>"
}
}
diff --git a/src/font/tabler-icons-subset.ttf b/src/font/tabler-icons-subset.ttf
index 02ab6aa..c1c4b5c 100644
--- a/src/font/tabler-icons-subset.ttf
+++ b/src/font/tabler-icons-subset.ttf
Binary files 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 {