@internetarchive/ia-topnav 2.1.0-alpha-webdev8170.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
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { IATopNav } from './src/ia-topnav';\n\nexport { TOPNAV_MOBILE_BREAKPOINT } from './src/models';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { IATopNav } from './src/ia-topnav';\r\n\r\nexport { TOPNAV_MOBILE_BREAKPOINT } from './src/models';\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC","sourcesContent":["/**\n * The pixel width at which ia-topnav switches from mobile to desktop layout.\n * Desktop styles apply at `min-width: TOPNAV_MOBILE_BREAKPOINT px`.\n * Mobile styles apply at `max-width: (TOPNAV_MOBILE_BREAKPOINT - 1) px`.\n *\n * Exported so that host applications can derive their own media queries from\n * this value rather than hard-coding it independently.\n */\nexport const TOPNAV_MOBILE_BREAKPOINT = 890;\n\nexport interface IATopNavConfig {\n /**\n * Google Analytics event category\n */\n eventCategory?: string;\n\n /**\n * Copy to display for number of pages archived at the top of the Wayback search form\n *\n * ie. \"425 billion\"\n */\n waybackPagesArchived?: string;\n\n /**\n * Map from dropdown item ids to any callout text that should be applied beside them\n */\n callouts?: Record<string, string>;\n}\n\nexport interface IATopNavLink {\n title: string;\n\n url?: string;\n\n class?: string;\n\n icon?: string;\n\n analyticsEvent?: string;\n\n external?: boolean;\n}\n\nexport interface IATopNavMediaMenu {\n heading: string;\n iconLinks: IATopNavLink[];\n featuredLinks: IATopNavLink[];\n links: IATopNavLink[];\n mobileAppsLinks: IATopNavLink[];\n browserExtensionsLinks: IATopNavLink[];\n archiveItLinks: IATopNavLink[];\n}\n\nexport interface IATopNavMenuConfig {\n audio: IATopNavMediaMenu;\n images: IATopNavMediaMenu;\n more: IATopNavMediaMenu;\n signedOut: IATopNavLink[];\n software: IATopNavMediaMenu;\n texts: IATopNavMediaMenu;\n user: IATopNavLink[];\n userAdmin: IATopNavLink[];\n userAdminFlags: IATopNavLink[];\n video: IATopNavMediaMenu;\n web: IATopNavMediaMenu;\n}\n\nexport type IATopNavSecondIdentitySlotMode = 'allow' | '';\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC","sourcesContent":["/**\r\n * The pixel width at which ia-topnav switches from mobile to desktop layout.\r\n * Desktop styles apply at `min-width: TOPNAV_MOBILE_BREAKPOINT px`.\r\n * Mobile styles apply at `max-width: (TOPNAV_MOBILE_BREAKPOINT - 1) px`.\r\n *\r\n * Exported so that host applications can derive their own media queries from\r\n * this value rather than hard-coding it independently.\r\n */\r\nexport const TOPNAV_MOBILE_BREAKPOINT = 890;\r\n\r\nexport interface IATopNavConfig {\r\n /**\r\n * Google Analytics event category\r\n */\r\n eventCategory?: string;\r\n\r\n /**\r\n * Copy to display for number of pages archived at the top of the Wayback search form\r\n *\r\n * ie. \"425 billion\"\r\n */\r\n waybackPagesArchived?: string;\r\n\r\n /**\r\n * Map from dropdown item ids to any callout text that should be applied beside them\r\n */\r\n callouts?: Record<string, string>;\r\n}\r\n\r\nexport interface IATopNavLink {\r\n title: string;\r\n\r\n url?: string;\r\n\r\n class?: string;\r\n\r\n icon?: string;\r\n\r\n analyticsEvent?: string;\r\n\r\n external?: boolean;\r\n}\r\n\r\nexport interface IATopNavMediaMenu {\r\n heading: string;\r\n iconLinks: IATopNavLink[];\r\n featuredLinks: IATopNavLink[];\r\n links: IATopNavLink[];\r\n mobileAppsLinks: IATopNavLink[];\r\n browserExtensionsLinks: IATopNavLink[];\r\n archiveItLinks: IATopNavLink[];\r\n}\r\n\r\nexport interface IATopNavMenuConfig {\r\n audio: IATopNavMediaMenu;\r\n images: IATopNavMediaMenu;\r\n more: IATopNavMediaMenu;\r\n signedOut: IATopNavLink[];\r\n software: IATopNavMediaMenu;\r\n texts: IATopNavMediaMenu;\r\n user: IATopNavLink[];\r\n userAdmin: IATopNavLink[];\r\n userAdminFlags: IATopNavLink[];\r\n video: IATopNavMediaMenu;\r\n web: IATopNavMediaMenu;\r\n}\r\n\r\nexport type IATopNavSecondIdentitySlotMode = 'allow' | '';\r\n"]}
@@ -1,49 +1,49 @@
1
1
  import { css } from 'lit';
2
2
  import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
- export const subnavListCSS = css `
4
- h4 {
5
- font-size: 1.6rem;
6
- }
7
-
8
- a {
9
- text-decoration: none;
10
- color: var(--activeColor);
11
- }
12
-
13
- ul {
14
- padding: 0;
15
- margin: 0;
16
- list-style: none;
17
- }
18
-
19
- li + li {
20
- padding-top: 1.5rem;
21
- }
22
-
23
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
24
- h4 {
25
- margin: 0 0 1rem 0;
26
- font-weight: 100;
27
- }
28
-
29
- ul {
30
- font-size: 1.3rem;
31
- }
32
-
33
- li {
34
- padding-bottom: 0.5rem;
35
- }
36
-
37
- li + li {
38
- padding-top: 0;
39
- }
40
-
41
- li a {
42
- display: block;
43
- overflow: hidden;
44
- white-space: nowrap;
45
- text-overflow: ellipsis;
46
- }
47
- }
3
+ export const subnavListCSS = css `
4
+ h4 {
5
+ font-size: 1.6rem;
6
+ }
7
+
8
+ a {
9
+ text-decoration: none;
10
+ color: var(--activeColor);
11
+ }
12
+
13
+ ul {
14
+ padding: 0;
15
+ margin: 0;
16
+ list-style: none;
17
+ }
18
+
19
+ li + li {
20
+ padding-top: 1.5rem;
21
+ }
22
+
23
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
24
+ h4 {
25
+ margin: 0 0 1rem 0;
26
+ font-weight: 100;
27
+ }
28
+
29
+ ul {
30
+ font-size: 1.3rem;
31
+ }
32
+
33
+ li {
34
+ padding-bottom: 0.5rem;
35
+ }
36
+
37
+ li + li {
38
+ padding-top: 0;
39
+ }
40
+
41
+ li a {
42
+ display: block;
43
+ overflow: hidden;
44
+ white-space: nowrap;
45
+ text-overflow: ellipsis;
46
+ }
47
+ }
48
48
  `;
49
49
  //# sourceMappingURL=base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/styles/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;uBAoBT,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB9C,CAAC","sourcesContent":["import { css } from 'lit';\nimport { TOPNAV_MOBILE_BREAKPOINT } from '../models';\n\nexport const subnavListCSS = css`\n h4 {\n font-size: 1.6rem;\n }\n\n a {\n text-decoration: none;\n color: var(--activeColor);\n }\n\n ul {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n\n li + li {\n padding-top: 1.5rem;\n }\n\n @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {\n h4 {\n margin: 0 0 1rem 0;\n font-weight: 100;\n }\n\n ul {\n font-size: 1.3rem;\n }\n\n li {\n padding-bottom: 0.5rem;\n }\n\n li + li {\n padding-top: 0;\n }\n\n li a {\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n }\n`;\n"]}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/styles/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;uBAoBT,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB9C,CAAC","sourcesContent":["import { css } from 'lit';\r\nimport { TOPNAV_MOBILE_BREAKPOINT } from '../models';\r\n\r\nexport const subnavListCSS = css`\r\n h4 {\r\n font-size: 1.6rem;\r\n }\r\n\r\n a {\r\n text-decoration: none;\r\n color: var(--activeColor);\r\n }\r\n\r\n ul {\r\n padding: 0;\r\n margin: 0;\r\n list-style: none;\r\n }\r\n\r\n li + li {\r\n padding-top: 1.5rem;\r\n }\r\n\r\n @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {\r\n h4 {\r\n margin: 0 0 1rem 0;\r\n font-weight: 100;\r\n }\r\n\r\n ul {\r\n font-size: 1.3rem;\r\n }\r\n\r\n li {\r\n padding-bottom: 0.5rem;\r\n }\r\n\r\n li + li {\r\n padding-top: 0;\r\n }\r\n\r\n li a {\r\n display: block;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n }\r\n }\r\n`;\r\n"]}
@@ -1,173 +1,173 @@
1
1
  import { css } from 'lit';
2
2
  import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
- export default css `
4
- .nav-container {
5
- position: relative;
6
- }
7
-
8
- nav {
9
- position: absolute;
10
- right: 0;
11
- z-index: 4;
12
- overflow: hidden;
13
- font-size: 1.6rem;
14
- background-color: var(--dropdownMenuBg);
15
- transition-property: top;
16
- transition-duration: 0.2s;
17
- transition-timing-function: ease;
18
- }
19
-
20
- .initial,
21
- .closed {
22
- top: var(--topOffset, -1500px);
23
- }
24
-
25
- .closed {
26
- transition-duration: 0.5s;
27
- }
28
-
29
- .open {
30
- max-width: 100vw;
31
- overflow: auto;
32
- }
33
-
34
- h3 {
35
- padding: 0.6rem 2rem;
36
- margin: 0;
37
- font-size: inherit;
38
- overflow: hidden;
39
- text-overflow: ellipsis;
40
- }
41
-
42
- ul {
43
- padding: 0.4rem 0 0.7rem 0;
44
- margin: 0;
45
- list-style: none;
46
- /* viewport height - nav height + bottom nav border */
47
- max-height: calc(100vh - 7.2rem + 1px);
48
- overflow: auto;
49
- box-sizing: border-box;
50
- }
51
-
52
- .divider {
53
- margin: 0.5rem 0;
54
- border-bottom: 1px solid var(--dropdownMenuDivider);
55
- }
56
-
57
- a,
58
- .info-item {
59
- display: block;
60
- color: var(--primaryTextColor);
61
- text-decoration: none;
62
- padding: 1rem 2rem;
63
- }
64
-
65
- .info-item {
66
- font-size: 0.8em;
67
- color: var(--dropdownMenuInfoItem);
68
- }
69
-
70
- .callout {
71
- position: absolute;
72
- margin-left: 10px;
73
- padding: 0 5px;
74
- border-radius: 2px;
75
- background: #fee257;
76
- color: #2c2c2c;
77
- font-size: 1.4rem;
78
- font-weight: bold;
79
- }
80
-
81
- a.mobile-upload {
82
- display: flex;
83
- justify-content: left;
84
- align-items: center;
85
- }
86
- a.mobile-upload svg {
87
- fill: var(--white);
88
- margin-right: 1rem;
89
- height: 1.4rem;
90
- width: 1.4rem;
91
- }
92
-
93
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
94
- nav {
95
- display: flex;
96
- overflow: visible;
97
- top: 0;
98
- left: auto;
99
- right: var(--dropdownMenuRight, 0);
100
- z-index: 5;
101
- transition: opacity 0.2s ease-in-out;
102
- font-size: 1.4rem;
103
- border-radius: 2px;
104
- background: var(--primaryTextColor);
105
- box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);
106
- }
107
-
108
- nav:after {
109
- position: absolute;
110
- right: 7px;
111
- top: -7px;
112
- width: 12px;
113
- height: 7px;
114
- box-sizing: border-box;
115
- color: var(--white);
116
- content: '';
117
- border-bottom: 7px solid currentColor;
118
- border-left: 6px solid transparent;
119
- border-right: 6px solid transparent;
120
- }
121
-
122
- h3 {
123
- display: none;
124
- }
125
-
126
- ul {
127
- /* viewport height - nav height + bottom nav border */
128
- max-height: calc(100vh - 8.5rem + 1px);
129
- }
130
-
131
- .divider {
132
- border-bottom-color: var(--dropdownMenuDivider);
133
- }
134
-
135
- a {
136
- padding: 0.5rem 2rem;
137
- color: var(--inverseTextColor);
138
- transition:
139
- background 0.1s ease-out,
140
- color 0.1s ease-out;
141
- }
142
-
143
- .info-item {
144
- padding: 0.5rem 2rem;
145
- font-size: 0.8em;
146
- color: var(--inverseDropdownMenuInfoItem);
147
- }
148
-
149
- a:hover,
150
- a:active,
151
- a:focus {
152
- color: var(--linkHoverColor);
153
- background: var(--linkColor);
154
- outline: none;
155
- }
156
-
157
- .initial,
158
- .closed {
159
- opacity: 0;
160
- transition-duration: 0.2s;
161
- }
162
-
163
- .open {
164
- opacity: 1;
165
- overflow: visible;
166
- }
167
-
168
- a.mobile-upload {
169
- display: none;
170
- }
171
- }
3
+ export default css `
4
+ .nav-container {
5
+ position: relative;
6
+ }
7
+
8
+ nav {
9
+ position: absolute;
10
+ right: 0;
11
+ z-index: 4;
12
+ overflow: hidden;
13
+ font-size: 1.6rem;
14
+ background-color: var(--dropdownMenuBg);
15
+ transition-property: top;
16
+ transition-duration: 0.2s;
17
+ transition-timing-function: ease;
18
+ }
19
+
20
+ .initial,
21
+ .closed {
22
+ top: var(--topOffset, -1500px);
23
+ }
24
+
25
+ .closed {
26
+ transition-duration: 0.5s;
27
+ }
28
+
29
+ .open {
30
+ max-width: 100vw;
31
+ overflow: auto;
32
+ }
33
+
34
+ h3 {
35
+ padding: 0.6rem 2rem;
36
+ margin: 0;
37
+ font-size: inherit;
38
+ overflow: hidden;
39
+ text-overflow: ellipsis;
40
+ }
41
+
42
+ ul {
43
+ padding: 0.4rem 0 0.7rem 0;
44
+ margin: 0;
45
+ list-style: none;
46
+ /* viewport height - nav height + bottom nav border */
47
+ max-height: calc(100vh - 7.2rem + 1px);
48
+ overflow: auto;
49
+ box-sizing: border-box;
50
+ }
51
+
52
+ .divider {
53
+ margin: 0.5rem 0;
54
+ border-bottom: 1px solid var(--dropdownMenuDivider);
55
+ }
56
+
57
+ a,
58
+ .info-item {
59
+ display: block;
60
+ color: var(--primaryTextColor);
61
+ text-decoration: none;
62
+ padding: 1rem 2rem;
63
+ }
64
+
65
+ .info-item {
66
+ font-size: 0.8em;
67
+ color: var(--dropdownMenuInfoItem);
68
+ }
69
+
70
+ .callout {
71
+ position: absolute;
72
+ margin-left: 10px;
73
+ padding: 0 5px;
74
+ border-radius: 2px;
75
+ background: #fee257;
76
+ color: #2c2c2c;
77
+ font-size: 1.4rem;
78
+ font-weight: bold;
79
+ }
80
+
81
+ a.mobile-upload {
82
+ display: flex;
83
+ justify-content: left;
84
+ align-items: center;
85
+ }
86
+ a.mobile-upload svg {
87
+ fill: var(--white);
88
+ margin-right: 1rem;
89
+ height: 1.4rem;
90
+ width: 1.4rem;
91
+ }
92
+
93
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
94
+ nav {
95
+ display: flex;
96
+ overflow: visible;
97
+ top: 0;
98
+ left: auto;
99
+ right: var(--dropdownMenuRight, 0);
100
+ z-index: 5;
101
+ transition: opacity 0.2s ease-in-out;
102
+ font-size: 1.4rem;
103
+ border-radius: 2px;
104
+ background: var(--primaryTextColor);
105
+ box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);
106
+ }
107
+
108
+ nav:after {
109
+ position: absolute;
110
+ right: 7px;
111
+ top: -7px;
112
+ width: 12px;
113
+ height: 7px;
114
+ box-sizing: border-box;
115
+ color: var(--white);
116
+ content: '';
117
+ border-bottom: 7px solid currentColor;
118
+ border-left: 6px solid transparent;
119
+ border-right: 6px solid transparent;
120
+ }
121
+
122
+ h3 {
123
+ display: none;
124
+ }
125
+
126
+ ul {
127
+ /* viewport height - nav height + bottom nav border */
128
+ max-height: calc(100vh - 8.5rem + 1px);
129
+ }
130
+
131
+ .divider {
132
+ border-bottom-color: var(--dropdownMenuDivider);
133
+ }
134
+
135
+ a {
136
+ padding: 0.5rem 2rem;
137
+ color: var(--inverseTextColor);
138
+ transition:
139
+ background 0.1s ease-out,
140
+ color 0.1s ease-out;
141
+ }
142
+
143
+ .info-item {
144
+ padding: 0.5rem 2rem;
145
+ font-size: 0.8em;
146
+ color: var(--inverseDropdownMenuInfoItem);
147
+ }
148
+
149
+ a:hover,
150
+ a:active,
151
+ a:focus {
152
+ color: var(--linkHoverColor);
153
+ background: var(--linkColor);
154
+ outline: none;
155
+ }
156
+
157
+ .initial,
158
+ .closed {
159
+ opacity: 0;
160
+ transition-duration: 0.2s;
161
+ }
162
+
163
+ .open {
164
+ opacity: 1;
165
+ overflow: visible;
166
+ }
167
+
168
+ a.mobile-upload {
169
+ display: none;
170
+ }
171
+ }
172
172
  `;
173
173
  //# sourceMappingURL=dropdown-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.js","sourceRoot":"","sources":["../../../src/styles/dropdown-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0FK,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E9C,CAAC","sourcesContent":["import { css } from 'lit';\nimport { TOPNAV_MOBILE_BREAKPOINT } from '../models';\n\nexport default css`\n .nav-container {\n position: relative;\n }\n\n nav {\n position: absolute;\n right: 0;\n z-index: 4;\n overflow: hidden;\n font-size: 1.6rem;\n background-color: var(--dropdownMenuBg);\n transition-property: top;\n transition-duration: 0.2s;\n transition-timing-function: ease;\n }\n\n .initial,\n .closed {\n top: var(--topOffset, -1500px);\n }\n\n .closed {\n transition-duration: 0.5s;\n }\n\n .open {\n max-width: 100vw;\n overflow: auto;\n }\n\n h3 {\n padding: 0.6rem 2rem;\n margin: 0;\n font-size: inherit;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ul {\n padding: 0.4rem 0 0.7rem 0;\n margin: 0;\n list-style: none;\n /* viewport height - nav height + bottom nav border */\n max-height: calc(100vh - 7.2rem + 1px);\n overflow: auto;\n box-sizing: border-box;\n }\n\n .divider {\n margin: 0.5rem 0;\n border-bottom: 1px solid var(--dropdownMenuDivider);\n }\n\n a,\n .info-item {\n display: block;\n color: var(--primaryTextColor);\n text-decoration: none;\n padding: 1rem 2rem;\n }\n\n .info-item {\n font-size: 0.8em;\n color: var(--dropdownMenuInfoItem);\n }\n\n .callout {\n position: absolute;\n margin-left: 10px;\n padding: 0 5px;\n border-radius: 2px;\n background: #fee257;\n color: #2c2c2c;\n font-size: 1.4rem;\n font-weight: bold;\n }\n\n a.mobile-upload {\n display: flex;\n justify-content: left;\n align-items: center;\n }\n a.mobile-upload svg {\n fill: var(--white);\n margin-right: 1rem;\n height: 1.4rem;\n width: 1.4rem;\n }\n\n @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {\n nav {\n display: flex;\n overflow: visible;\n top: 0;\n left: auto;\n right: var(--dropdownMenuRight, 0);\n z-index: 5;\n transition: opacity 0.2s ease-in-out;\n font-size: 1.4rem;\n border-radius: 2px;\n background: var(--primaryTextColor);\n box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);\n }\n\n nav:after {\n position: absolute;\n right: 7px;\n top: -7px;\n width: 12px;\n height: 7px;\n box-sizing: border-box;\n color: var(--white);\n content: '';\n border-bottom: 7px solid currentColor;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n }\n\n h3 {\n display: none;\n }\n\n ul {\n /* viewport height - nav height + bottom nav border */\n max-height: calc(100vh - 8.5rem + 1px);\n }\n\n .divider {\n border-bottom-color: var(--dropdownMenuDivider);\n }\n\n a {\n padding: 0.5rem 2rem;\n color: var(--inverseTextColor);\n transition:\n background 0.1s ease-out,\n color 0.1s ease-out;\n }\n\n .info-item {\n padding: 0.5rem 2rem;\n font-size: 0.8em;\n color: var(--inverseDropdownMenuInfoItem);\n }\n\n a:hover,\n a:active,\n a:focus {\n color: var(--linkHoverColor);\n background: var(--linkColor);\n outline: none;\n }\n\n .initial,\n .closed {\n opacity: 0;\n transition-duration: 0.2s;\n }\n\n .open {\n opacity: 1;\n overflow: visible;\n }\n\n a.mobile-upload {\n display: none;\n }\n }\n`;\n"]}
1
+ {"version":3,"file":"dropdown-menu.js","sourceRoot":"","sources":["../../../src/styles/dropdown-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0FK,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E9C,CAAC","sourcesContent":["import { css } from 'lit';\r\nimport { TOPNAV_MOBILE_BREAKPOINT } from '../models';\r\n\r\nexport default css`\r\n .nav-container {\r\n position: relative;\r\n }\r\n\r\n nav {\r\n position: absolute;\r\n right: 0;\r\n z-index: 4;\r\n overflow: hidden;\r\n font-size: 1.6rem;\r\n background-color: var(--dropdownMenuBg);\r\n transition-property: top;\r\n transition-duration: 0.2s;\r\n transition-timing-function: ease;\r\n }\r\n\r\n .initial,\r\n .closed {\r\n top: var(--topOffset, -1500px);\r\n }\r\n\r\n .closed {\r\n transition-duration: 0.5s;\r\n }\r\n\r\n .open {\r\n max-width: 100vw;\r\n overflow: auto;\r\n }\r\n\r\n h3 {\r\n padding: 0.6rem 2rem;\r\n margin: 0;\r\n font-size: inherit;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n }\r\n\r\n ul {\r\n padding: 0.4rem 0 0.7rem 0;\r\n margin: 0;\r\n list-style: none;\r\n /* viewport height - nav height + bottom nav border */\r\n max-height: calc(100vh - 7.2rem + 1px);\r\n overflow: auto;\r\n box-sizing: border-box;\r\n }\r\n\r\n .divider {\r\n margin: 0.5rem 0;\r\n border-bottom: 1px solid var(--dropdownMenuDivider);\r\n }\r\n\r\n a,\r\n .info-item {\r\n display: block;\r\n color: var(--primaryTextColor);\r\n text-decoration: none;\r\n padding: 1rem 2rem;\r\n }\r\n\r\n .info-item {\r\n font-size: 0.8em;\r\n color: var(--dropdownMenuInfoItem);\r\n }\r\n\r\n .callout {\r\n position: absolute;\r\n margin-left: 10px;\r\n padding: 0 5px;\r\n border-radius: 2px;\r\n background: #fee257;\r\n color: #2c2c2c;\r\n font-size: 1.4rem;\r\n font-weight: bold;\r\n }\r\n\r\n a.mobile-upload {\r\n display: flex;\r\n justify-content: left;\r\n align-items: center;\r\n }\r\n a.mobile-upload svg {\r\n fill: var(--white);\r\n margin-right: 1rem;\r\n height: 1.4rem;\r\n width: 1.4rem;\r\n }\r\n\r\n @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {\r\n nav {\r\n display: flex;\r\n overflow: visible;\r\n top: 0;\r\n left: auto;\r\n right: var(--dropdownMenuRight, 0);\r\n z-index: 5;\r\n transition: opacity 0.2s ease-in-out;\r\n font-size: 1.4rem;\r\n border-radius: 2px;\r\n background: var(--primaryTextColor);\r\n box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);\r\n }\r\n\r\n nav:after {\r\n position: absolute;\r\n right: 7px;\r\n top: -7px;\r\n width: 12px;\r\n height: 7px;\r\n box-sizing: border-box;\r\n color: var(--white);\r\n content: '';\r\n border-bottom: 7px solid currentColor;\r\n border-left: 6px solid transparent;\r\n border-right: 6px solid transparent;\r\n }\r\n\r\n h3 {\r\n display: none;\r\n }\r\n\r\n ul {\r\n /* viewport height - nav height + bottom nav border */\r\n max-height: calc(100vh - 8.5rem + 1px);\r\n }\r\n\r\n .divider {\r\n border-bottom-color: var(--dropdownMenuDivider);\r\n }\r\n\r\n a {\r\n padding: 0.5rem 2rem;\r\n color: var(--inverseTextColor);\r\n transition:\r\n background 0.1s ease-out,\r\n color 0.1s ease-out;\r\n }\r\n\r\n .info-item {\r\n padding: 0.5rem 2rem;\r\n font-size: 0.8em;\r\n color: var(--inverseDropdownMenuInfoItem);\r\n }\r\n\r\n a:hover,\r\n a:active,\r\n a:focus {\r\n color: var(--linkHoverColor);\r\n background: var(--linkColor);\r\n outline: none;\r\n }\r\n\r\n .initial,\r\n .closed {\r\n opacity: 0;\r\n transition-duration: 0.2s;\r\n }\r\n\r\n .open {\r\n opacity: 1;\r\n overflow: visible;\r\n }\r\n\r\n a.mobile-upload {\r\n display: none;\r\n }\r\n }\r\n`;\r\n"]}
@@ -1,86 +1,86 @@
1
1
  import { css } from 'lit';
2
2
  import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
- export default css `
4
- :host {
5
- --white: #fff;
6
- --grey13: #222;
7
- --grey20: #333;
8
- --grey40: #666;
9
- --grey28: #474747;
10
- --grey60: #999;
11
- --grey66: #aaa;
12
- --grey80: #ccc;
13
- --greya0: #a0a0a0;
14
- --grey6f: #6f6f6f;
15
- --errorYellow: #ffcd27;
16
-
17
- --linkColor: #4b64ff;
18
- --linkHoverColor: var(--white);
19
- --subnavLinkColor: var(--grey66);
20
- --primaryTextColor: var(--white);
21
- --inverseTextColor: var(--grey20);
22
- --lightTextColor: var(--grey60);
23
- --activeColor: var(--white);
24
- --activeButtonBg: var(--grey20);
25
- --iconFill: var(--grey60);
26
-
27
- --mediaMenuBg: var(--grey13);
28
- --mediaLabelDesktopColor: var(--grey60);
29
- --activeDesktopMenuIcon: var(--grey28);
30
-
31
- --mediaSliderBg: var(--grey20);
32
- --mediaSliderDesktopBg: var(--grey28);
33
-
34
- --primaryNavBg: var(--grey13);
35
- --primaryNavBottomBorder: var(--grey20);
36
-
37
- --desktopSubnavBg: var(--grey20);
38
-
39
- --dropdownMenuBg: var(--grey20);
40
- --dropdownMenuInfoItem: var(--greya0);
41
- --dropdownMenuDivider: var(--grey40);
42
- --inverseDropdownMenuInfoItem: var(--grey6f);
43
-
44
- --loginTextColor: var(--grey60);
45
-
46
- --themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
47
- --logoWidthTablet: 263px;
48
-
49
- --savePageSubmitBg: var(--grey13);
50
- --savePageSubmitText: var(--white);
51
- --savePageInputBorder: var(--grey60);
52
- --savePageErrorText: var(--errorYellow);
53
-
54
- color: var(--primaryTextColor);
55
- font-family: var(--themeFontFamily);
56
- }
57
-
58
- primary-nav:focus {
59
- outline: none !important;
60
- }
61
-
62
- #close-layer {
63
- display: none;
64
- position: fixed;
65
- top: 0;
66
- right: 0;
67
- bottom: 0;
68
- left: 0;
69
- z-index: 3;
70
- }
71
- #close-layer.visible {
72
- display: block;
73
- }
74
-
75
- .topnav {
76
- position: relative;
77
- z-index: 4;
78
- }
79
-
80
- @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
81
- desktop-subnav {
82
- display: none;
83
- }
84
- }
3
+ export default css `
4
+ :host {
5
+ --white: #fff;
6
+ --grey13: #222;
7
+ --grey20: #333;
8
+ --grey40: #666;
9
+ --grey28: #474747;
10
+ --grey60: #999;
11
+ --grey66: #aaa;
12
+ --grey80: #ccc;
13
+ --greya0: #a0a0a0;
14
+ --grey6f: #6f6f6f;
15
+ --errorYellow: #ffcd27;
16
+
17
+ --linkColor: #4b64ff;
18
+ --linkHoverColor: var(--white);
19
+ --subnavLinkColor: var(--grey66);
20
+ --primaryTextColor: var(--white);
21
+ --inverseTextColor: var(--grey20);
22
+ --lightTextColor: var(--grey60);
23
+ --activeColor: var(--white);
24
+ --activeButtonBg: var(--grey20);
25
+ --iconFill: var(--grey60);
26
+
27
+ --mediaMenuBg: var(--grey13);
28
+ --mediaLabelDesktopColor: var(--grey60);
29
+ --activeDesktopMenuIcon: var(--grey28);
30
+
31
+ --mediaSliderBg: var(--grey20);
32
+ --mediaSliderDesktopBg: var(--grey28);
33
+
34
+ --primaryNavBg: var(--grey13);
35
+ --primaryNavBottomBorder: var(--grey20);
36
+
37
+ --desktopSubnavBg: var(--grey20);
38
+
39
+ --dropdownMenuBg: var(--grey20);
40
+ --dropdownMenuInfoItem: var(--greya0);
41
+ --dropdownMenuDivider: var(--grey40);
42
+ --inverseDropdownMenuInfoItem: var(--grey6f);
43
+
44
+ --loginTextColor: var(--grey60);
45
+
46
+ --themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
47
+ --logoWidthTablet: 263px;
48
+
49
+ --savePageSubmitBg: var(--grey13);
50
+ --savePageSubmitText: var(--white);
51
+ --savePageInputBorder: var(--grey60);
52
+ --savePageErrorText: var(--errorYellow);
53
+
54
+ color: var(--primaryTextColor);
55
+ font-family: var(--themeFontFamily);
56
+ }
57
+
58
+ primary-nav:focus {
59
+ outline: none !important;
60
+ }
61
+
62
+ #close-layer {
63
+ display: none;
64
+ position: fixed;
65
+ top: 0;
66
+ right: 0;
67
+ bottom: 0;
68
+ left: 0;
69
+ z-index: 3;
70
+ }
71
+ #close-layer.visible {
72
+ display: block;
73
+ }
74
+
75
+ .topnav {
76
+ position: relative;
77
+ z-index: 4;
78
+ }
79
+
80
+ @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
81
+ desktop-subnav {
82
+ display: none;
83
+ }
84
+ }
85
85
  `;
86
86
  //# sourceMappingURL=ia-topnav.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ia-topnav.js","sourceRoot":"","sources":["../../../src/styles/ia-topnav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA6EK,wBAAwB,GAAG,CAAC;;;;;CAKlD,CAAC","sourcesContent":["import { css } from 'lit';\nimport { TOPNAV_MOBILE_BREAKPOINT } from '../models';\n\nexport default css`\n :host {\n --white: #fff;\n --grey13: #222;\n --grey20: #333;\n --grey40: #666;\n --grey28: #474747;\n --grey60: #999;\n --grey66: #aaa;\n --grey80: #ccc;\n --greya0: #a0a0a0;\n --grey6f: #6f6f6f;\n --errorYellow: #ffcd27;\n\n --linkColor: #4b64ff;\n --linkHoverColor: var(--white);\n --subnavLinkColor: var(--grey66);\n --primaryTextColor: var(--white);\n --inverseTextColor: var(--grey20);\n --lightTextColor: var(--grey60);\n --activeColor: var(--white);\n --activeButtonBg: var(--grey20);\n --iconFill: var(--grey60);\n\n --mediaMenuBg: var(--grey13);\n --mediaLabelDesktopColor: var(--grey60);\n --activeDesktopMenuIcon: var(--grey28);\n\n --mediaSliderBg: var(--grey20);\n --mediaSliderDesktopBg: var(--grey28);\n\n --primaryNavBg: var(--grey13);\n --primaryNavBottomBorder: var(--grey20);\n\n --desktopSubnavBg: var(--grey20);\n\n --dropdownMenuBg: var(--grey20);\n --dropdownMenuInfoItem: var(--greya0);\n --dropdownMenuDivider: var(--grey40);\n --inverseDropdownMenuInfoItem: var(--grey6f);\n\n --loginTextColor: var(--grey60);\n\n --themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n --logoWidthTablet: 263px;\n\n --savePageSubmitBg: var(--grey13);\n --savePageSubmitText: var(--white);\n --savePageInputBorder: var(--grey60);\n --savePageErrorText: var(--errorYellow);\n\n color: var(--primaryTextColor);\n font-family: var(--themeFontFamily);\n }\n\n primary-nav:focus {\n outline: none !important;\n }\n\n #close-layer {\n display: none;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 3;\n }\n #close-layer.visible {\n display: block;\n }\n\n .topnav {\n position: relative;\n z-index: 4;\n }\n\n @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {\n desktop-subnav {\n display: none;\n }\n }\n`;\n"]}
1
+ {"version":3,"file":"ia-topnav.js","sourceRoot":"","sources":["../../../src/styles/ia-topnav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA6EK,wBAAwB,GAAG,CAAC;;;;;CAKlD,CAAC","sourcesContent":["import { css } from 'lit';\r\nimport { TOPNAV_MOBILE_BREAKPOINT } from '../models';\r\n\r\nexport default css`\r\n :host {\r\n --white: #fff;\r\n --grey13: #222;\r\n --grey20: #333;\r\n --grey40: #666;\r\n --grey28: #474747;\r\n --grey60: #999;\r\n --grey66: #aaa;\r\n --grey80: #ccc;\r\n --greya0: #a0a0a0;\r\n --grey6f: #6f6f6f;\r\n --errorYellow: #ffcd27;\r\n\r\n --linkColor: #4b64ff;\r\n --linkHoverColor: var(--white);\r\n --subnavLinkColor: var(--grey66);\r\n --primaryTextColor: var(--white);\r\n --inverseTextColor: var(--grey20);\r\n --lightTextColor: var(--grey60);\r\n --activeColor: var(--white);\r\n --activeButtonBg: var(--grey20);\r\n --iconFill: var(--grey60);\r\n\r\n --mediaMenuBg: var(--grey13);\r\n --mediaLabelDesktopColor: var(--grey60);\r\n --activeDesktopMenuIcon: var(--grey28);\r\n\r\n --mediaSliderBg: var(--grey20);\r\n --mediaSliderDesktopBg: var(--grey28);\r\n\r\n --primaryNavBg: var(--grey13);\r\n --primaryNavBottomBorder: var(--grey20);\r\n\r\n --desktopSubnavBg: var(--grey20);\r\n\r\n --dropdownMenuBg: var(--grey20);\r\n --dropdownMenuInfoItem: var(--greya0);\r\n --dropdownMenuDivider: var(--grey40);\r\n --inverseDropdownMenuInfoItem: var(--grey6f);\r\n\r\n --loginTextColor: var(--grey60);\r\n\r\n --themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;\r\n --logoWidthTablet: 263px;\r\n\r\n --savePageSubmitBg: var(--grey13);\r\n --savePageSubmitText: var(--white);\r\n --savePageInputBorder: var(--grey60);\r\n --savePageErrorText: var(--errorYellow);\r\n\r\n color: var(--primaryTextColor);\r\n font-family: var(--themeFontFamily);\r\n }\r\n\r\n primary-nav:focus {\r\n outline: none !important;\r\n }\r\n\r\n #close-layer {\r\n display: none;\r\n position: fixed;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 3;\r\n }\r\n #close-layer.visible {\r\n display: block;\r\n }\r\n\r\n .topnav {\r\n position: relative;\r\n z-index: 4;\r\n }\r\n\r\n @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {\r\n desktop-subnav {\r\n display: none;\r\n }\r\n }\r\n`;\r\n"]}