@internetarchive/ia-topnav 1.3.1-alpha3 → 1.3.1-alpha4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { html } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
+
|
|
3
|
+
export default html`
|
|
4
|
+
<svg
|
|
5
|
+
width="40"
|
|
6
|
+
height="40"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
+
aria-labelledby="donateTitleID donateDescID"
|
|
10
|
+
>
|
|
11
|
+
<title id="donateTitleID">Donate icon</title>
|
|
12
|
+
<desc id="donateDescID">An illustration of a heart shape</desc>
|
|
13
|
+
<g class="layer">
|
|
14
|
+
<path class="fill-color" d="m32.6,8.12c-1.57,-1.51 -3.46,-2.21 -5.65,-2.11c-1,0.03 -2.14,0.51 -3.42,1.44c-1.28,0.92 -2.28,2.09 -3.03,3.51c-0.71,-1.41 -1.72,-2.59 -3,-3.51c-1.29,-0.93 -2.43,-1.41 -3.41,-1.44c-1.46,-0.07 -2.8,0.23 -4.02,0.88c-1.23,0.65 -2.21,1.6 -2.94,2.83c-0.74,1.24 -1.11,2.63 -1.12,4.17c-0.05,2.56 0.85,5.01 2.68,7.37c1.46,1.88 3.52,4.21 6.19,7.04c2.66,2.81 4.53,4.71 5.62,5.69c1,-0.88 2.85,-2.75 5.55,-5.6s4.81,-5.23 6.31,-7.13c1.81,-2.36 2.71,-4.81 2.66,-7.37c-0.04,-2.35 -0.83,-4.28 -2.4,-5.77z"/>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
17
|
+
`;
|
package/src/assets/img/icons.js
CHANGED
|
@@ -2,6 +2,7 @@ import audio from './icon-audio.js';
|
|
|
2
2
|
import close from './icon-close.js';
|
|
3
3
|
import hamburger from './icon-hamburger.js';
|
|
4
4
|
import donate from './icon-donate.js';
|
|
5
|
+
import donateUnpadded from './icon-donate-unpadded.js';
|
|
5
6
|
import ellipses from './icon-ellipses.js';
|
|
6
7
|
import iaLogo from './icon-ia-logo.js';
|
|
7
8
|
import images from './icon-images.js';
|
|
@@ -19,6 +20,7 @@ export default {
|
|
|
19
20
|
close,
|
|
20
21
|
hamburger,
|
|
21
22
|
donate,
|
|
23
|
+
donateUnpadded,
|
|
22
24
|
ellipses,
|
|
23
25
|
iaLogo,
|
|
24
26
|
images,
|
package/src/primary-nav.js
CHANGED
|
@@ -144,7 +144,7 @@ class PrimaryNav extends TrackedElement {
|
|
|
144
144
|
get mobileDonateHeart() {
|
|
145
145
|
return html`
|
|
146
146
|
<a class="mobile-donate-link" href=${formatUrl('/donate/?origin=iawww-mbhrt', this.baseHost)}>
|
|
147
|
-
${icons.
|
|
147
|
+
${icons.donateUnpadded}
|
|
148
148
|
<span class="sr-only">"Donate to the archive"</span>
|
|
149
149
|
</a>
|
|
150
150
|
`;
|
|
@@ -14,7 +14,7 @@ export default css`
|
|
|
14
14
|
height: 4rem;
|
|
15
15
|
grid-template-areas: 'hamburger empty heart search user';
|
|
16
16
|
-ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem 4rem;
|
|
17
|
-
grid-template-columns: 4rem auto
|
|
17
|
+
grid-template-columns: 4rem auto 4rem 4rem 4rem;
|
|
18
18
|
-ms-grid-rows: 100%;
|
|
19
19
|
grid-template-rows: 100%;
|
|
20
20
|
background: var(--primaryNavBg);
|
|
@@ -88,8 +88,8 @@ export default css`
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.mobile-donate-link svg {
|
|
91
|
-
height:
|
|
92
|
-
width:
|
|
91
|
+
height: 4rem;
|
|
92
|
+
width: 4rem;
|
|
93
93
|
}
|
|
94
94
|
.mobile-donate-link .fill-color {
|
|
95
95
|
fill: rgb(255, 0, 0);
|