@internetarchive/ia-topnav 1.3.1-alpha2 → 1.3.1-alpha3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/ia-topnav",
3
- "version": "1.3.1-alpha2",
3
+ "version": "1.3.1-alpha3",
4
4
  "description": "Top nav for Internet Archive",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "index.js",
@@ -3,8 +3,6 @@ import { html } from 'https://offshoot.prod.archive.org/lit.js';
3
3
  export default html`
4
4
  <svg
5
5
  class="ia-logo"
6
- width="27"
7
- height="30"
8
6
  viewBox="0 0 27 30"
9
7
  xmlns="http://www.w3.org/2000/svg"
10
8
  aria-labelledby="logoTitleID logoDescID"
@@ -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="41"
7
- viewBox="0 0 40 41"
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
  >
@@ -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" height="30" viewBox="0 0 95 30" width="95" xmlns="http://www.w3.org/2000/svg">
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"/>
@@ -3,14 +3,13 @@ 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
6
  text-transform: uppercase;
8
7
  color: var(--grey80);
9
8
  cursor: pointer;
10
9
  }
11
10
 
12
11
  .dropdown-toggle svg {
13
- height: 4rem;
12
+ height: 100%;
14
13
  width: 4rem;
15
14
  }
16
15
 
@@ -53,7 +52,8 @@ export default css`
53
52
 
54
53
  @media (min-width: 890px) {
55
54
  .logged-out-toolbar {
56
- padding: 0.5rem;
55
+ padding: 1rem 0.5rem;
56
+ vertical-align: middle;
57
57
  }
58
58
 
59
59
  .active {
@@ -65,6 +65,11 @@ export default css`
65
65
  vertical-align: middle;
66
66
  }
67
67
 
68
+ .dropdown-toggle svg {
69
+ height: 3rem;
70
+ width: 3rem;
71
+ }
72
+
68
73
  span {
69
74
  display: inline;
70
75
  vertical-align: middle;
@@ -64,7 +64,7 @@ export default css`
64
64
  fill: #f00;
65
65
  }
66
66
 
67
- @media (min-width: 55.62rem) {
67
+ @media (min-width: 890px) {
68
68
  .menu-item {
69
69
  width: auto;
70
70
  height: 5rem;
@@ -142,7 +142,7 @@ export default css`
142
142
  }
143
143
  }
144
144
 
145
- @media (min-width: 81.25rem) {
145
+ @media (min-width: 1200px) {
146
146
  .label,
147
147
  .web:after {
148
148
  display: inline;
@@ -54,7 +54,7 @@ export default css`
54
54
  }
55
55
 
56
56
  /* Desktop view styles */
57
- @media (min-width: 55.625rem) {
57
+ @media (min-width: 890px) {
58
58
  .media-menu-inner {
59
59
  display: block;
60
60
  position: static;
@@ -22,7 +22,7 @@ export default css`
22
22
  right: 0;
23
23
  left: 0;
24
24
  padding: 0;
25
- height: 368px;
25
+ height: 36.8rem;
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: 367px;
46
+ height: 36.7rem;
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: 1000px;
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: 120px;
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: 160px;
70
+ max-width: 16rem;
71
71
  }
72
72
 
73
73
  .links {
@@ -63,7 +63,8 @@ export default css`
63
63
 
64
64
  .ia-logo {
65
65
  height: 3rem;
66
- width: 3rem;
66
+ width: 2.7rem;
67
+ display: inline-block;
67
68
  }
68
69
  .ia-wordmark {
69
70
  height: 3rem;
@@ -112,6 +113,10 @@ export default css`
112
113
  .mobile-search-trigger {
113
114
  padding: 0;
114
115
  }
116
+ .mobile-search-trigger svg {
117
+ height: 4rem;
118
+ width: 4rem;
119
+ }
115
120
  .mobile-search-trigger .fill-color {
116
121
  fill: var(--iconFill);
117
122
  }
@@ -144,6 +149,7 @@ export default css`
144
149
  .user-menu {
145
150
  color: var(--lightTextColor);
146
151
  padding: 0.5rem;
152
+ height: 100%;
147
153
  }
148
154
 
149
155
  .user-menu:hover {
@@ -162,8 +168,8 @@ export default css`
162
168
  }
163
169
 
164
170
  .link-home {
165
- display: flex;
166
171
  text-decoration: none;
172
+ display: inline-flex;
167
173
  }
168
174
 
169
175
  @media only screen and (min-width: 890px) and (max-device-width: 905px) {
@@ -221,7 +227,9 @@ export default css`
221
227
  }
222
228
 
223
229
  .user-info {
230
+ display: block;
224
231
  float: right;
232
+ vertical-align: middle;
225
233
  }
226
234
 
227
235
  .user-info .user-menu img {
@@ -230,9 +238,6 @@ export default css`
230
238
  margin-right: 0.5rem;
231
239
  }
232
240
 
233
- .user-menu {
234
- padding: 1rem;
235
- }
236
241
 
237
242
  .user-menu.active {
238
243
  background: transparent;
@@ -275,10 +280,6 @@ export default css`
275
280
  margin-left: 1rem;
276
281
  }
277
282
 
278
- login-button {
279
- display: block;
280
- margin-right: 1rem;
281
- }
282
283
  }
283
284
 
284
285
  @media (min-width: 990px) {
@@ -5,7 +5,7 @@ export default css`
5
5
  .initial,
6
6
  .closed,
7
7
  .open {
8
- right: 35rem;
8
+ right: 33.5rem;
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: 41rem;
22
+ right: 40rem;
23
23
  }
24
24
 
25
25
  .search-hidden.initial,