@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,173 +1,173 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- .nav-container {
6
- position: relative;
7
- }
8
-
9
- nav {
10
- position: absolute;
11
- right: 0;
12
- z-index: 4;
13
- overflow: hidden;
14
- font-size: 1.6rem;
15
- background-color: var(--dropdownMenuBg);
16
- transition-property: top;
17
- transition-duration: 0.2s;
18
- transition-timing-function: ease;
19
- }
20
-
21
- .initial,
22
- .closed {
23
- top: var(--topOffset, -1500px);
24
- }
25
-
26
- .closed {
27
- transition-duration: 0.5s;
28
- }
29
-
30
- .open {
31
- max-width: 100vw;
32
- overflow: auto;
33
- }
34
-
35
- h3 {
36
- padding: 0.6rem 2rem;
37
- margin: 0;
38
- font-size: inherit;
39
- overflow: hidden;
40
- text-overflow: ellipsis;
41
- }
42
-
43
- ul {
44
- padding: 0.4rem 0 0.7rem 0;
45
- margin: 0;
46
- list-style: none;
47
- /* viewport height - nav height + bottom nav border */
48
- max-height: calc(100vh - 7.2rem + 1px);
49
- overflow: auto;
50
- box-sizing: border-box;
51
- }
52
-
53
- .divider {
54
- margin: 0.5rem 0;
55
- border-bottom: 1px solid var(--dropdownMenuDivider);
56
- }
57
-
58
- a,
59
- .info-item {
60
- display: block;
61
- color: var(--primaryTextColor);
62
- text-decoration: none;
63
- padding: 1rem 2rem;
64
- }
65
-
66
- .info-item {
67
- font-size: 0.8em;
68
- color: var(--dropdownMenuInfoItem);
69
- }
70
-
71
- .callout {
72
- position: absolute;
73
- margin-left: 10px;
74
- padding: 0 5px;
75
- border-radius: 2px;
76
- background: #fee257;
77
- color: #2c2c2c;
78
- font-size: 1.4rem;
79
- font-weight: bold;
80
- }
81
-
82
- a.mobile-upload {
83
- display: flex;
84
- justify-content: left;
85
- align-items: center;
86
- }
87
- a.mobile-upload svg {
88
- fill: var(--white);
89
- margin-right: 1rem;
90
- height: 1.4rem;
91
- width: 1.4rem;
92
- }
93
-
94
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
95
- nav {
96
- display: flex;
97
- overflow: visible;
98
- top: 0;
99
- left: auto;
100
- right: var(--dropdownMenuRight, 0);
101
- z-index: 5;
102
- transition: opacity 0.2s ease-in-out;
103
- font-size: 1.4rem;
104
- border-radius: 2px;
105
- background: var(--primaryTextColor);
106
- box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);
107
- }
108
-
109
- nav:after {
110
- position: absolute;
111
- right: 7px;
112
- top: -7px;
113
- width: 12px;
114
- height: 7px;
115
- box-sizing: border-box;
116
- color: var(--white);
117
- content: '';
118
- border-bottom: 7px solid currentColor;
119
- border-left: 6px solid transparent;
120
- border-right: 6px solid transparent;
121
- }
122
-
123
- h3 {
124
- display: none;
125
- }
126
-
127
- ul {
128
- /* viewport height - nav height + bottom nav border */
129
- max-height: calc(100vh - 8.5rem + 1px);
130
- }
131
-
132
- .divider {
133
- border-bottom-color: var(--dropdownMenuDivider);
134
- }
135
-
136
- a {
137
- padding: 0.5rem 2rem;
138
- color: var(--inverseTextColor);
139
- transition:
140
- background 0.1s ease-out,
141
- color 0.1s ease-out;
142
- }
143
-
144
- .info-item {
145
- padding: 0.5rem 2rem;
146
- font-size: 0.8em;
147
- color: var(--inverseDropdownMenuInfoItem);
148
- }
149
-
150
- a:hover,
151
- a:active,
152
- a:focus {
153
- color: var(--linkHoverColor);
154
- background: var(--linkColor);
155
- outline: none;
156
- }
157
-
158
- .initial,
159
- .closed {
160
- opacity: 0;
161
- transition-duration: 0.2s;
162
- }
163
-
164
- .open {
165
- opacity: 1;
166
- overflow: visible;
167
- }
168
-
169
- a.mobile-upload {
170
- display: none;
171
- }
172
- }
173
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ .nav-container {
6
+ position: relative;
7
+ }
8
+
9
+ nav {
10
+ position: absolute;
11
+ right: 0;
12
+ z-index: 4;
13
+ overflow: hidden;
14
+ font-size: 1.6rem;
15
+ background-color: var(--dropdownMenuBg);
16
+ transition-property: top;
17
+ transition-duration: 0.2s;
18
+ transition-timing-function: ease;
19
+ }
20
+
21
+ .initial,
22
+ .closed {
23
+ top: var(--topOffset, -1500px);
24
+ }
25
+
26
+ .closed {
27
+ transition-duration: 0.5s;
28
+ }
29
+
30
+ .open {
31
+ max-width: 100vw;
32
+ overflow: auto;
33
+ }
34
+
35
+ h3 {
36
+ padding: 0.6rem 2rem;
37
+ margin: 0;
38
+ font-size: inherit;
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ }
42
+
43
+ ul {
44
+ padding: 0.4rem 0 0.7rem 0;
45
+ margin: 0;
46
+ list-style: none;
47
+ /* viewport height - nav height + bottom nav border */
48
+ max-height: calc(100vh - 7.2rem + 1px);
49
+ overflow: auto;
50
+ box-sizing: border-box;
51
+ }
52
+
53
+ .divider {
54
+ margin: 0.5rem 0;
55
+ border-bottom: 1px solid var(--dropdownMenuDivider);
56
+ }
57
+
58
+ a,
59
+ .info-item {
60
+ display: block;
61
+ color: var(--primaryTextColor);
62
+ text-decoration: none;
63
+ padding: 1rem 2rem;
64
+ }
65
+
66
+ .info-item {
67
+ font-size: 0.8em;
68
+ color: var(--dropdownMenuInfoItem);
69
+ }
70
+
71
+ .callout {
72
+ position: absolute;
73
+ margin-left: 10px;
74
+ padding: 0 5px;
75
+ border-radius: 2px;
76
+ background: #fee257;
77
+ color: #2c2c2c;
78
+ font-size: 1.4rem;
79
+ font-weight: bold;
80
+ }
81
+
82
+ a.mobile-upload {
83
+ display: flex;
84
+ justify-content: left;
85
+ align-items: center;
86
+ }
87
+ a.mobile-upload svg {
88
+ fill: var(--white);
89
+ margin-right: 1rem;
90
+ height: 1.4rem;
91
+ width: 1.4rem;
92
+ }
93
+
94
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
95
+ nav {
96
+ display: flex;
97
+ overflow: visible;
98
+ top: 0;
99
+ left: auto;
100
+ right: var(--dropdownMenuRight, 0);
101
+ z-index: 5;
102
+ transition: opacity 0.2s ease-in-out;
103
+ font-size: 1.4rem;
104
+ border-radius: 2px;
105
+ background: var(--primaryTextColor);
106
+ box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.15);
107
+ }
108
+
109
+ nav:after {
110
+ position: absolute;
111
+ right: 7px;
112
+ top: -7px;
113
+ width: 12px;
114
+ height: 7px;
115
+ box-sizing: border-box;
116
+ color: var(--white);
117
+ content: '';
118
+ border-bottom: 7px solid currentColor;
119
+ border-left: 6px solid transparent;
120
+ border-right: 6px solid transparent;
121
+ }
122
+
123
+ h3 {
124
+ display: none;
125
+ }
126
+
127
+ ul {
128
+ /* viewport height - nav height + bottom nav border */
129
+ max-height: calc(100vh - 8.5rem + 1px);
130
+ }
131
+
132
+ .divider {
133
+ border-bottom-color: var(--dropdownMenuDivider);
134
+ }
135
+
136
+ a {
137
+ padding: 0.5rem 2rem;
138
+ color: var(--inverseTextColor);
139
+ transition:
140
+ background 0.1s ease-out,
141
+ color 0.1s ease-out;
142
+ }
143
+
144
+ .info-item {
145
+ padding: 0.5rem 2rem;
146
+ font-size: 0.8em;
147
+ color: var(--inverseDropdownMenuInfoItem);
148
+ }
149
+
150
+ a:hover,
151
+ a:active,
152
+ a:focus {
153
+ color: var(--linkHoverColor);
154
+ background: var(--linkColor);
155
+ outline: none;
156
+ }
157
+
158
+ .initial,
159
+ .closed {
160
+ opacity: 0;
161
+ transition-duration: 0.2s;
162
+ }
163
+
164
+ .open {
165
+ opacity: 1;
166
+ overflow: visible;
167
+ }
168
+
169
+ a.mobile-upload {
170
+ display: none;
171
+ }
172
+ }
173
+ `;
@@ -1,86 +1,86 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- :host {
6
- --white: #fff;
7
- --grey13: #222;
8
- --grey20: #333;
9
- --grey40: #666;
10
- --grey28: #474747;
11
- --grey60: #999;
12
- --grey66: #aaa;
13
- --grey80: #ccc;
14
- --greya0: #a0a0a0;
15
- --grey6f: #6f6f6f;
16
- --errorYellow: #ffcd27;
17
-
18
- --linkColor: #4b64ff;
19
- --linkHoverColor: var(--white);
20
- --subnavLinkColor: var(--grey66);
21
- --primaryTextColor: var(--white);
22
- --inverseTextColor: var(--grey20);
23
- --lightTextColor: var(--grey60);
24
- --activeColor: var(--white);
25
- --activeButtonBg: var(--grey20);
26
- --iconFill: var(--grey60);
27
-
28
- --mediaMenuBg: var(--grey13);
29
- --mediaLabelDesktopColor: var(--grey60);
30
- --activeDesktopMenuIcon: var(--grey28);
31
-
32
- --mediaSliderBg: var(--grey20);
33
- --mediaSliderDesktopBg: var(--grey28);
34
-
35
- --primaryNavBg: var(--grey13);
36
- --primaryNavBottomBorder: var(--grey20);
37
-
38
- --desktopSubnavBg: var(--grey20);
39
-
40
- --dropdownMenuBg: var(--grey20);
41
- --dropdownMenuInfoItem: var(--greya0);
42
- --dropdownMenuDivider: var(--grey40);
43
- --inverseDropdownMenuInfoItem: var(--grey6f);
44
-
45
- --loginTextColor: var(--grey60);
46
-
47
- --themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
48
- --logoWidthTablet: 263px;
49
-
50
- --savePageSubmitBg: var(--grey13);
51
- --savePageSubmitText: var(--white);
52
- --savePageInputBorder: var(--grey60);
53
- --savePageErrorText: var(--errorYellow);
54
-
55
- color: var(--primaryTextColor);
56
- font-family: var(--themeFontFamily);
57
- }
58
-
59
- primary-nav:focus {
60
- outline: none !important;
61
- }
62
-
63
- #close-layer {
64
- display: none;
65
- position: fixed;
66
- top: 0;
67
- right: 0;
68
- bottom: 0;
69
- left: 0;
70
- z-index: 3;
71
- }
72
- #close-layer.visible {
73
- display: block;
74
- }
75
-
76
- .topnav {
77
- position: relative;
78
- z-index: 4;
79
- }
80
-
81
- @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
82
- desktop-subnav {
83
- display: none;
84
- }
85
- }
86
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ :host {
6
+ --white: #fff;
7
+ --grey13: #222;
8
+ --grey20: #333;
9
+ --grey40: #666;
10
+ --grey28: #474747;
11
+ --grey60: #999;
12
+ --grey66: #aaa;
13
+ --grey80: #ccc;
14
+ --greya0: #a0a0a0;
15
+ --grey6f: #6f6f6f;
16
+ --errorYellow: #ffcd27;
17
+
18
+ --linkColor: #4b64ff;
19
+ --linkHoverColor: var(--white);
20
+ --subnavLinkColor: var(--grey66);
21
+ --primaryTextColor: var(--white);
22
+ --inverseTextColor: var(--grey20);
23
+ --lightTextColor: var(--grey60);
24
+ --activeColor: var(--white);
25
+ --activeButtonBg: var(--grey20);
26
+ --iconFill: var(--grey60);
27
+
28
+ --mediaMenuBg: var(--grey13);
29
+ --mediaLabelDesktopColor: var(--grey60);
30
+ --activeDesktopMenuIcon: var(--grey28);
31
+
32
+ --mediaSliderBg: var(--grey20);
33
+ --mediaSliderDesktopBg: var(--grey28);
34
+
35
+ --primaryNavBg: var(--grey13);
36
+ --primaryNavBottomBorder: var(--grey20);
37
+
38
+ --desktopSubnavBg: var(--grey20);
39
+
40
+ --dropdownMenuBg: var(--grey20);
41
+ --dropdownMenuInfoItem: var(--greya0);
42
+ --dropdownMenuDivider: var(--grey40);
43
+ --inverseDropdownMenuInfoItem: var(--grey6f);
44
+
45
+ --loginTextColor: var(--grey60);
46
+
47
+ --themeFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
48
+ --logoWidthTablet: 263px;
49
+
50
+ --savePageSubmitBg: var(--grey13);
51
+ --savePageSubmitText: var(--white);
52
+ --savePageInputBorder: var(--grey60);
53
+ --savePageErrorText: var(--errorYellow);
54
+
55
+ color: var(--primaryTextColor);
56
+ font-family: var(--themeFontFamily);
57
+ }
58
+
59
+ primary-nav:focus {
60
+ outline: none !important;
61
+ }
62
+
63
+ #close-layer {
64
+ display: none;
65
+ position: fixed;
66
+ top: 0;
67
+ right: 0;
68
+ bottom: 0;
69
+ left: 0;
70
+ z-index: 3;
71
+ }
72
+ #close-layer.visible {
73
+ display: block;
74
+ }
75
+
76
+ .topnav {
77
+ position: relative;
78
+ z-index: 4;
79
+ }
80
+
81
+ @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
82
+ desktop-subnav {
83
+ display: none;
84
+ }
85
+ }
86
+ `;
@@ -1,91 +1,91 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- .logged-out-menu {
6
- background: inherit;
7
- border: none;
8
- }
9
- .logged-out-menu:focus-visible {
10
- outline: none;
11
- border: none;
12
- }
13
- .dropdown-toggle {
14
- display: block;
15
- text-transform: uppercase;
16
- color: var(--grey80);
17
- cursor: pointer;
18
- }
19
-
20
- .dropdown-toggle svg {
21
- height: 100%;
22
- width: 4rem;
23
- }
24
-
25
- .dropdown-toggle .fill-color {
26
- fill: var(--iconFill);
27
- }
28
-
29
- .dropdown-toggle:active .fill-color,
30
- .dropdown-toggle:focus .fill-color,
31
- .dropdown-toggle:hover .fill-color {
32
- fill: var(--linkHoverColor);
33
- }
34
-
35
- .active {
36
- border-radius: 1rem 1rem 0 0;
37
- background: var(--activeButtonBg);
38
- }
39
-
40
- .active .fill-color {
41
- fill: var(--activeColor);
42
- }
43
-
44
- span {
45
- display: none;
46
- font-size: 1.4rem;
47
- text-transform: uppercase;
48
- color: var(--loginTextColor);
49
- }
50
-
51
- span a {
52
- color: inherit;
53
- text-decoration: none;
54
- outline: 0;
55
- }
56
-
57
- a:hover,
58
- a:active,
59
- a:focus {
60
- color: var(--linkHoverColor) !important;
61
- outline: none !important;
62
- outline-offset: inherit !important;
63
- }
64
-
65
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
66
- .logged-out-toolbar {
67
- padding: 1rem 0.5rem;
68
- vertical-align: middle;
69
- }
70
-
71
- .active {
72
- background: transparent;
73
- }
74
-
75
- .dropdown-toggle {
76
- display: inline-block;
77
- vertical-align: middle;
78
- }
79
-
80
- .dropdown-toggle svg {
81
- height: 3rem;
82
- width: 3rem;
83
- display: block;
84
- }
85
-
86
- span {
87
- display: inline;
88
- vertical-align: middle;
89
- }
90
- }
91
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ .logged-out-menu {
6
+ background: inherit;
7
+ border: none;
8
+ }
9
+ .logged-out-menu:focus-visible {
10
+ outline: none;
11
+ border: none;
12
+ }
13
+ .dropdown-toggle {
14
+ display: block;
15
+ text-transform: uppercase;
16
+ color: var(--grey80);
17
+ cursor: pointer;
18
+ }
19
+
20
+ .dropdown-toggle svg {
21
+ height: 100%;
22
+ width: 4rem;
23
+ }
24
+
25
+ .dropdown-toggle .fill-color {
26
+ fill: var(--iconFill);
27
+ }
28
+
29
+ .dropdown-toggle:active .fill-color,
30
+ .dropdown-toggle:focus .fill-color,
31
+ .dropdown-toggle:hover .fill-color {
32
+ fill: var(--linkHoverColor);
33
+ }
34
+
35
+ .active {
36
+ border-radius: 1rem 1rem 0 0;
37
+ background: var(--activeButtonBg);
38
+ }
39
+
40
+ .active .fill-color {
41
+ fill: var(--activeColor);
42
+ }
43
+
44
+ span {
45
+ display: none;
46
+ font-size: 1.4rem;
47
+ text-transform: uppercase;
48
+ color: var(--loginTextColor);
49
+ }
50
+
51
+ span a {
52
+ color: inherit;
53
+ text-decoration: none;
54
+ outline: 0;
55
+ }
56
+
57
+ a:hover,
58
+ a:active,
59
+ a:focus {
60
+ color: var(--linkHoverColor) !important;
61
+ outline: none !important;
62
+ outline-offset: inherit !important;
63
+ }
64
+
65
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
66
+ .logged-out-toolbar {
67
+ padding: 1rem 0.5rem;
68
+ vertical-align: middle;
69
+ }
70
+
71
+ .active {
72
+ background: transparent;
73
+ }
74
+
75
+ .dropdown-toggle {
76
+ display: inline-block;
77
+ vertical-align: middle;
78
+ }
79
+
80
+ .dropdown-toggle svg {
81
+ height: 3rem;
82
+ width: 3rem;
83
+ display: block;
84
+ }
85
+
86
+ span {
87
+ display: inline;
88
+ vertical-align: middle;
89
+ }
90
+ }
91
+ `;