Skip to content

Commit

Permalink
docs: compress inlined SVG
Browse files Browse the repository at this point in the history
2427 bytes -> 2045 bytes

PR-URL: #463
Credit: @XhmikosR
Close: #463
Reviewed-by: @claudiahdz
  • Loading branch information
XhmikosR authored and claudiahdz committed Nov 14, 2019
1 parent 30b013a commit 26c1b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main.css
Expand Up @@ -142,7 +142,7 @@ p > code[class*="language-text"] {
}

.documentation h1::before {
content: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 27 26'%3E%3Cdefs%3E%3Cstyle%3E.cls-1,.cls-2,.cls-3%7Bstroke-miterlimit:10;stroke-width:0.48px;%7D.cls-1%7Bfill:url(%23linear-gradient);stroke:url(%23linear-gradient-2);%7D.cls-2%7Bfill:url(%23linear-gradient-3);stroke:url(%23linear-gradient-4);%7D.cls-3%7Bfill:url(%23linear-gradient-5);stroke:url(%23linear-gradient-6);%7D%3C/style%3E%3ClinearGradient id='linear-gradient' x1='18.13' y1='13.48' x2='25.6' y2='13.48' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fb8817'/%3E%3Cstop offset='0.37' stop-color='%23fb8719'/%3E%3Cstop offset='0.51' stop-color='%23fa8420'/%3E%3Cstop offset='0.61' stop-color='%23f9802c'/%3E%3Cstop offset='0.69' stop-color='%23f7793d'/%3E%3Cstop offset='0.76' stop-color='%23f47053'/%3E%3Cstop offset='0.82' stop-color='%23f1656e'/%3E%3Cstop offset='0.87' stop-color='%23ed578f'/%3E%3Cstop offset='0.92' stop-color='%23e948b5'/%3E%3Cstop offset='0.97' stop-color='%23e437de'/%3E%3Cstop offset='1' stop-color='%23e02aff'/%3E%3C/linearGradient%3E%3ClinearGradient id='linear-gradient-2' x1='17.89' y1='13.48' x2='25.84' y2='13.48' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fb8817'/%3E%3Cstop offset='1' stop-color='%23e02aff'/%3E%3C/linearGradient%3E%3ClinearGradient id='linear-gradient-3' x1='1' y1='17.84' x2='18.69' y2='17.84' xlink:href='%23linear-gradient'/%3E%3ClinearGradient id='linear-gradient-4' x1='0.76' y1='17.84' x2='18.93' y2='17.84' xlink:href='%23linear-gradient-2'/%3E%3ClinearGradient id='linear-gradient-5' x1='1' y1='7.33' x2='20.48' y2='7.33' xlink:href='%23linear-gradient'/%3E%3ClinearGradient id='linear-gradient-6' x1='0.76' y1='7.33' x2='20.72' y2='7.33' xlink:href='%23linear-gradient-2'/%3E%3C/defs%3E%3Ctitle%3Ebox%3C/title%3E%3Cpath class='cls-1' d='M18.53,24.24a.28.28,0,0,1-.34-.41L25,14.06l-5-11a.28.28,0,1,1,.5-.23L25.58,14a.28.28,0,0,1,0,.28l-6.91,9.9A.28.28,0,0,1,18.53,24.24Z'/%3E%3Cpath class='cls-2' d='M18.53,24.24a.28.28,0,0,1-.14,0l-12-1.15A.28.28,0,0,1,6.16,23L1,11.81a.28.28,0,1,1,.5-.23l5.07,11L18,23.68,13,13a.28.28,0,1,1,.5-.23l5.12,11.12A.28.28,0,0,1,18.53,24.24Z'/%3E%3Cpath class='cls-3' d='M13.4,13.12a.25.25,0,0,1-.14,0L1.25,12a.28.28,0,0,1-.2-.44L8,1.64a.28.28,0,0,1,.25-.12l12,1.18a.28.28,0,0,1,.2.44L13.51,13A.25.25,0,0,1,13.4,13.12Z'/%3E%3C/svg%3E");
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 27 26'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='18.13' x2='25.6' y1='13.48' y2='13.48' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fb8817'/%3E%3Cstop offset='.37' stop-color='%23fb8719'/%3E%3Cstop offset='.51' stop-color='%23fa8420'/%3E%3Cstop offset='.61' stop-color='%23f9802c'/%3E%3Cstop offset='.69' stop-color='%23f7793d'/%3E%3Cstop offset='.76' stop-color='%23f47053'/%3E%3Cstop offset='.82' stop-color='%23f1656e'/%3E%3Cstop offset='.87' stop-color='%23ed578f'/%3E%3Cstop offset='.92' stop-color='%23e948b5'/%3E%3Cstop offset='.97' stop-color='%23e437de'/%3E%3Cstop offset='1' stop-color='%23e02aff'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='17.89' x2='25.84' y1='13.48' y2='13.48' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fb8817'/%3E%3Cstop offset='1' stop-color='%23e02aff'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='1' x2='18.69' y1='17.84' y2='17.84' xlink:href='%23a'/%3E%3ClinearGradient id='d' x1='.76' x2='18.93' y1='17.84' y2='17.84' xlink:href='%23b'/%3E%3ClinearGradient id='e' x1='1' x2='20.48' y1='7.33' y2='7.33' xlink:href='%23a'/%3E%3ClinearGradient id='f' x1='.76' x2='20.72' y1='7.33' y2='7.33' xlink:href='%23b'/%3E%3C/defs%3E%3Cpath fill='url(%23a)' stroke='url(%23b)' stroke-miterlimit='10' stroke-width='.48' d='M18.53 24.24a.28.28 0 01-.34-.41L25 14.06l-5-11a.28.28 0 11.5-.23L25.58 14a.28.28 0 010 .28l-6.91 9.9a.28.28 0 01-.14.06z'/%3E%3Cpath fill='url(%23c)' stroke='url(%23d)' stroke-miterlimit='10' stroke-width='.48' d='M18.53 24.24a.28.28 0 01-.14 0l-12-1.15a.28.28 0 01-.23-.09L1 11.81a.28.28 0 11.5-.23l5.07 11L18 23.68 13 13a.28.28 0 11.5-.23l5.12 11.12a.28.28 0 01-.09.35z'/%3E%3Cpath fill='url(%23e)' stroke='url(%23f)' stroke-miterlimit='10' stroke-width='.48' d='M13.4 13.12a.25.25 0 01-.14 0L1.25 12a.28.28 0 01-.2-.44L8 1.64a.28.28 0 01.25-.12l12 1.18a.28.28 0 01.2.44L13.51 13a.25.25 0 01-.11.12z'/%3E%3C/svg%3E");
position: relative;
display: inline-block;
padding-right: 8px;
Expand Down

0 comments on commit 26c1b2e

Please sign in to comment.