change location of poup icons + optimize icons

This commit is contained in:
bmFtZQ 2021-05-09 06:20:18 +08:00 committed by GitHub
parent 1cfb40f977
commit a031bfb75d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
85 changed files with 634 additions and 280 deletions

View file

@ -1,15 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<style>
:root &gt; use:not(:target),
:root &gt; g:not(:target) {
display: none;
}
:root&gt;g:not(:target),:root&gt;use:not(:target){display:none}
</style>
<defs>
<path id="arrow-icon" d="M 8,0 C 7.7239,0 7.50008,0.22386 7.5,0.5 L 7.4960938,12.285156 3.8496094,8.6445312 3.78125,8.5878906 c -0.19496,-0.1349 -0.4652319,-0.1151062 -0.6386719,0.058594 -0.19513,0.1954 -0.1934469,0.5119312 0.00195,0.7070312 L 7.5996094,13.804688 C 7.6910194,13.922788 7.8351238,14 7.9960938,14 l 0.1054687,-0.01172 c 0.0936,-0.0187 0.1834594,-0.06412 0.2558594,-0.136719 l 4.4921871,-4.4999995 0.05664,-0.068359 c 0.1348,-0.195 0.115106,-0.4652718 -0.05859,-0.6386719 l -0.06836,-0.056641 c -0.195,-0.1348 -0.465272,-0.1151062 -0.638672,0.058594 L 8.4960938,12.294922 8.5,0.5 8.4921875,0.41015625 C 8.4498875,0.17689625 8.2455,0 8,0 Z"/>
<path id="arrow-icon-short" d="M 8,0 C 7.7239,0 7.50008,0.22386 7.5,0.5 L 7.4960938,11.285211 3.8496094,7.6445864 3.78125,7.5879458 c -0.19496,-0.1349 -0.4652319,-0.1151062 -0.6386719,0.058594 -0.19513,0.1954 -0.1934469,0.5119312 0.00195,0.7070312 l 4.4550813,4.451172 c 0.09141,0.1181 0.2355144,0.195312 0.3964844,0.195312 l 0.1054687,-0.01172 c 0.0936,-0.0187 0.1834594,-0.06412 0.2558594,-0.136719 l 4.4921871,-4.4999993 0.05664,-0.068359 c 0.1348,-0.195 0.115106,-0.4652718 -0.05859,-0.6386719 l -0.06836,-0.056641 c -0.195,-0.1348 -0.465272,-0.1151062 -0.638672,0.058594 L 8.4960938,11.294977 8.5,0.5 8.4921875,0.41015625 C 8.4498875,0.17689625 8.2455,0 8,0 Z"/>
<path id="short-bar-icon" d="m 2.5,15 -0.089844,0.0078 C 2.1769163,15.050212 2,15.2545 2,15.5 2,15.7761 2.22386,16 2.5,16 h 11 l 0.08984,-0.0078 C 13.823044,15.949888 14,15.7454 14,15.5 14,15.2238 13.7761,15 13.5,15 Z"/>
<path id="long-bar-icon" d="m 1,14 h 14 a 1,1 45 0 1 1,1 1,1 135 0 1 -1,1 H 1 A 1,1 45 0 1 0,15 1,1 135 0 1 1,14 Z"/>
<path id="arrow-icon" d="M8 0a.5.5 0 0 0-.5.5l-.004 11.785-3.646-3.64-.069-.057a.5.5 0 0 0-.637.766l4.456 4.45a.502.502 0 0 0 .396.196l.106-.012a.498.498 0 0 0 .255-.136l4.493-4.5.056-.069a.501.501 0 0 0-.058-.638l-.069-.057a.501.501 0 0 0-.638.058l-3.645 3.649L8.5.5 8.492.41A.5.5 0 0 0 8 0z"/>
<path id="arrow-icon-short" d="M8 0a.5.5 0 0 0-.5.5l-.004 10.785-3.646-3.64-.069-.057a.5.5 0 0 0-.637.766l4.456 4.45a.502.502 0 0 0 .396.196l.106-.012a.498.498 0 0 0 .255-.136l4.493-4.5.056-.069a.501.501 0 0 0-.058-.638l-.069-.057a.501.501 0 0 0-.638.059l-3.645 3.648L8.5.5 8.492.41A.5.5 0 0 0 8 0z"/>
<path id="short-bar-icon" d="m2.5 15-.09.008A.5.5 0 0 0 2.5 16h11l.09-.008A.5.5 0 0 0 13.5 15z"/>
<path id="long-bar-icon" d="M1 14h14a1 1 45 0 1 1 1 1 1 135 0 1-1 1H1a1 1 45 0 1-1-1 1 1 135 0 1 1-1z"/>
</defs>
<use id="arrow" fill="context-fill" fill-opacity="context-fill-opacity" href="#arrow-icon"/>
<use id="arrow-progress" fill="context-fill" fill-opacity="context-fill-opacity" href="#arrow-icon-short"/>
@ -18,6 +15,6 @@
<use href="#short-bar-icon"/>
</g>
<use id="default-bar" fill="context-fill" fill-opacity="context-fill-opacity" href="#short-bar-icon"/>
<use id="progress-bar-bg" fill="context-fill" fill-opacity="0.2" href="#long-bar-icon"/>
<use id="progress-bar-bg" fill="context-fill" fill-opacity=".2" href="#long-bar-icon"/>
<use id="progress-bar-fg" fill="context-fill" fill-opacity="context-fill-opacity" href="#long-bar-icon"/>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before After
Before After