@internetarchive/ia-topnav 1.3.6 → 1.3.7
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/.eslintrc +16 -16
- package/LICENSE +661 -661
- package/README.md +147 -147
- package/index.d.ts +109 -109
- package/index.js +3 -3
- package/package.json +61 -61
- package/src/assets/img/hamburger.js +38 -38
- package/src/assets/img/ia-icon.js +33 -33
- package/src/assets/img/icon-audio.js +23 -23
- package/src/assets/img/icon-close.js +16 -16
- package/src/assets/img/icon-donate-unpadded.js +16 -16
- package/src/assets/img/icon-donate.js +15 -15
- package/src/assets/img/icon-ellipses.js +15 -15
- package/src/assets/img/icon-ia-logo.js +22 -22
- package/src/assets/img/icon-images.js +15 -15
- package/src/assets/img/icon-search.js +15 -15
- package/src/assets/img/icon-software.js +15 -15
- package/src/assets/img/icon-texts.js +15 -15
- package/src/assets/img/icon-upload-unpadded.js +14 -14
- package/src/assets/img/icon-upload.js +15 -15
- package/src/assets/img/icon-user.js +15 -15
- package/src/assets/img/icon-video.js +15 -15
- package/src/assets/img/icon-web.js +15 -15
- package/src/assets/img/icon.js +18 -18
- package/src/assets/img/icons.js +33 -33
- package/src/assets/img/wordmark-stacked.js +13 -13
- package/src/data/menus.js +646 -646
- package/src/desktop-subnav.js +45 -45
- package/src/dropdown-menu.js +110 -109
- package/src/ia-topnav.js +324 -314
- package/src/lib/formatUrl.js +1 -1
- package/src/lib/keyboard-navigation.js +128 -0
- package/src/lib/location-handler.js +5 -5
- package/src/lib/query-handler.js +7 -7
- package/src/lib/toSentenceCase.js +8 -8
- package/src/login-button.js +79 -79
- package/src/media-button.js +113 -113
- package/src/media-menu.js +154 -133
- package/src/media-slider.js +118 -104
- package/src/media-subnav.js +112 -112
- package/src/more-slider.js +33 -33
- package/src/nav-search.js +111 -117
- package/src/primary-nav.js +258 -224
- package/src/save-page-form.js +59 -59
- package/src/search-menu.js +145 -115
- package/src/signed-out-dropdown.js +10 -10
- package/src/styles/base.js +48 -48
- package/src/styles/desktop-subnav.js +37 -37
- package/src/styles/dropdown-menu.js +168 -166
- package/src/styles/ia-topnav.js +87 -87
- package/src/styles/login-button.js +82 -79
- package/src/styles/media-button.js +156 -156
- package/src/styles/media-menu.js +66 -70
- package/src/styles/media-slider.js +81 -81
- package/src/styles/media-subnav.js +156 -156
- package/src/styles/more-slider.js +15 -15
- package/src/styles/nav-search.js +136 -136
- package/src/styles/primary-nav.js +311 -300
- package/src/styles/save-page-form.js +54 -54
- package/src/styles/search-menu.js +105 -99
- package/src/styles/signed-out-dropdown.js +31 -31
- package/src/styles/user-menu.js +31 -31
- package/src/styles/wayback-search.js +48 -48
- package/src/styles/wayback-slider.js +30 -30
- package/src/tracked-element.js +29 -27
- package/src/user-menu.js +56 -42
- package/src/wayback-search.js +18 -18
- package/src/wayback-slider.js +87 -87
- package/test/assets/img/hamburger.test.js +15 -15
- package/test/assets/img/user.test.js +15 -15
- package/test/data/menus.test.js +19 -19
- package/test/dropdown-menu.test.js +25 -25
- package/test/ia-icon.test.js +13 -13
- package/test/ia-topnav.test.js +273 -273
- package/test/login-button.test.js +15 -15
- package/test/media-button.test.js +19 -19
- package/test/media-menu.test.js +40 -40
- package/test/media-slider.test.js +57 -57
- package/test/more-slider.test.js +13 -13
- package/test/nav-search.test.js +61 -61
- package/test/primary-nav.test.js +82 -82
- package/test/save-page-form.test.js +35 -35
- package/test/search-menu.test.js +49 -49
- package/test/user-menu.test.js +33 -33
- package/test/wayback-slider.test.js +80 -80
|
@@ -1,166 +1,168 @@
|
|
|
1
|
-
import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
-
|
|
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: 890px) {
|
|
94
|
-
nav {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
border-
|
|
117
|
-
border-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
a:
|
|
146
|
-
a:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
1
|
+
import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
+
|
|
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: 890px) {
|
|
94
|
+
nav {
|
|
95
|
+
display: flex;
|
|
96
|
+
overflow: visible;
|
|
97
|
+
top: 0;
|
|
98
|
+
left: auto;
|
|
99
|
+
z-index: 5;
|
|
100
|
+
transition: opacity 0.2s ease-in-out;
|
|
101
|
+
font-size: 1.4rem;
|
|
102
|
+
border-radius: 2px;
|
|
103
|
+
background: var(--primaryTextColor);
|
|
104
|
+
box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
nav:after {
|
|
108
|
+
position: absolute;
|
|
109
|
+
right: 7px;
|
|
110
|
+
top: -7px;
|
|
111
|
+
width: 12px;
|
|
112
|
+
height: 7px;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
color: var(--white);
|
|
115
|
+
content: '';
|
|
116
|
+
border-bottom: 7px solid currentColor;
|
|
117
|
+
border-left: 6px solid transparent;
|
|
118
|
+
border-right: 6px solid transparent;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
h3 {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
ul {
|
|
126
|
+
/* viewport height - nav height + bottom nav border */
|
|
127
|
+
max-height: calc(100vh - 8.5rem + 1px);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.divider {
|
|
131
|
+
border-bottom-color: var(--dropdownMenuDivider);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
a {
|
|
135
|
+
padding: 0.5rem 2rem;
|
|
136
|
+
color: var(--inverseTextColor);
|
|
137
|
+
transition: background 0.1s ease-out, color 0.1s ease-out;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.info-item {
|
|
141
|
+
padding: 0.5rem 2rem;
|
|
142
|
+
font-size: 0.8em;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
a:hover,
|
|
146
|
+
a:active,
|
|
147
|
+
a:focus {
|
|
148
|
+
color: var(--linkHoverColor);
|
|
149
|
+
background: var(--linkColor);
|
|
150
|
+
outline: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.initial,
|
|
154
|
+
.closed {
|
|
155
|
+
opacity: 0;
|
|
156
|
+
transition-duration: 0.2s;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.open {
|
|
160
|
+
opacity: 1;
|
|
161
|
+
overflow: visible;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
a.mobile-upload {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
`;
|
package/src/styles/ia-topnav.js
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
-
|
|
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
|
-
--errorYellow: #ffcd27;
|
|
14
|
-
|
|
15
|
-
--linkColor: #428bca;
|
|
16
|
-
--linkHoverColor: var(--white);
|
|
17
|
-
--subnavLinkColor: var(--grey66);
|
|
18
|
-
--primaryTextColor: var(--white);
|
|
19
|
-
--inverseTextColor: var(--grey20);
|
|
20
|
-
--lightTextColor: var(--grey60);
|
|
21
|
-
--activeColor: var(--white);
|
|
22
|
-
--activeButtonBg: var(--grey20);
|
|
23
|
-
--iconFill: var(--grey60);
|
|
24
|
-
|
|
25
|
-
--searchActiveBg: var(--grey20);
|
|
26
|
-
--searchActiveInputBg: var(--white);
|
|
27
|
-
--searchMenuBg: var(--grey20);
|
|
28
|
-
--desktopSearchIconFill: var(--grey20);
|
|
29
|
-
|
|
30
|
-
--mediaMenuBg: var(--grey13);
|
|
31
|
-
--mediaLabelDesktopColor: var(--grey60);
|
|
32
|
-
--activeDesktopMenuIcon: var(--grey28);
|
|
33
|
-
|
|
34
|
-
--mediaSliderBg: var(--grey20);
|
|
35
|
-
--mediaSliderDesktopBg: var(--grey28);
|
|
36
|
-
|
|
37
|
-
--primaryNavBg: var(--grey13);
|
|
38
|
-
--primaryNavBottomBorder: var(--grey20);
|
|
39
|
-
|
|
40
|
-
--desktopSubnavBg: var(--grey20);
|
|
41
|
-
|
|
42
|
-
--dropdownMenuBg: var(--grey20);
|
|
43
|
-
--dropdownMenuInfoItem: var(--grey60);
|
|
44
|
-
--dropdownMenuDivider: var(--grey40);
|
|
45
|
-
|
|
46
|
-
--loginTextColor: var(--grey60);
|
|
47
|
-
|
|
48
|
-
--themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
49
|
-
--logoWidthTablet: 263px;
|
|
50
|
-
|
|
51
|
-
--savePageSubmitBg: var(--grey13);
|
|
52
|
-
--savePageSubmitText: var(--white);
|
|
53
|
-
--savePageInputBorder: var(--grey60);
|
|
54
|
-
--savePageErrorText: var(--errorYellow);
|
|
55
|
-
|
|
56
|
-
color: var(--primaryTextColor);
|
|
57
|
-
font-family: var(--themeFontFamily);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
primary-nav:focus {
|
|
61
|
-
outline: none !important;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
#close-layer {
|
|
65
|
-
display: none;
|
|
66
|
-
position: fixed;
|
|
67
|
-
top: 0;
|
|
68
|
-
right: 0;
|
|
69
|
-
bottom: 0;
|
|
70
|
-
left: 0;
|
|
71
|
-
z-index: 3;
|
|
72
|
-
}
|
|
73
|
-
#close-layer.visible {
|
|
74
|
-
display: block;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.topnav {
|
|
78
|
-
position: relative;
|
|
79
|
-
z-index: 4;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (max-width: 889px) {
|
|
83
|
-
desktop-subnav {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
`;
|
|
1
|
+
import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
+
|
|
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
|
+
--errorYellow: #ffcd27;
|
|
14
|
+
|
|
15
|
+
--linkColor: #428bca;
|
|
16
|
+
--linkHoverColor: var(--white);
|
|
17
|
+
--subnavLinkColor: var(--grey66);
|
|
18
|
+
--primaryTextColor: var(--white);
|
|
19
|
+
--inverseTextColor: var(--grey20);
|
|
20
|
+
--lightTextColor: var(--grey60);
|
|
21
|
+
--activeColor: var(--white);
|
|
22
|
+
--activeButtonBg: var(--grey20);
|
|
23
|
+
--iconFill: var(--grey60);
|
|
24
|
+
|
|
25
|
+
--searchActiveBg: var(--grey20);
|
|
26
|
+
--searchActiveInputBg: var(--white);
|
|
27
|
+
--searchMenuBg: var(--grey20);
|
|
28
|
+
--desktopSearchIconFill: var(--grey20);
|
|
29
|
+
|
|
30
|
+
--mediaMenuBg: var(--grey13);
|
|
31
|
+
--mediaLabelDesktopColor: var(--grey60);
|
|
32
|
+
--activeDesktopMenuIcon: var(--grey28);
|
|
33
|
+
|
|
34
|
+
--mediaSliderBg: var(--grey20);
|
|
35
|
+
--mediaSliderDesktopBg: var(--grey28);
|
|
36
|
+
|
|
37
|
+
--primaryNavBg: var(--grey13);
|
|
38
|
+
--primaryNavBottomBorder: var(--grey20);
|
|
39
|
+
|
|
40
|
+
--desktopSubnavBg: var(--grey20);
|
|
41
|
+
|
|
42
|
+
--dropdownMenuBg: var(--grey20);
|
|
43
|
+
--dropdownMenuInfoItem: var(--grey60);
|
|
44
|
+
--dropdownMenuDivider: var(--grey40);
|
|
45
|
+
|
|
46
|
+
--loginTextColor: var(--grey60);
|
|
47
|
+
|
|
48
|
+
--themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
49
|
+
--logoWidthTablet: 263px;
|
|
50
|
+
|
|
51
|
+
--savePageSubmitBg: var(--grey13);
|
|
52
|
+
--savePageSubmitText: var(--white);
|
|
53
|
+
--savePageInputBorder: var(--grey60);
|
|
54
|
+
--savePageErrorText: var(--errorYellow);
|
|
55
|
+
|
|
56
|
+
color: var(--primaryTextColor);
|
|
57
|
+
font-family: var(--themeFontFamily);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
primary-nav:focus {
|
|
61
|
+
outline: none !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#close-layer {
|
|
65
|
+
display: none;
|
|
66
|
+
position: fixed;
|
|
67
|
+
top: 0;
|
|
68
|
+
right: 0;
|
|
69
|
+
bottom: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
z-index: 3;
|
|
72
|
+
}
|
|
73
|
+
#close-layer.visible {
|
|
74
|
+
display: block;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.topnav {
|
|
78
|
+
position: relative;
|
|
79
|
+
z-index: 4;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (max-width: 889px) {
|
|
83
|
+
desktop-subnav {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
@@ -1,79 +1,82 @@
|
|
|
1
|
-
import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
.dropdown-toggle {
|
|
5
|
-
display: block;
|
|
6
|
-
text-transform: uppercase;
|
|
7
|
-
color: var(--grey80);
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dropdown-toggle svg {
|
|
12
|
-
height: 100%;
|
|
13
|
-
width: 4rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dropdown-toggle .fill-color {
|
|
17
|
-
fill: var(--iconFill);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.dropdown-toggle:active .fill-color,
|
|
21
|
-
.dropdown-toggle:focus .fill-color,
|
|
22
|
-
.dropdown-toggle:hover .fill-color {
|
|
23
|
-
fill: var(--linkHoverColor);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.active {
|
|
27
|
-
border-radius: 1rem 1rem 0 0;
|
|
28
|
-
background: var(--activeButtonBg);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.active .fill-color {
|
|
32
|
-
fill: var(--activeColor);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
span {
|
|
36
|
-
display: none;
|
|
37
|
-
font-size: 1.4rem;
|
|
38
|
-
text-transform: uppercase;
|
|
39
|
-
color: var(--loginTextColor);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
span a {
|
|
43
|
-
color: inherit;
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
a:
|
|
49
|
-
a:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
import { css } from 'https://offshoot.prod.archive.org/lit.js';
|
|
2
|
+
|
|
3
|
+
export default css`
|
|
4
|
+
.dropdown-toggle {
|
|
5
|
+
display: block;
|
|
6
|
+
text-transform: uppercase;
|
|
7
|
+
color: var(--grey80);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dropdown-toggle svg {
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 4rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dropdown-toggle .fill-color {
|
|
17
|
+
fill: var(--iconFill);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dropdown-toggle:active .fill-color,
|
|
21
|
+
.dropdown-toggle:focus .fill-color,
|
|
22
|
+
.dropdown-toggle:hover .fill-color {
|
|
23
|
+
fill: var(--linkHoverColor);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.active {
|
|
27
|
+
border-radius: 1rem 1rem 0 0;
|
|
28
|
+
background: var(--activeButtonBg);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.active .fill-color {
|
|
32
|
+
fill: var(--activeColor);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
span {
|
|
36
|
+
display: none;
|
|
37
|
+
font-size: 1.4rem;
|
|
38
|
+
text-transform: uppercase;
|
|
39
|
+
color: var(--loginTextColor);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
span a {
|
|
43
|
+
color: inherit;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
outline: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a:hover,
|
|
49
|
+
a:active,
|
|
50
|
+
a:focus {
|
|
51
|
+
color: var(--linkHoverColor) !important;
|
|
52
|
+
outline: none !important;
|
|
53
|
+
outline-offset: inherit !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 890px) {
|
|
57
|
+
.logged-out-toolbar {
|
|
58
|
+
padding: 1rem 0.5rem;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.active {
|
|
63
|
+
background: transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dropdown-toggle {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
vertical-align: middle;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dropdown-toggle svg {
|
|
72
|
+
height: 3rem;
|
|
73
|
+
width: 3rem;
|
|
74
|
+
display: block;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
span {
|
|
78
|
+
display: inline;
|
|
79
|
+
vertical-align: middle;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|