Skip to content

Commit 0b5195f

Browse files
committed
Fix SVG miscoloring issue
1 parent 5031694 commit 0b5195f

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

src/lib/components/svg/ChromeLogo.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
>
2020
<title>Google Chrome</title>
2121
<defs>
22-
<linearGradient id="a" x1="3.2173" y1="15" x2="44.7812" y2="15" gradientUnits="userSpaceOnUse">
22+
<linearGradient id="chrome-a" x1="3.2173" y1="15" x2="44.7812" y2="15" gradientUnits="userSpaceOnUse">
2323
<stop offset="0" stop-color="#d93025" />
2424
<stop offset="1" stop-color="#ea4335" />
2525
</linearGradient>
2626
<linearGradient
27-
id="b"
27+
id="chrome-b"
2828
x1="20.7219"
2929
y1="47.6791"
3030
x2="41.5039"
@@ -35,7 +35,7 @@
3535
<stop offset="1" stop-color="#fbbc04" />
3636
</linearGradient>
3737
<linearGradient
38-
id="c"
38+
id="chrome-c"
3939
x1="26.5981"
4040
y1="46.5015"
4141
x2="5.8161"
@@ -52,15 +52,15 @@
5252
/>
5353
<path
5454
d="M24,12H44.7812a23.9939,23.9939,0,0,0-41.5639.0029L13.6079,30l.0093-.0024A11.9852,11.9852,0,0,1,24,12Z"
55-
style="fill:url(#a)"
55+
style="fill:url(#chrome-a)"
5656
/>
5757
<circle cx="24" cy="24" r="9.5" fill="#1a73e8" />
5858
<path
5959
d="M34.3913,30.0029,24,48A24,24,0,0,0,44.78,12.0031H23.9989l-.0025.0093A11.985,11.985,0,0,1,34.3913,30.0029Z"
60-
style="fill:url(#b)"
60+
style="fill:url(#chrome-b)"
6161
/>
6262
<path
6363
d="M13.6086,30.0031,3.218,12.006A24,24,0,0,0,24.0025,48L34.3931,30.0029l-.0067-.0068a11.9852,11.9852,0,0,1-20.7778.007Z"
64-
style="fill:url(#c)"
64+
style="fill:url(#chrome-c)"
6565
/>
6666
</svg>

src/lib/components/svg/EdgeLogo.svelte

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<title>Microsoft Edge</title>
2121
<defs>
2222
<radialGradient
23-
id="b"
23+
id="edge-b"
2424
cx="161.8"
2525
cy="68.9"
2626
r="95.4"
@@ -30,7 +30,7 @@
3030
<stop offset=".7" stop-opacity="0" /><stop offset=".9" stop-opacity=".5" /><stop offset="1" />
3131
</radialGradient>
3232
<radialGradient
33-
id="d"
33+
id="edge-d"
3434
cx="-340.3"
3535
cy="63"
3636
r="143.2"
@@ -42,7 +42,7 @@
4242
<stop offset="1" />
4343
</radialGradient>
4444
<radialGradient
45-
id="e"
45+
id="edge-e"
4646
cx="113.4"
4747
cy="570.2"
4848
r="202.4"
@@ -56,7 +56,7 @@
5656
<stop offset=".7" stop-color="#36c752" />
5757
</radialGradient>
5858
<radialGradient
59-
id="f"
59+
id="edge-f"
6060
cx="376.5"
6161
cy="568"
6262
r="97.3"
@@ -67,7 +67,7 @@
6767
<stop offset="1" stop-color="#66eb6e" stop-opacity="0" />
6868
</radialGradient>
6969
<linearGradient
70-
id="a"
70+
id="edge-a"
7171
x1="63.3"
7272
y1="84"
7373
x2="241.7"
@@ -79,7 +79,7 @@
7979
<stop offset="1" stop-color="#114a8b" />
8080
</linearGradient>
8181
<linearGradient
82-
id="c"
82+
id="edge-c"
8383
x1="157.3"
8484
y1="161.4"
8585
x2="46"
@@ -96,31 +96,31 @@
9696
<path
9797
d="M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z"
9898
transform="translate(-4.6 -5)"
99-
style="fill:url(#a)"
99+
style="fill:url(#edge-a)"
100100
/>
101101
<path
102102
d="M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z"
103103
transform="translate(-4.6 -5)"
104-
style="isolation:isolate;opacity:.35;fill:url(#b)"
104+
style="isolation:isolate;opacity:.35;fill:url(#edge-b)"
105105
/>
106106
<path
107107
d="M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z"
108108
transform="translate(-4.6 -5)"
109-
style="fill:url(#c)"
109+
style="fill:url(#edge-c)"
110110
/>
111111
<path
112112
d="M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z"
113113
transform="translate(-4.6 -5)"
114-
style="opacity:.41;fill:url(#d);isolation:isolate"
114+
style="opacity:.41;fill:url(#edge-d);isolation:isolate"
115115
/>
116116
<path
117117
d="M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z"
118118
transform="translate(-4.6 -5)"
119-
style="fill:url(#e)"
119+
style="fill:url(#edge-e)"
120120
/>
121121
<path
122122
d="M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z"
123123
transform="translate(-4.6 -5)"
124-
style="fill:url(#f)"
124+
style="fill:url(#edge-f)"
125125
/>
126126
</svg>

src/lib/components/svg/OperaLogo.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<title>Opera</title>
2121
<defs>
2222
<linearGradient
23-
id="a"
23+
id="opera-a"
2424
gradientTransform="matrix(0 -54.944 -54.944 0 23.62 79.474)"
2525
gradientUnits="userSpaceOnUse"
2626
x2="1"
@@ -31,7 +31,7 @@
3131
<stop offset="1" stop-color="#a70014" />
3232
</linearGradient>
3333
<linearGradient
34-
id="b"
34+
id="opera-b"
3535
gradientTransform="matrix(0 -48.595 -48.595 0 37.854 76.235)"
3636
gradientUnits="userSpaceOnUse"
3737
x2="1"
@@ -44,11 +44,11 @@
4444
<g transform="matrix(1.3333 0 0 -1.3333 0 107.2)">
4545
<path
4646
d="m28.346 80.398c-15.655 0-28.346-12.691-28.346-28.346 0-15.202 11.968-27.609 26.996-28.313.44848-.02115.89766-.03314 1.3504-.03314 7.2574 0 13.876 2.7289 18.891 7.2137-3.3227-2.2036-7.2074-3.4715-11.359-3.4715-6.7504 0-12.796 3.3488-16.862 8.6297-3.1344 3.6999-5.1645 9.1691-5.3028 15.307v1.3349c.13821 6.1377 2.1683 11.608 5.302 15.307 4.0666 5.2809 10.112 8.6297 16.862 8.6297 4.1526 0 8.038-1.2679 11.361-3.4729-4.9904 4.4643-11.569 7.1876-18.786 7.2144-.03596 0-.07122.0014-.10718.0014z"
47-
fill="url(#a)"
47+
fill="url(#opera-a)"
4848
/>
4949
<path
5050
d="m19.016 68.025c2.6013 3.0709 5.9607 4.9227 9.631 4.9227 8.2524 0 14.941-9.356 14.941-20.897s-6.6891-20.897-14.941-20.897c-3.6703 0-7.0297 1.851-9.6303 4.922 4.0659-5.2809 10.111-8.6297 16.862-8.6297 4.1519 0 8.0366 1.2679 11.359 3.4715 5.802 5.1906 9.4554 12.735 9.4554 21.133 0 8.397-3.6527 15.941-9.4533 21.131-3.3234 2.205-7.2088 3.4729-11.361 3.4729-6.7504 0-12.796-3.3488-16.862-8.6297"
51-
fill="url(#b)"
51+
fill="url(#opera-b)"
5252
/>
5353
</g>
5454
</svg>

0 commit comments

Comments
 (0)