From: danix Date: Sun, 26 Feb 2023 07:23:14 +0000 (+0100) Subject: incorporating svg directly in css X-Git-Url: https://git.danix.xyz/?p=gitweb-theme-danix.git;a=commitdiff_plain;h=37f891c59f7803bdb2868fcffca89969670469df incorporating svg directly in css --- diff --git a/gitweb-danixland/gitweb.css b/gitweb-danixland/gitweb.css index 4390192..20ff57a 100644 --- a/gitweb-danixland/gitweb.css +++ b/gitweb-danixland/gitweb.css @@ -56,7 +56,7 @@ a { outline: none; } --border: 34,40,49,0.035; --accent: #FD7014; ---svg-color: red; - --file-icon: url("file.svg"); + --file-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='var(--svg-color)' d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM112 256H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z'/%3E%3C/svg%3E"); --dir-icon: url("folder.svg"); --ref-icon: url("commit.svg"); --tag-icon: url("tag.svg");