commit 2e5c42ffc3c9e4ddc242e9e6b90e0086422c8c28
parent 6c6902262d0f444b56de1ef35f5f060662efa160
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sat, 15 Jun 2024 11:52:30 +0200
feat: use feather icons as symbols
Diffstat:
8 files changed, 37 insertions(+), 7 deletions(-)
diff --git a/assets/img/download.svg b/assets/img/download.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-download"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>
+\ No newline at end of file
diff --git a/assets/img/file-text.svg b/assets/img/file-text.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-text"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>
+\ No newline at end of file
diff --git a/assets/img/folder.svg b/assets/img/folder.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-folder"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>
+\ No newline at end of file
diff --git a/assets/img/git-branch.svg b/assets/img/git-branch.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-branch"><line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg>
+\ No newline at end of file
diff --git a/assets/img/git-commit.svg b/assets/img/git-commit.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-commit"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg>
+\ No newline at end of file
diff --git a/assets/img/rss.svg b/assets/img/rss.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>
+\ No newline at end of file
diff --git a/assets/img/share.svg b/assets/img/share.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-share"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line></svg>
+\ No newline at end of file
diff --git a/assets/style.css b/assets/style.css
@@ -177,17 +177,30 @@ body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a.active
}
/* Add icons in front of menu entries */
+body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a:before {
+ content: "";
+ width: 1em;
+ height: 1em;
+ display: inline-block;
+ background-color: var(--hl1);
+ margin-bottom: -0.15em;
+ margin-right: 0.25em;
+}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="log.html"]:before {
- content: "\1F589\0020";
+ mask: url("/assets/img/git-commit.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="files.html"]:before {
- content: "\1F5C1\0020";
+ mask: url("/assets/img/folder.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="exports.html"]:before {
- content: "\2B73\0020";
+ mask: url("/assets/img/download.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="refs.html"]:before {
- content: "\1F5CE\0020";
+ mask: url("/assets/img/git-branch.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="README.html"]:before,
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="README.md.html"]:before,
@@ -199,13 +212,16 @@ body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$=
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="Readme.md.html"]:before,
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="Readme.txt.html"]:before
{
- content: "\1F5CA\0020";
+ mask: url("/assets/img/file-text.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$=".gitmodules.html"]:before {
- content: "\1F5F5\0020";
+ mask: url("/assets/img/share.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td > a[href$="atom.xml"]:before {
- content: "\1F56C\0020";
+ mask: url("/assets/img/rss.svg") no-repeat 0% 0%;
+ mask-size: contain;
}
/* Activity bar ------------------------------------------------------------ */