@internetarchive/ia-topnav 2.1.0 → 2.1.1
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/.prettierignore +1 -1
- package/LICENSE +661 -661
- package/README.md +147 -147
- package/demo/index.html +28 -28
- package/dist/index.js.map +1 -1
- package/dist/src/data/menus.js +1 -1
- package/dist/src/data/menus.js.map +1 -1
- package/dist/src/models.js.map +1 -1
- package/dist/src/styles/base.js +45 -45
- package/dist/src/styles/base.js.map +1 -1
- package/dist/src/styles/dropdown-menu.js +169 -169
- package/dist/src/styles/dropdown-menu.js.map +1 -1
- package/dist/src/styles/ia-topnav.js +82 -82
- package/dist/src/styles/ia-topnav.js.map +1 -1
- package/dist/src/styles/login-button.js +87 -87
- package/dist/src/styles/login-button.js.map +1 -1
- package/dist/src/styles/media-button.js +153 -153
- package/dist/src/styles/media-button.js.map +1 -1
- package/dist/src/styles/media-menu.js +63 -63
- package/dist/src/styles/media-menu.js.map +1 -1
- package/dist/src/styles/media-slider.js +78 -78
- package/dist/src/styles/media-slider.js.map +1 -1
- package/dist/src/styles/media-subnav.js +152 -152
- package/dist/src/styles/media-subnav.js.map +1 -1
- package/dist/src/styles/primary-nav.js +353 -353
- package/dist/src/styles/primary-nav.js.map +1 -1
- package/dist/src/styles/save-page-form.js +51 -51
- package/dist/src/styles/save-page-form.js.map +1 -1
- package/dist/src/styles/wayback-search.js +45 -45
- package/dist/src/styles/wayback-search.js.map +1 -1
- package/dist/src/styles/wayback-slider.js +26 -26
- package/dist/src/styles/wayback-slider.js.map +1 -1
- package/eslint.config.mjs +53 -53
- package/index.ts +3 -3
- package/package.json +72 -72
- package/prettier.config.js +9 -9
- package/src/data/menus.ts +1 -1
- package/src/models.ts +68 -68
- package/src/styles/base.ts +49 -49
- package/src/styles/dropdown-menu.ts +173 -173
- package/src/styles/ia-topnav.ts +86 -86
- package/src/styles/login-button.ts +91 -91
- package/src/styles/media-button.ts +157 -157
- package/src/styles/media-menu.ts +67 -67
- package/src/styles/media-slider.ts +82 -82
- package/src/styles/media-subnav.ts +160 -160
- package/src/styles/primary-nav.ts +357 -357
- package/src/styles/save-page-form.ts +55 -55
- package/src/styles/wayback-search.ts +49 -49
- package/src/styles/wayback-slider.ts +34 -34
- package/ssl/server.key +28 -28
- package/tsconfig.json +31 -31
- package/web-dev-server.config.mjs +32 -32
- package/web-test-runner.config.mjs +41 -41
|
@@ -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';\
|
|
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,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';\
|
|
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"]}
|