@internetarchive/ia-topnav 1.3.1 → 1.3.3-alpha1
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 +2 -2
- package/src/assets/img/icon-donate-unpadded.js +16 -0
- package/src/assets/img/icon-ia-logo.js +0 -2
- package/src/assets/img/icon-upload.js +2 -2
- package/src/assets/img/icons.js +2 -0
- package/src/assets/img/wordmark-stacked.js +1 -1
- package/src/primary-nav.js +21 -12
- package/src/styles/desktop-subnav.js +1 -1
- package/src/styles/dropdown-menu.js +4 -2
- package/src/styles/login-button.js +14 -8
- package/src/styles/media-button.js +6 -5
- package/src/styles/media-slider.js +3 -3
- package/src/styles/media-subnav.js +2 -2
- package/src/styles/nav-search.js +3 -3
- package/src/styles/primary-nav.js +63 -64
- package/src/styles/save-page-form.js +2 -1
- package/src/styles/signed-out-dropdown.js +2 -2
- package/src/styles/user-menu.js +2 -2
- package/src/assets/img/user.js +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internetarchive/ia-topnav",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3-alpha1",
|
|
4
4
|
"description": "Top nav for Internet Archive",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "ulimit -v unlimited; web-test-runner 'test/**/*.test.js' --node-resolve --coverage --puppeteer"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@internetarchive/ia-wayback-search": "
|
|
24
|
+
"@internetarchive/ia-wayback-search": "0.2.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@open-wc/demoing-storybook": "^2.4.7",
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
viewBox="0 0 40 40"
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
10
|
+
aria-labelledby="donateTitleID donateDescID"
|
|
11
|
+
>
|
|
12
|
+
<title id="donateTitleID">Donate icon</title>
|
|
13
|
+
<desc id="donateDescID">An illustration of a heart shape</desc>
|
|
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
|
+
</svg>
|
|
16
|
+
`;
|
|
@@ -3,8 +3,8 @@ import { html } from 'https://offshoot.prod.archive.org/lit.js';
|
|
|
3
3
|
export default html`
|
|
4
4
|
<svg
|
|
5
5
|
width="40"
|
|
6
|
-
height="
|
|
7
|
-
viewBox="0 0 40
|
|
6
|
+
height="40"
|
|
7
|
+
viewBox="0 0 40 40"
|
|
8
8
|
xmlns="http://www.w3.org/2000/svg"
|
|
9
9
|
aria-labelledby="uploadTitleID uploadDescID"
|
|
10
10
|
>
|
package/src/assets/img/icons.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import audio from './icon-audio.js';
|
|
2
2
|
import close from './icon-close.js';
|
|
3
3
|
import donate from './icon-donate.js';
|
|
4
|
+
import donateUnpadded from './icon-donate-unpadded.js';
|
|
4
5
|
import ellipses from './icon-ellipses.js';
|
|
5
6
|
import iaLogo from './icon-ia-logo.js';
|
|
6
7
|
import images from './icon-images.js';
|
|
@@ -17,6 +18,7 @@ export default {
|
|
|
17
18
|
audio,
|
|
18
19
|
close,
|
|
19
20
|
donate,
|
|
21
|
+
donateUnpadded,
|
|
20
22
|
ellipses,
|
|
21
23
|
iaLogo,
|
|
22
24
|
images,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { svg } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
2
|
|
|
3
3
|
export default svg`
|
|
4
|
-
<svg class="ia-wordmark stacked"
|
|
4
|
+
<svg class="ia-wordmark stacked" viewBox="0 0 95 30" xmlns="http://www.w3.org/2000/svg">
|
|
5
5
|
<g fill="#fff" fill-rule="evenodd">
|
|
6
6
|
<g transform="translate(0 17)">
|
|
7
7
|
<path d="m3.07645967 2.60391777c.09263226-.31901841.26275495-.97477846.26275495-1.10630359 0-.74950669-.57227138-.76816274-1.19041353-.88009902v-.41183224h2.90678232l3.77209227 12.60682378h-1.60725868l-1.16012991-3.8963154h-3.94266032l-1.15968456 3.8963154h-.95794221zm-.69607795 5.4317081h3.41670507l-1.76223957-5.469953z"/><path d="m13.2661876 2.75363255c0-1.85487748-.0316196-1.85487748-1.469201-2.13611739v-.41183224h3.8032666c1.1601299 0 4.3599508 0 4.3599508 3.35342446 0 2.13518459-1.143652 2.84737918-2.3652399 3.0903742l2.8448791 6.16302512h-1.7773814l-2.7366596-5.82581707h-.9588329v5.82581707h-1.7007817zm1.7007817 3.35295806h.8817878c1.0042583 0 2.411556-.33674165 2.411556-2.43508055 0-2.0237147-.9588329-2.58572812-2.2579112-2.58572812-1.0354326 0-1.0354326.33720805-1.0354326 1.68650665z"/><path d="m30.9386422 12.2878054c-.5250645.2817063-1.3761234.7121946-2.9682403.7121946-3.3552471 0-4.5612478-2.4537366-4.5612478-6.66860403 0-3.4089262.86531-6.18214759 4.3136347-6.18214759 1.3761234 0 2.3812724.28077351 3.0920468.56201342l.0930776 3.12908549h-.4484648c-.0619033-.95612241-.9125167-2.79187744-2.5821241-2.79187744-2.2726076 0-2.6440273 2.94065941-2.6440273 5.28292612 0 2.95931547.8510588 5.61966783 2.9994146 5.61966783 1.4692009 0 2.2267368-.5620135 2.7059306-.9551897z"/><path d="m35.4546446 2.67900836c0-1.48129014-.0926322-1.64966096-1.5466914-1.83622143v-.41276504l3.2470277-.43002189v5.80669465h4.2049699v-5.60101173h1.7007816v12.60682378h-1.7007816v-6.12571303h-4.2049699v6.12571303h-1.7003363z"/><path d="m46.0300434 12.3447063c1.0973359 0 1.3137748-.2807735 1.3137748-1.7420083v-8.05568117c0-1.46123489-.2164389-1.741542-1.3137748-1.741542v-.46919958h4.3287765v.46919958c-1.0826395 0-1.3137748.28030711-1.3137748 1.741542v8.05568117c0 1.4612348.2311353 1.7420083 1.3137748 1.7420083v.4678004h-4.3287765z"/><path d="m55.1990352 2.60391777c-.494781-1.7051627-.6341747-1.7051627-1.8709043-1.98640261v-.41183224h2.9994145l3.0301436 10.26548988h.0307289l2.9535438-10.26548988h1.0042584l-3.771647 12.60682378h-1.344949z"/><path d="m67.7842867 2.75363255c0-1.85487748-.0463161-1.85487748-1.4687557-2.13611739v-.41183224h7.4061269l.0463161 2.77228859h-.433323c0-1.49854698-.6488711-1.89218957-1.6696073-1.89218957h-1.2060007c-.7726777 0-.9735293.07462419-.9735293.97431206v3.7279446h1.8709043c1.0657162 0 1.174381-.82366447 1.2674586-1.44164603h.4324323v3.93316112h-.4324323c0-1.01162415-.3402454-1.61141607-1.2674586-1.61141607h-1.8709043v4.17755538c0 1.0489362.2008516 1.0867147.9735293 1.0867147h1.7168141c.8804518 0 1.2977423-.3749865 1.3908199-1.835755h.433323l-.0472068 2.715854h-6.1685065z"/>
|
package/src/primary-nav.js
CHANGED
|
@@ -145,14 +145,25 @@ class PrimaryNav extends TrackedElement {
|
|
|
145
145
|
get mobileDonateHeart() {
|
|
146
146
|
return html`
|
|
147
147
|
<a class="mobile-donate-link" href=${formatUrl('/donate/?origin=iawww-mbhrt', this.baseHost)}>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</span>
|
|
151
|
-
<span class="label">"Donate to the archive"</span>
|
|
148
|
+
${icons.donateUnpadded}
|
|
149
|
+
<span class="sr-only">"Donate to the archive"</span>
|
|
152
150
|
</a>
|
|
153
151
|
`;
|
|
154
152
|
}
|
|
155
153
|
|
|
154
|
+
get uploadButtonTemplate() {
|
|
155
|
+
return html`<a href="${formatUrl('/create', this.baseHost)}" class="upload">
|
|
156
|
+
${icons.upload}
|
|
157
|
+
<span>Upload</span>
|
|
158
|
+
</a>`;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
get userStateTemplate() {
|
|
162
|
+
return html`<div class="user-info">
|
|
163
|
+
${this.username ? this.userIcon : this.loginIcon}
|
|
164
|
+
</div>`;
|
|
165
|
+
}
|
|
166
|
+
|
|
156
167
|
get secondLogoSlot() {
|
|
157
168
|
return this.allowSecondaryIcon
|
|
158
169
|
? html`
|
|
@@ -181,14 +192,12 @@ class PrimaryNav extends TrackedElement {
|
|
|
181
192
|
>
|
|
182
193
|
${this.secondLogoSlot}
|
|
183
194
|
</div>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
${
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
<div class="user-info">
|
|
191
|
-
${this.username ? this.userIcon : this.loginIcon}
|
|
195
|
+
|
|
196
|
+
<div class="right-side-section">
|
|
197
|
+
${this.mobileDonateHeart}
|
|
198
|
+
${this.searchMenu}
|
|
199
|
+
${this.uploadButtonTemplate}
|
|
200
|
+
${this.userStateTemplate}
|
|
192
201
|
</div>
|
|
193
202
|
<media-menu
|
|
194
203
|
.baseHost=${this.baseHost}
|
|
@@ -82,10 +82,12 @@ export default css`
|
|
|
82
82
|
display: flex;
|
|
83
83
|
justify-content: left;
|
|
84
84
|
align-items: center;
|
|
85
|
-
}
|
|
85
|
+
}
|
|
86
86
|
a.mobile-upload svg {
|
|
87
87
|
fill: var(--white);
|
|
88
|
-
margin-right:
|
|
88
|
+
margin-right: 1rem;
|
|
89
|
+
height: 1.4rem;
|
|
90
|
+
width: 1.4rem;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
@media (min-width: 890px) {
|
|
@@ -3,14 +3,16 @@ import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
|
3
3
|
export default css`
|
|
4
4
|
.dropdown-toggle {
|
|
5
5
|
display: block;
|
|
6
|
-
height: 4rem;
|
|
7
|
-
font-size: 1.6rem;
|
|
8
6
|
text-transform: uppercase;
|
|
9
|
-
text-decoration: none;
|
|
10
7
|
color: var(--grey80);
|
|
11
8
|
cursor: pointer;
|
|
12
9
|
}
|
|
13
10
|
|
|
11
|
+
.dropdown-toggle svg {
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 4rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
14
16
|
.dropdown-toggle .fill-color {
|
|
15
17
|
fill: var(--iconFill);
|
|
16
18
|
}
|
|
@@ -20,10 +22,6 @@ export default css`
|
|
|
20
22
|
.dropdown-toggle:hover .fill-color {
|
|
21
23
|
fill: var(--linkHoverColor);
|
|
22
24
|
}
|
|
23
|
-
.dropdown-toggle svg {
|
|
24
|
-
height: 4rem;
|
|
25
|
-
width: 4rem;
|
|
26
|
-
}
|
|
27
25
|
|
|
28
26
|
.active {
|
|
29
27
|
border-radius: 1rem 1rem 0 0;
|
|
@@ -54,7 +52,8 @@ export default css`
|
|
|
54
52
|
|
|
55
53
|
@media (min-width: 890px) {
|
|
56
54
|
.logged-out-toolbar {
|
|
57
|
-
|
|
55
|
+
padding: 1rem 0.5rem;
|
|
56
|
+
vertical-align: middle;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.active {
|
|
@@ -65,6 +64,13 @@ export default css`
|
|
|
65
64
|
display: inline-block;
|
|
66
65
|
vertical-align: middle;
|
|
67
66
|
}
|
|
67
|
+
|
|
68
|
+
.dropdown-toggle svg {
|
|
69
|
+
height: 3rem;
|
|
70
|
+
width: 3rem;
|
|
71
|
+
display: block;
|
|
72
|
+
}
|
|
73
|
+
|
|
68
74
|
span {
|
|
69
75
|
display: inline;
|
|
70
76
|
vertical-align: middle;
|
|
@@ -7,7 +7,7 @@ export default css`
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.menu-item {
|
|
10
|
-
display: inline-
|
|
10
|
+
display: inline-block;
|
|
11
11
|
width: 100%;
|
|
12
12
|
padding: 0;
|
|
13
13
|
font-size: 1.6rem;
|
|
@@ -41,9 +41,10 @@ export default css`
|
|
|
41
41
|
-ms-flex-pack: center;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
}
|
|
44
|
+
|
|
44
45
|
.menu-item > .icon > svg {
|
|
45
|
-
height: 4rem;
|
|
46
|
-
width: 4rem;
|
|
46
|
+
height: 4rem;
|
|
47
|
+
width: 4rem;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
.menu-item.selected .icon {
|
|
@@ -68,6 +69,7 @@ export default css`
|
|
|
68
69
|
width: auto;
|
|
69
70
|
height: 5rem;
|
|
70
71
|
color: var(--mediaLabelDesktopColor);
|
|
72
|
+
display: inline-flex;
|
|
71
73
|
}
|
|
72
74
|
.menu-item:hover,
|
|
73
75
|
.menu-item:active,
|
|
@@ -93,7 +95,6 @@ export default css`
|
|
|
93
95
|
color: inherit;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
|
|
97
98
|
.web:after {
|
|
98
99
|
display: none;
|
|
99
100
|
content: "web";
|
|
@@ -142,7 +143,7 @@ export default css`
|
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
@media (min-width:
|
|
146
|
+
@media (min-width: 1200px) {
|
|
146
147
|
.label,
|
|
147
148
|
.web:after {
|
|
148
149
|
display: inline;
|
|
@@ -22,7 +22,7 @@ export default css`
|
|
|
22
22
|
right: 0;
|
|
23
23
|
left: 0;
|
|
24
24
|
padding: 0;
|
|
25
|
-
height:
|
|
25
|
+
height: 31.9rem;
|
|
26
26
|
overflow-x: hidden;
|
|
27
27
|
font-size: 1.4rem;
|
|
28
28
|
background: var(--mediaSliderBg);
|
|
@@ -43,7 +43,7 @@ export default css`
|
|
|
43
43
|
@media (max-width: 889px) {
|
|
44
44
|
.overflow-clip.open {
|
|
45
45
|
display: block;
|
|
46
|
-
height:
|
|
46
|
+
height: 35.8rem;
|
|
47
47
|
left: 4rem;
|
|
48
48
|
top: 0;
|
|
49
49
|
}
|
|
@@ -73,7 +73,7 @@ export default css`
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.info-box {
|
|
76
|
-
max-width:
|
|
76
|
+
max-width: 100rem;
|
|
77
77
|
padding: 1.5rem 0;
|
|
78
78
|
margin: 0 auto;
|
|
79
79
|
}
|
|
@@ -27,7 +27,7 @@ export default [subnavListCSS, css`
|
|
|
27
27
|
|
|
28
28
|
.icon-links a {
|
|
29
29
|
display: inline-block;
|
|
30
|
-
width:
|
|
30
|
+
width: 12rem;
|
|
31
31
|
margin-bottom: 1.5rem;
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
white-space: nowrap;
|
|
@@ -67,7 +67,7 @@ export default [subnavListCSS, css`
|
|
|
67
67
|
|
|
68
68
|
.icon-links a {
|
|
69
69
|
padding-top: 3.5rem;
|
|
70
|
-
max-width:
|
|
70
|
+
max-width: 16rem;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.links {
|
package/src/styles/nav-search.js
CHANGED
|
@@ -95,8 +95,8 @@ export default css`
|
|
|
95
95
|
@media (min-width: 890px) {
|
|
96
96
|
.search svg {
|
|
97
97
|
display: inline;
|
|
98
|
-
width:
|
|
99
|
-
height:
|
|
98
|
+
width: 2.8rem;
|
|
99
|
+
height: 2.8rem;
|
|
100
100
|
vertical-align: -14px;
|
|
101
101
|
}
|
|
102
102
|
.search path {
|
|
@@ -107,7 +107,7 @@ export default css`
|
|
|
107
107
|
.search-activated {
|
|
108
108
|
display: block;
|
|
109
109
|
position: static;
|
|
110
|
-
padding: 1.
|
|
110
|
+
padding: 1.1rem 0.2rem;
|
|
111
111
|
background: transparent;
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -11,10 +11,10 @@ export default css`
|
|
|
11
11
|
position: relative;
|
|
12
12
|
display: -ms-grid;
|
|
13
13
|
display: grid;
|
|
14
|
-
height:
|
|
14
|
+
height: 4rem;
|
|
15
15
|
grid-template-areas: 'hamburger empty heart search user';
|
|
16
|
-
-ms-grid-columns:
|
|
17
|
-
grid-template-columns:
|
|
16
|
+
-ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem 4rem;
|
|
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);
|
|
@@ -23,10 +23,14 @@ export default css`
|
|
|
23
23
|
|
|
24
24
|
nav.hide-search {
|
|
25
25
|
grid-template-areas: 'hamburger empty heart user';
|
|
26
|
-
-ms-grid-columns:
|
|
27
|
-
grid-template-columns:
|
|
26
|
+
-ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem;
|
|
27
|
+
grid-template-columns: 4rem auto 4rem 4rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.right-side-section {
|
|
31
|
+
display: flex;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
30
34
|
button {
|
|
31
35
|
background: none;
|
|
32
36
|
color: inherit;
|
|
@@ -56,17 +60,19 @@ export default css`
|
|
|
56
60
|
grid-column-end: user-end;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
.ia-logo,
|
|
60
|
-
.ia-wordmark {
|
|
61
|
-
margin-right: 5px;
|
|
62
|
-
height: 3rem;
|
|
63
|
-
}
|
|
64
63
|
.ia-logo {
|
|
64
|
+
height: 3rem;
|
|
65
65
|
width: 2.7rem;
|
|
66
|
+
display: inline-block;
|
|
66
67
|
}
|
|
67
68
|
.ia-wordmark {
|
|
69
|
+
height: 3rem;
|
|
68
70
|
width: 9.5rem;
|
|
69
71
|
}
|
|
72
|
+
.ia-logo,
|
|
73
|
+
.ia-wordmark {
|
|
74
|
+
margin-right: 5px;
|
|
75
|
+
}
|
|
70
76
|
|
|
71
77
|
.hamburger {
|
|
72
78
|
-ms-grid-row: 1;
|
|
@@ -74,54 +80,42 @@ export default css`
|
|
|
74
80
|
grid-area: hamburger;
|
|
75
81
|
padding: 0;
|
|
76
82
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
grid-area: heart;
|
|
82
|
-
position: relative;
|
|
83
|
-
padding: 0;
|
|
84
|
-
z-index: 1;
|
|
85
|
-
width: 100%;
|
|
86
|
-
text-align: right;
|
|
87
|
-
-webkit-box-align: center;
|
|
88
|
-
-ms-flex-align: center;
|
|
89
|
-
align-items: center;
|
|
83
|
+
.hamburger svg {
|
|
84
|
+
height: 4rem;
|
|
85
|
+
width: 4rem;
|
|
86
|
+
fill: var(--activeColor);
|
|
90
87
|
}
|
|
88
|
+
|
|
91
89
|
.mobile-donate-link svg {
|
|
92
|
-
height:
|
|
93
|
-
width:
|
|
94
|
-
margin-top: -5px;
|
|
95
|
-
margin-left: -5px;
|
|
90
|
+
height: 4rem;
|
|
91
|
+
width: 4rem;
|
|
96
92
|
}
|
|
97
93
|
.mobile-donate-link .fill-color {
|
|
98
94
|
fill: rgb(255, 0, 0);
|
|
99
95
|
}
|
|
100
|
-
|
|
96
|
+
|
|
97
|
+
.sr-only {
|
|
101
98
|
position: absolute;
|
|
102
99
|
width: 1px;
|
|
103
100
|
height: 1px;
|
|
104
|
-
padding: 0;
|
|
105
101
|
margin: -1px;
|
|
106
|
-
|
|
107
|
-
clip: rect(0,0,0,0);
|
|
102
|
+
padding: 0;
|
|
108
103
|
border: 0;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
107
|
+
-webkit-clip-path: inset(50%);
|
|
108
|
+
clip-path: inset(50%);
|
|
109
|
+
user-select: none;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.search-trigger {
|
|
112
|
-
-ms-grid-row: 1;
|
|
113
|
-
-ms-grid-column: 4;
|
|
114
|
-
grid-area: search;
|
|
115
|
-
position: relative;
|
|
116
113
|
padding: 0;
|
|
117
|
-
z-index: 1;
|
|
118
|
-
width: 100%;
|
|
119
|
-
text-align: right;
|
|
120
|
-
-webkit-box-align: center;
|
|
121
|
-
-ms-flex-align: center;
|
|
122
|
-
align-items: center;
|
|
123
114
|
}
|
|
124
|
-
|
|
115
|
+
.search-trigger svg {
|
|
116
|
+
height: 4rem;
|
|
117
|
+
width: 4rem;
|
|
118
|
+
}
|
|
125
119
|
.search-trigger .fill-color {
|
|
126
120
|
fill: var(--iconFill);
|
|
127
121
|
}
|
|
@@ -139,26 +133,21 @@ export default css`
|
|
|
139
133
|
display: none;
|
|
140
134
|
}
|
|
141
135
|
|
|
142
|
-
.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
grid-area: user;
|
|
146
|
-
-ms-grid-row-align: stretch;
|
|
147
|
-
align-self: stretch;
|
|
148
|
-
-ms-grid-column-align: end;
|
|
149
|
-
justify-self: end;
|
|
136
|
+
.upload svg {
|
|
137
|
+
height: 3rem;
|
|
138
|
+
width: 3rem;
|
|
150
139
|
}
|
|
151
140
|
|
|
152
141
|
.screen-name {
|
|
153
142
|
display: none;
|
|
154
|
-
font-size: 1.
|
|
155
|
-
padding-left: 0.5rem;
|
|
143
|
+
font-size: 1.3rem;
|
|
156
144
|
vertical-align: middle;
|
|
157
145
|
text-transform: uppercase;
|
|
158
146
|
}
|
|
159
147
|
|
|
160
148
|
.user-menu {
|
|
161
149
|
color: var(--lightTextColor);
|
|
150
|
+
padding: 0.5rem;
|
|
162
151
|
height: 100%;
|
|
163
152
|
}
|
|
164
153
|
|
|
@@ -178,8 +167,8 @@ export default css`
|
|
|
178
167
|
}
|
|
179
168
|
|
|
180
169
|
.link-home {
|
|
181
|
-
display: flex;
|
|
182
170
|
text-decoration: none;
|
|
171
|
+
display: inline-flex;
|
|
183
172
|
}
|
|
184
173
|
|
|
185
174
|
@media only screen and (min-width: 890px) and (max-device-width: 905px) {
|
|
@@ -202,13 +191,17 @@ export default css`
|
|
|
202
191
|
|
|
203
192
|
@media (min-width: 890px) {
|
|
204
193
|
:host {
|
|
205
|
-
--userIconWidth:
|
|
206
|
-
--userIconHeight:
|
|
194
|
+
--userIconWidth: 3.2rem;
|
|
195
|
+
--userIconHeight: 3.2rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.right-side-section {
|
|
199
|
+
display: contents;
|
|
207
200
|
}
|
|
208
201
|
|
|
209
202
|
nav {
|
|
210
203
|
display: block;
|
|
211
|
-
z-index:
|
|
204
|
+
z-index: 4;
|
|
212
205
|
height: 5rem;
|
|
213
206
|
padding-right: 1.5rem;
|
|
214
207
|
}
|
|
@@ -233,10 +226,21 @@ export default css`
|
|
|
233
226
|
}
|
|
234
227
|
|
|
235
228
|
.user-info {
|
|
229
|
+
display: block;
|
|
236
230
|
float: right;
|
|
237
|
-
|
|
231
|
+
vertical-align: middle;
|
|
232
|
+
height: 100%;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.user-info .user-menu img {
|
|
236
|
+
height: 3rem;
|
|
237
|
+
width: 3rem;
|
|
238
|
+
margin-right: 0.5rem;
|
|
238
239
|
}
|
|
239
240
|
|
|
241
|
+
.user-menu {
|
|
242
|
+
padding: 1rem 0.5rem;
|
|
243
|
+
}
|
|
240
244
|
.user-menu.active {
|
|
241
245
|
background: transparent;
|
|
242
246
|
}
|
|
@@ -244,12 +248,13 @@ export default css`
|
|
|
244
248
|
.user-menu img {
|
|
245
249
|
display: inline-block;
|
|
246
250
|
vertical-align: middle;
|
|
251
|
+
margin-right: 0.5rem;
|
|
247
252
|
}
|
|
248
253
|
|
|
249
254
|
.upload {
|
|
250
255
|
display: block;
|
|
256
|
+
padding: 1rem 0.5rem;
|
|
251
257
|
float: right;
|
|
252
|
-
margin-top: 1rem;
|
|
253
258
|
font-size: 1.4rem;
|
|
254
259
|
text-transform: uppercase;
|
|
255
260
|
text-decoration: none;
|
|
@@ -262,8 +267,6 @@ export default css`
|
|
|
262
267
|
}
|
|
263
268
|
|
|
264
269
|
.upload svg {
|
|
265
|
-
width: 3.2rem;
|
|
266
|
-
height: 3.2rem;
|
|
267
270
|
vertical-align: middle;
|
|
268
271
|
fill: var(--iconFill);
|
|
269
272
|
}
|
|
@@ -279,10 +282,6 @@ export default css`
|
|
|
279
282
|
margin-left: 1rem;
|
|
280
283
|
}
|
|
281
284
|
|
|
282
|
-
login-button {
|
|
283
|
-
display: block;
|
|
284
|
-
margin-right: 1rem;
|
|
285
|
-
}
|
|
286
285
|
}
|
|
287
286
|
|
|
288
287
|
@media (min-width: 990px) {
|
|
@@ -12,11 +12,12 @@ export default css`
|
|
|
12
12
|
|
|
13
13
|
input[type="text"] {
|
|
14
14
|
width: 100%;
|
|
15
|
-
height:
|
|
15
|
+
height: 3rem;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
border: 1px solid var(--savePageInputBorder);
|
|
18
18
|
border-radius: .5rem;
|
|
19
19
|
color: var(--grey13);
|
|
20
|
+
font-size: inherit;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
input[type="submit"] {
|
|
@@ -5,7 +5,7 @@ export default css`
|
|
|
5
5
|
.initial,
|
|
6
6
|
.closed,
|
|
7
7
|
.open {
|
|
8
|
-
right:
|
|
8
|
+
right: 33.5rem;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.search-hidden.initial,
|
|
@@ -25,7 +25,7 @@ export default css`
|
|
|
25
25
|
.search-hidden.initial,
|
|
26
26
|
.search-hidden.closed,
|
|
27
27
|
.search-hidden.open {
|
|
28
|
-
right:
|
|
28
|
+
right: 26rem;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
`;
|
package/src/styles/user-menu.js
CHANGED
|
@@ -5,7 +5,7 @@ export default css`
|
|
|
5
5
|
.initial,
|
|
6
6
|
.closed,
|
|
7
7
|
.open {
|
|
8
|
-
right:
|
|
8
|
+
right: 22.4rem;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.search-hidden.initial,
|
|
@@ -19,7 +19,7 @@ export default css`
|
|
|
19
19
|
.initial,
|
|
20
20
|
.closed,
|
|
21
21
|
.open {
|
|
22
|
-
right:
|
|
22
|
+
right: 27.2rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.search-hidden.initial,
|
package/src/assets/img/user.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { html, css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
-
import Icon from './icon.js';
|
|
3
|
-
|
|
4
|
-
class User extends Icon {
|
|
5
|
-
static get styles() {
|
|
6
|
-
return css`
|
|
7
|
-
svg {
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
width: var(--userIconWidth);
|
|
10
|
-
height: var(--userIconHeight);
|
|
11
|
-
}
|
|
12
|
-
path {
|
|
13
|
-
fill: var(--baseColor);
|
|
14
|
-
}
|
|
15
|
-
.active {
|
|
16
|
-
fill: var(--activeColor);
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
render() {
|
|
22
|
-
return html`
|
|
23
|
-
<svg
|
|
24
|
-
width="40"
|
|
25
|
-
height="40"
|
|
26
|
-
viewBox="0 0 40 40"
|
|
27
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
-
aria-labelledby="userTitleID userDescID"
|
|
29
|
-
>
|
|
30
|
-
<title id="userTitleID">User icon</title>
|
|
31
|
-
<desc id="userDescID">An illustration of a person's head and chest.</desc>
|
|
32
|
-
<path class="${this.active ? 'active' : ''}" d="m20.7130435 18.0434783c-3.5658385 0-6.4565218-2.9198821-6.4565218-6.5217392 0-3.60185703 2.8906833-6.5217391 6.4565218-6.5217391s6.4565217 2.91988207 6.4565217 6.5217391c0 3.6018571-2.8906832 6.5217392-6.4565217 6.5217392zm-12.9130435 16.9565217c0-7.9240855 5.7813665-14.3478261 12.9130435-14.3478261s12.9130435 6.4237406 12.9130435 14.3478261z" fill-rule="evenodd"/>
|
|
33
|
-
</svg>
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
customElements.define('user-image', User);
|