@internetarchive/ia-topnav 2.1.0-alpha-webdev8660.0 → 2.1.0

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.
Files changed (41) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/src/models.js.map +1 -1
  3. package/dist/src/styles/base.js +45 -45
  4. package/dist/src/styles/base.js.map +1 -1
  5. package/dist/src/styles/dropdown-menu.js +169 -169
  6. package/dist/src/styles/dropdown-menu.js.map +1 -1
  7. package/dist/src/styles/ia-topnav.js +82 -82
  8. package/dist/src/styles/ia-topnav.js.map +1 -1
  9. package/dist/src/styles/login-button.js +87 -87
  10. package/dist/src/styles/login-button.js.map +1 -1
  11. package/dist/src/styles/media-button.js +153 -153
  12. package/dist/src/styles/media-button.js.map +1 -1
  13. package/dist/src/styles/media-menu.js +63 -63
  14. package/dist/src/styles/media-menu.js.map +1 -1
  15. package/dist/src/styles/media-slider.js +78 -78
  16. package/dist/src/styles/media-slider.js.map +1 -1
  17. package/dist/src/styles/media-subnav.js +152 -152
  18. package/dist/src/styles/media-subnav.js.map +1 -1
  19. package/dist/src/styles/primary-nav.js +353 -353
  20. package/dist/src/styles/primary-nav.js.map +1 -1
  21. package/dist/src/styles/save-page-form.js +51 -51
  22. package/dist/src/styles/save-page-form.js.map +1 -1
  23. package/dist/src/styles/wayback-search.js +45 -45
  24. package/dist/src/styles/wayback-search.js.map +1 -1
  25. package/dist/src/styles/wayback-slider.js +26 -26
  26. package/dist/src/styles/wayback-slider.js.map +1 -1
  27. package/index.ts +3 -3
  28. package/package.json +1 -1
  29. package/src/models.ts +68 -68
  30. package/src/styles/base.ts +49 -49
  31. package/src/styles/dropdown-menu.ts +173 -173
  32. package/src/styles/ia-topnav.ts +86 -86
  33. package/src/styles/login-button.ts +91 -91
  34. package/src/styles/media-button.ts +157 -157
  35. package/src/styles/media-menu.ts +67 -67
  36. package/src/styles/media-slider.ts +82 -82
  37. package/src/styles/media-subnav.ts +160 -160
  38. package/src/styles/primary-nav.ts +357 -357
  39. package/src/styles/save-page-form.ts +55 -55
  40. package/src/styles/wayback-search.ts +49 -49
  41. package/src/styles/wayback-slider.ts +34 -34
@@ -1,357 +1,357 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- button:focus,
6
- input:focus {
7
- outline: none;
8
- }
9
-
10
- nav {
11
- position: relative;
12
- display: flex;
13
- height: 4rem;
14
- grid-template-areas: 'hamburger empty heart search user';
15
- -ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem 4rem;
16
- grid-template-columns: 4rem auto 4rem 4rem 4rem;
17
- -ms-grid-rows: 100%;
18
- grid-template-rows: 100%;
19
- background: var(--primaryNavBg);
20
- border-bottom: 1px solid var(--primaryNavBottomBorder);
21
- }
22
-
23
- nav.hide-search {
24
- grid-template-areas: 'hamburger empty heart user';
25
- -ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem;
26
- grid-template-columns: 4rem auto 4rem 4rem;
27
- }
28
-
29
- .right-side-section {
30
- display: flex;
31
- margin-left: auto;
32
- user-select: none;
33
- }
34
- button {
35
- background: none;
36
- color: inherit;
37
- border: none;
38
- font: inherit;
39
- cursor: pointer;
40
- }
41
-
42
- .branding {
43
- position: static;
44
- float: left;
45
- margin: 0 !important;
46
- padding: 0 5px 0 10px;
47
- -webkit-transform: translate(0, 0);
48
- -ms-transform: translate(0, 0);
49
- transform: translate(0, 0);
50
- }
51
-
52
- slot,
53
- .branding {
54
- display: flex;
55
- justify-content: left;
56
- align-items: center;
57
- }
58
-
59
- media-menu {
60
- flex: 1;
61
- justify-self: stretch;
62
- }
63
-
64
- .ia-logo {
65
- height: 3rem;
66
- width: 2.7rem;
67
- display: inline-block;
68
- }
69
- .ia-wordmark {
70
- height: 3rem;
71
- width: 9.5rem;
72
- }
73
- .ia-logo,
74
- .ia-wordmark {
75
- margin-right: 5px;
76
- }
77
-
78
- .hamburger {
79
- -ms-grid-row: 1;
80
- -ms-grid-column: 1;
81
- grid-area: hamburger;
82
- padding: 0;
83
- }
84
- .hamburger svg {
85
- height: 4rem;
86
- width: 4rem;
87
- fill: var(--activeColor);
88
- }
89
-
90
- .mobile-donate-link {
91
- display: inline-block;
92
- }
93
- .mobile-donate-link svg {
94
- height: 4rem;
95
- width: 4rem;
96
- }
97
- .mobile-donate-link .fill-color {
98
- fill: rgb(255, 0, 0);
99
- }
100
-
101
- .sr-only {
102
- position: absolute;
103
- width: 1px;
104
- height: 1px;
105
- margin: -1px;
106
- padding: 0;
107
- border: 0;
108
- overflow: hidden;
109
- white-space: nowrap;
110
- clip: rect(1px, 1px, 1px, 1px);
111
- -webkit-clip-path: inset(50%);
112
- clip-path: inset(50%);
113
- user-select: none;
114
- }
115
-
116
- .search-trigger {
117
- padding: 0;
118
- }
119
- .search-trigger svg {
120
- height: 4rem;
121
- width: 4rem;
122
- }
123
- .search-trigger .fill-color {
124
- fill: var(--iconFill);
125
- }
126
-
127
- .search-container {
128
- display: none;
129
- }
130
-
131
- .search-container.open {
132
- display: flex;
133
- position: absolute;
134
- top: 0;
135
- right: 4rem;
136
- bottom: 0;
137
- left: 4rem;
138
- z-index: 3;
139
- padding: 0.5rem;
140
- border-radius: 1rem 1rem 0 0;
141
- background: var(--primaryNavBg);
142
- align-items: center;
143
- animation: fade-in 0.2s forwards;
144
- }
145
-
146
- .search-container ::slotted(*) {
147
- display: block;
148
- }
149
-
150
- .search-container slot {
151
- width: 100%;
152
- }
153
-
154
- @keyframes fade-in {
155
- 0% {
156
- opacity: 0;
157
- }
158
- 100% {
159
- opacity: 1;
160
- }
161
- }
162
-
163
- .upload {
164
- display: none;
165
- }
166
-
167
- .upload span {
168
- display: none;
169
- }
170
-
171
- .upload svg {
172
- height: 3rem;
173
- width: 3rem;
174
- }
175
-
176
- .screen-name {
177
- display: none;
178
- font-size: 1.3rem;
179
- vertical-align: middle;
180
- text-transform: uppercase;
181
- }
182
-
183
- .user-menu {
184
- color: var(--lightTextColor);
185
- padding: 0.5rem;
186
- height: 100%;
187
- }
188
-
189
- button.user-menu:hover,
190
- button.user-menu:focus {
191
- color: var(--linkHoverColor);
192
- outline: none;
193
- }
194
-
195
- .user-menu.active {
196
- border-radius: 1rem 1rem 0 0;
197
- background: var(--activeButtonBg);
198
- }
199
-
200
- .user-menu img {
201
- display: block;
202
- width: 3rem;
203
- height: 3rem;
204
- }
205
-
206
- .link-home {
207
- text-decoration: none;
208
- display: inline-flex;
209
- }
210
- a.link-home:focus,
211
- a.link-home:focus-visible {
212
- outline-offset: 1px;
213
- }
214
-
215
- @media only screen and (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) and (max-device-width: 905px) {
216
- .branding.second-logo {
217
- padding-right: 0;
218
- }
219
- }
220
-
221
- @media (min-width: 906px) {
222
- .branding.second-logo {
223
- padding-right: 20px;
224
- }
225
- }
226
-
227
- @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
228
- slot[name='opt-sec-logo'] {
229
- display: none;
230
- }
231
-
232
- .right-side-section {
233
- display: initial;
234
- }
235
- .right-side-section .user-info {
236
- float: right;
237
- }
238
- }
239
-
240
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
241
- :host {
242
- --userIconWidth: 3.2rem;
243
- --userIconHeight: 3.2rem;
244
- }
245
-
246
- nav {
247
- display: flex;
248
- z-index: 4;
249
- height: 5rem;
250
- padding-right: 1.5rem;
251
- }
252
-
253
- slot[name='opt-sec-logo-mobile'] {
254
- display: none;
255
- }
256
-
257
- .ia-logo,
258
- .ia-wordmark {
259
- margin-right: 10px;
260
- }
261
-
262
- .hamburger,
263
- .search-trigger,
264
- .mobile-donate-link {
265
- display: none;
266
- }
267
-
268
- .user-info {
269
- display: block;
270
- float: right;
271
- vertical-align: middle;
272
- height: 100%;
273
- }
274
-
275
- .user-info .user-menu img {
276
- height: 3rem;
277
- width: 3rem;
278
- margin-right: 0.5rem;
279
- }
280
-
281
- .user-menu {
282
- padding: 1rem 0.5rem;
283
- }
284
- .user-menu.active {
285
- background: transparent;
286
- }
287
-
288
- .user-menu img {
289
- display: inline-block;
290
- vertical-align: middle;
291
- margin-right: 0.5rem;
292
- }
293
-
294
- .upload {
295
- display: block;
296
- padding: 1rem 0.5rem;
297
- float: right;
298
- font-size: 1.4rem;
299
- text-transform: uppercase;
300
- text-decoration: none;
301
- color: var(--lightTextColor);
302
- }
303
- .upload:active,
304
- .upload:focus,
305
- .upload:hover {
306
- color: var(--linkHoverColor);
307
- }
308
- .upload:focus-visible {
309
- outline: none;
310
- }
311
-
312
- .upload svg {
313
- vertical-align: middle;
314
- fill: var(--iconFill);
315
- }
316
-
317
- .upload:hover svg,
318
- .upload:focus svg,
319
- .upload:active svg {
320
- fill: var(--linkHoverColor);
321
- }
322
-
323
- .search-container,
324
- .search-container.open {
325
- display: flex;
326
- position: static;
327
- top: auto;
328
- right: auto;
329
- bottom: auto;
330
- left: auto;
331
- align-items: center;
332
- padding: 0 0 0 1rem;
333
- background: transparent;
334
- border-radius: 0;
335
- z-index: auto;
336
- }
337
-
338
- .search-container slot {
339
- width: auto;
340
- }
341
- }
342
-
343
- @media (min-width: 990px) {
344
- .screen-name {
345
- display: inline-block;
346
- text-overflow: ellipsis;
347
- overflow: hidden;
348
- white-space: nowrap;
349
- max-width: 165px;
350
- }
351
-
352
- .upload span {
353
- display: inline-block;
354
- vertical-align: middle;
355
- }
356
- }
357
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ button:focus,
6
+ input:focus {
7
+ outline: none;
8
+ }
9
+
10
+ nav {
11
+ position: relative;
12
+ display: flex;
13
+ height: 4rem;
14
+ grid-template-areas: 'hamburger empty heart search user';
15
+ -ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem 4rem;
16
+ grid-template-columns: 4rem auto 4rem 4rem 4rem;
17
+ -ms-grid-rows: 100%;
18
+ grid-template-rows: 100%;
19
+ background: var(--primaryNavBg);
20
+ border-bottom: 1px solid var(--primaryNavBottomBorder);
21
+ }
22
+
23
+ nav.hide-search {
24
+ grid-template-areas: 'hamburger empty heart user';
25
+ -ms-grid-columns: 4rem minmax(1rem, 100%) 4rem 4rem;
26
+ grid-template-columns: 4rem auto 4rem 4rem;
27
+ }
28
+
29
+ .right-side-section {
30
+ display: flex;
31
+ margin-left: auto;
32
+ user-select: none;
33
+ }
34
+ button {
35
+ background: none;
36
+ color: inherit;
37
+ border: none;
38
+ font: inherit;
39
+ cursor: pointer;
40
+ }
41
+
42
+ .branding {
43
+ position: static;
44
+ float: left;
45
+ margin: 0 !important;
46
+ padding: 0 5px 0 10px;
47
+ -webkit-transform: translate(0, 0);
48
+ -ms-transform: translate(0, 0);
49
+ transform: translate(0, 0);
50
+ }
51
+
52
+ slot,
53
+ .branding {
54
+ display: flex;
55
+ justify-content: left;
56
+ align-items: center;
57
+ }
58
+
59
+ media-menu {
60
+ flex: 1;
61
+ justify-self: stretch;
62
+ }
63
+
64
+ .ia-logo {
65
+ height: 3rem;
66
+ width: 2.7rem;
67
+ display: inline-block;
68
+ }
69
+ .ia-wordmark {
70
+ height: 3rem;
71
+ width: 9.5rem;
72
+ }
73
+ .ia-logo,
74
+ .ia-wordmark {
75
+ margin-right: 5px;
76
+ }
77
+
78
+ .hamburger {
79
+ -ms-grid-row: 1;
80
+ -ms-grid-column: 1;
81
+ grid-area: hamburger;
82
+ padding: 0;
83
+ }
84
+ .hamburger svg {
85
+ height: 4rem;
86
+ width: 4rem;
87
+ fill: var(--activeColor);
88
+ }
89
+
90
+ .mobile-donate-link {
91
+ display: inline-block;
92
+ }
93
+ .mobile-donate-link svg {
94
+ height: 4rem;
95
+ width: 4rem;
96
+ }
97
+ .mobile-donate-link .fill-color {
98
+ fill: rgb(255, 0, 0);
99
+ }
100
+
101
+ .sr-only {
102
+ position: absolute;
103
+ width: 1px;
104
+ height: 1px;
105
+ margin: -1px;
106
+ padding: 0;
107
+ border: 0;
108
+ overflow: hidden;
109
+ white-space: nowrap;
110
+ clip: rect(1px, 1px, 1px, 1px);
111
+ -webkit-clip-path: inset(50%);
112
+ clip-path: inset(50%);
113
+ user-select: none;
114
+ }
115
+
116
+ .search-trigger {
117
+ padding: 0;
118
+ }
119
+ .search-trigger svg {
120
+ height: 4rem;
121
+ width: 4rem;
122
+ }
123
+ .search-trigger .fill-color {
124
+ fill: var(--iconFill);
125
+ }
126
+
127
+ .search-container {
128
+ display: none;
129
+ }
130
+
131
+ .search-container.open {
132
+ display: flex;
133
+ position: absolute;
134
+ top: 0;
135
+ right: 4rem;
136
+ bottom: 0;
137
+ left: 4rem;
138
+ z-index: 3;
139
+ padding: 0.5rem;
140
+ border-radius: 1rem 1rem 0 0;
141
+ background: var(--primaryNavBg);
142
+ align-items: center;
143
+ animation: fade-in 0.2s forwards;
144
+ }
145
+
146
+ .search-container ::slotted(*) {
147
+ display: block;
148
+ }
149
+
150
+ .search-container slot {
151
+ width: 100%;
152
+ }
153
+
154
+ @keyframes fade-in {
155
+ 0% {
156
+ opacity: 0;
157
+ }
158
+ 100% {
159
+ opacity: 1;
160
+ }
161
+ }
162
+
163
+ .upload {
164
+ display: none;
165
+ }
166
+
167
+ .upload span {
168
+ display: none;
169
+ }
170
+
171
+ .upload svg {
172
+ height: 3rem;
173
+ width: 3rem;
174
+ }
175
+
176
+ .screen-name {
177
+ display: none;
178
+ font-size: 1.3rem;
179
+ vertical-align: middle;
180
+ text-transform: uppercase;
181
+ }
182
+
183
+ .user-menu {
184
+ color: var(--lightTextColor);
185
+ padding: 0.5rem;
186
+ height: 100%;
187
+ }
188
+
189
+ button.user-menu:hover,
190
+ button.user-menu:focus {
191
+ color: var(--linkHoverColor);
192
+ outline: none;
193
+ }
194
+
195
+ .user-menu.active {
196
+ border-radius: 1rem 1rem 0 0;
197
+ background: var(--activeButtonBg);
198
+ }
199
+
200
+ .user-menu img {
201
+ display: block;
202
+ width: 3rem;
203
+ height: 3rem;
204
+ }
205
+
206
+ .link-home {
207
+ text-decoration: none;
208
+ display: inline-flex;
209
+ }
210
+ a.link-home:focus,
211
+ a.link-home:focus-visible {
212
+ outline-offset: 1px;
213
+ }
214
+
215
+ @media only screen and (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) and (max-device-width: 905px) {
216
+ .branding.second-logo {
217
+ padding-right: 0;
218
+ }
219
+ }
220
+
221
+ @media (min-width: 906px) {
222
+ .branding.second-logo {
223
+ padding-right: 20px;
224
+ }
225
+ }
226
+
227
+ @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
228
+ slot[name='opt-sec-logo'] {
229
+ display: none;
230
+ }
231
+
232
+ .right-side-section {
233
+ display: initial;
234
+ }
235
+ .right-side-section .user-info {
236
+ float: right;
237
+ }
238
+ }
239
+
240
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
241
+ :host {
242
+ --userIconWidth: 3.2rem;
243
+ --userIconHeight: 3.2rem;
244
+ }
245
+
246
+ nav {
247
+ display: flex;
248
+ z-index: 4;
249
+ height: 5rem;
250
+ padding-right: 1.5rem;
251
+ }
252
+
253
+ slot[name='opt-sec-logo-mobile'] {
254
+ display: none;
255
+ }
256
+
257
+ .ia-logo,
258
+ .ia-wordmark {
259
+ margin-right: 10px;
260
+ }
261
+
262
+ .hamburger,
263
+ .search-trigger,
264
+ .mobile-donate-link {
265
+ display: none;
266
+ }
267
+
268
+ .user-info {
269
+ display: block;
270
+ float: right;
271
+ vertical-align: middle;
272
+ height: 100%;
273
+ }
274
+
275
+ .user-info .user-menu img {
276
+ height: 3rem;
277
+ width: 3rem;
278
+ margin-right: 0.5rem;
279
+ }
280
+
281
+ .user-menu {
282
+ padding: 1rem 0.5rem;
283
+ }
284
+ .user-menu.active {
285
+ background: transparent;
286
+ }
287
+
288
+ .user-menu img {
289
+ display: inline-block;
290
+ vertical-align: middle;
291
+ margin-right: 0.5rem;
292
+ }
293
+
294
+ .upload {
295
+ display: block;
296
+ padding: 1rem 0.5rem;
297
+ float: right;
298
+ font-size: 1.4rem;
299
+ text-transform: uppercase;
300
+ text-decoration: none;
301
+ color: var(--lightTextColor);
302
+ }
303
+ .upload:active,
304
+ .upload:focus,
305
+ .upload:hover {
306
+ color: var(--linkHoverColor);
307
+ }
308
+ .upload:focus-visible {
309
+ outline: none;
310
+ }
311
+
312
+ .upload svg {
313
+ vertical-align: middle;
314
+ fill: var(--iconFill);
315
+ }
316
+
317
+ .upload:hover svg,
318
+ .upload:focus svg,
319
+ .upload:active svg {
320
+ fill: var(--linkHoverColor);
321
+ }
322
+
323
+ .search-container,
324
+ .search-container.open {
325
+ display: flex;
326
+ position: static;
327
+ top: auto;
328
+ right: auto;
329
+ bottom: auto;
330
+ left: auto;
331
+ align-items: center;
332
+ padding: 0 0 0 1rem;
333
+ background: transparent;
334
+ border-radius: 0;
335
+ z-index: auto;
336
+ }
337
+
338
+ .search-container slot {
339
+ width: auto;
340
+ }
341
+ }
342
+
343
+ @media (min-width: 990px) {
344
+ .screen-name {
345
+ display: inline-block;
346
+ text-overflow: ellipsis;
347
+ overflow: hidden;
348
+ white-space: nowrap;
349
+ max-width: 165px;
350
+ }
351
+
352
+ .upload span {
353
+ display: inline-block;
354
+ vertical-align: middle;
355
+ }
356
+ }
357
+ `;