@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
@@ -1,157 +1,157 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- a {
6
- display: inline-block;
7
- text-decoration: none;
8
- }
9
-
10
- .menu-item {
11
- display: inline-block;
12
- width: 100%;
13
- padding: 0;
14
- font-size: 1.6rem;
15
- text-align: left;
16
- background: transparent;
17
- -webkit-box-align: center;
18
- -ms-flex-align: center;
19
- align-items: center;
20
- }
21
-
22
- .menu-item:focus {
23
- outline: none;
24
- }
25
-
26
- .label {
27
- display: inline-block;
28
- padding: 0;
29
- font-weight: 400;
30
- color: var(--primaryTextColor);
31
- text-align: left;
32
- vertical-align: middle;
33
- }
34
-
35
- .menu-item > .icon {
36
- display: inline-flex;
37
- vertical-align: middle;
38
- -webkit-box-align: center;
39
- -ms-flex-align: center;
40
- align-items: center;
41
- -webkit-box-pack: center;
42
- -ms-flex-pack: center;
43
- justify-content: center;
44
- }
45
-
46
- .menu-item > .icon > svg {
47
- height: 4rem;
48
- width: 4rem;
49
- }
50
-
51
- .menu-item.selected .icon {
52
- background-color: var(--activeButtonBg);
53
- border-radius: 1rem 0 0 1rem;
54
- }
55
-
56
- .icon .fill-color {
57
- fill: #999;
58
- }
59
-
60
- .icon.active .fill-color {
61
- fill: #fff;
62
- }
63
-
64
- .donate .fill-color {
65
- fill: #f00;
66
- }
67
-
68
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
69
- .menu-item {
70
- width: auto;
71
- height: 5rem;
72
- color: var(--mediaLabelDesktopColor);
73
- display: inline-flex;
74
- }
75
- .menu-item:hover,
76
- .menu-item:active,
77
- .menu-item:focus {
78
- color: var(--linkHoverColor);
79
- }
80
-
81
- .menu-item:hover .fill-color,
82
- .menu-item:active .fill-color,
83
- .menu-item:focus .fill-color {
84
- fill: var(--linkHoverColor);
85
- }
86
-
87
- .label {
88
- display: none;
89
- }
90
-
91
- .label,
92
- .web:after {
93
- padding-right: 1rem;
94
- font-size: 1.3rem;
95
- text-transform: uppercase;
96
- color: inherit;
97
- }
98
-
99
- .web:after {
100
- display: none;
101
- content: 'web';
102
- }
103
- .donate,
104
- .more {
105
- display: none;
106
- }
107
-
108
- .menu-item.selected {
109
- background: var(--activeDesktopMenuIcon);
110
- }
111
-
112
- .menu-item.selected .label,
113
- .menu-item.selected.web:after {
114
- color: var(--linkHoverColor);
115
- }
116
-
117
- .menu-item.selected .icon {
118
- background: transparent;
119
- }
120
-
121
- /* selected state icon colors */
122
- .web.selected .fill-color {
123
- fill: #ffcd27;
124
- }
125
-
126
- .texts.selected .fill-color {
127
- fill: #faab3c;
128
- }
129
-
130
- .video.selected .fill-color {
131
- fill: #f1644b;
132
- }
133
-
134
- .audio.selected .fill-color {
135
- fill: #00adef;
136
- }
137
-
138
- .software.selected .fill-color {
139
- fill: #9ecc4f;
140
- }
141
-
142
- .images.selected .fill-color {
143
- fill: #aa99c9;
144
- }
145
- }
146
-
147
- @media (min-width: 1200px) {
148
- .label,
149
- .web:after {
150
- display: inline;
151
- }
152
-
153
- .web .label {
154
- display: none;
155
- }
156
- }
157
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ a {
6
+ display: inline-block;
7
+ text-decoration: none;
8
+ }
9
+
10
+ .menu-item {
11
+ display: inline-block;
12
+ width: 100%;
13
+ padding: 0;
14
+ font-size: 1.6rem;
15
+ text-align: left;
16
+ background: transparent;
17
+ -webkit-box-align: center;
18
+ -ms-flex-align: center;
19
+ align-items: center;
20
+ }
21
+
22
+ .menu-item:focus {
23
+ outline: none;
24
+ }
25
+
26
+ .label {
27
+ display: inline-block;
28
+ padding: 0;
29
+ font-weight: 400;
30
+ color: var(--primaryTextColor);
31
+ text-align: left;
32
+ vertical-align: middle;
33
+ }
34
+
35
+ .menu-item > .icon {
36
+ display: inline-flex;
37
+ vertical-align: middle;
38
+ -webkit-box-align: center;
39
+ -ms-flex-align: center;
40
+ align-items: center;
41
+ -webkit-box-pack: center;
42
+ -ms-flex-pack: center;
43
+ justify-content: center;
44
+ }
45
+
46
+ .menu-item > .icon > svg {
47
+ height: 4rem;
48
+ width: 4rem;
49
+ }
50
+
51
+ .menu-item.selected .icon {
52
+ background-color: var(--activeButtonBg);
53
+ border-radius: 1rem 0 0 1rem;
54
+ }
55
+
56
+ .icon .fill-color {
57
+ fill: #999;
58
+ }
59
+
60
+ .icon.active .fill-color {
61
+ fill: #fff;
62
+ }
63
+
64
+ .donate .fill-color {
65
+ fill: #f00;
66
+ }
67
+
68
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
69
+ .menu-item {
70
+ width: auto;
71
+ height: 5rem;
72
+ color: var(--mediaLabelDesktopColor);
73
+ display: inline-flex;
74
+ }
75
+ .menu-item:hover,
76
+ .menu-item:active,
77
+ .menu-item:focus {
78
+ color: var(--linkHoverColor);
79
+ }
80
+
81
+ .menu-item:hover .fill-color,
82
+ .menu-item:active .fill-color,
83
+ .menu-item:focus .fill-color {
84
+ fill: var(--linkHoverColor);
85
+ }
86
+
87
+ .label {
88
+ display: none;
89
+ }
90
+
91
+ .label,
92
+ .web:after {
93
+ padding-right: 1rem;
94
+ font-size: 1.3rem;
95
+ text-transform: uppercase;
96
+ color: inherit;
97
+ }
98
+
99
+ .web:after {
100
+ display: none;
101
+ content: 'web';
102
+ }
103
+ .donate,
104
+ .more {
105
+ display: none;
106
+ }
107
+
108
+ .menu-item.selected {
109
+ background: var(--activeDesktopMenuIcon);
110
+ }
111
+
112
+ .menu-item.selected .label,
113
+ .menu-item.selected.web:after {
114
+ color: var(--linkHoverColor);
115
+ }
116
+
117
+ .menu-item.selected .icon {
118
+ background: transparent;
119
+ }
120
+
121
+ /* selected state icon colors */
122
+ .web.selected .fill-color {
123
+ fill: #ffcd27;
124
+ }
125
+
126
+ .texts.selected .fill-color {
127
+ fill: #faab3c;
128
+ }
129
+
130
+ .video.selected .fill-color {
131
+ fill: #f1644b;
132
+ }
133
+
134
+ .audio.selected .fill-color {
135
+ fill: #00adef;
136
+ }
137
+
138
+ .software.selected .fill-color {
139
+ fill: #9ecc4f;
140
+ }
141
+
142
+ .images.selected .fill-color {
143
+ fill: #aa99c9;
144
+ }
145
+ }
146
+
147
+ @media (min-width: 1200px) {
148
+ .label,
149
+ .web:after {
150
+ display: inline;
151
+ }
152
+
153
+ .web .label {
154
+ display: none;
155
+ }
156
+ }
157
+ `;
@@ -1,67 +1,67 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- :host {
6
- outline: none;
7
- }
8
-
9
- .media-menu-inner {
10
- z-index: -1;
11
- top: -40rem;
12
- background-color: var(--mediaMenuBg);
13
- margin: 0;
14
- overflow: hidden;
15
- transition-duration: 0.2s;
16
- transition-property: top;
17
- transition-timing-function: ease;
18
- }
19
-
20
- .menu-group {
21
- position: relative;
22
- line-height: normal;
23
- }
24
-
25
- /* Mobile view styles */
26
- @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
27
- .media-menu-inner {
28
- position: absolute;
29
- width: 100%;
30
- }
31
-
32
- .open .media-menu-inner {
33
- top: 0;
34
- }
35
-
36
- .overflow-clip {
37
- position: absolute;
38
- z-index: -1; /** needs to be under the navigation, otherwise it intercepts clicks */
39
- top: 4rem;
40
- left: 0;
41
- height: 0;
42
- width: 100%;
43
- overflow: hidden;
44
- transition-duration: 0.2s;
45
- transition-property: height;
46
- }
47
-
48
- .open .overflow-clip {
49
- height: 40rem;
50
- }
51
- }
52
-
53
- /* Desktop view styles */
54
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
55
- .media-menu-inner {
56
- display: block;
57
- position: static;
58
- width: auto;
59
- height: 5rem;
60
- transition-property: none;
61
- }
62
-
63
- .menu-group {
64
- font-size: 0;
65
- }
66
- }
67
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ :host {
6
+ outline: none;
7
+ }
8
+
9
+ .media-menu-inner {
10
+ z-index: -1;
11
+ top: -40rem;
12
+ background-color: var(--mediaMenuBg);
13
+ margin: 0;
14
+ overflow: hidden;
15
+ transition-duration: 0.2s;
16
+ transition-property: top;
17
+ transition-timing-function: ease;
18
+ }
19
+
20
+ .menu-group {
21
+ position: relative;
22
+ line-height: normal;
23
+ }
24
+
25
+ /* Mobile view styles */
26
+ @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
27
+ .media-menu-inner {
28
+ position: absolute;
29
+ width: 100%;
30
+ }
31
+
32
+ .open .media-menu-inner {
33
+ top: 0;
34
+ }
35
+
36
+ .overflow-clip {
37
+ position: absolute;
38
+ z-index: -1; /** needs to be under the navigation, otherwise it intercepts clicks */
39
+ top: 4rem;
40
+ left: 0;
41
+ height: 0;
42
+ width: 100%;
43
+ overflow: hidden;
44
+ transition-duration: 0.2s;
45
+ transition-property: height;
46
+ }
47
+
48
+ .open .overflow-clip {
49
+ height: 40rem;
50
+ }
51
+ }
52
+
53
+ /* Desktop view styles */
54
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
55
+ .media-menu-inner {
56
+ display: block;
57
+ position: static;
58
+ width: auto;
59
+ height: 5rem;
60
+ transition-property: none;
61
+ }
62
+
63
+ .menu-group {
64
+ font-size: 0;
65
+ }
66
+ }
67
+ `;
@@ -1,82 +1,82 @@
1
- import { css } from 'lit';
2
- import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
-
4
- export default css`
5
- .media-slider-container {
6
- position: relative;
7
- }
8
-
9
- .overflow-clip {
10
- display: none;
11
- position: absolute;
12
- top: 0;
13
- right: 0;
14
- left: 0;
15
- height: 0;
16
- overflow: hidden;
17
- transition: height 0.2s ease;
18
- }
19
-
20
- .information-menu {
21
- position: absolute;
22
- top: 0;
23
- right: 0;
24
- left: 0;
25
- padding: 0;
26
- height: 31.9rem;
27
- overflow-x: hidden;
28
- font-size: 1.4rem;
29
- background: var(--mediaSliderBg);
30
- }
31
-
32
- .open {
33
- display: block;
34
- }
35
-
36
- .hidden {
37
- display: none;
38
- }
39
-
40
- .info-box {
41
- padding: 1rem;
42
- }
43
-
44
- @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
45
- .overflow-clip.open {
46
- display: block;
47
- height: 35.8rem;
48
- left: 4rem;
49
- top: 0;
50
- }
51
- }
52
-
53
- @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
54
- .overflow-clip {
55
- display: block;
56
- }
57
-
58
- .information-menu {
59
- left: 0;
60
- z-index: 3;
61
- height: auto;
62
- min-height: 21rem;
63
- background: var(--mediaSliderDesktopBg);
64
- transform: translate(0, -100%);
65
- transition: transform 0.2s ease;
66
- }
67
-
68
- .overflow-clip.open {
69
- height: 22rem;
70
- }
71
-
72
- .information-menu.open {
73
- transform: translate(0, 0);
74
- }
75
-
76
- .info-box {
77
- max-width: 100rem;
78
- padding: 1.5rem 0;
79
- margin: 0 auto;
80
- }
81
- }
82
- `;
1
+ import { css } from 'lit';
2
+ import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
3
+
4
+ export default css`
5
+ .media-slider-container {
6
+ position: relative;
7
+ }
8
+
9
+ .overflow-clip {
10
+ display: none;
11
+ position: absolute;
12
+ top: 0;
13
+ right: 0;
14
+ left: 0;
15
+ height: 0;
16
+ overflow: hidden;
17
+ transition: height 0.2s ease;
18
+ }
19
+
20
+ .information-menu {
21
+ position: absolute;
22
+ top: 0;
23
+ right: 0;
24
+ left: 0;
25
+ padding: 0;
26
+ height: 31.9rem;
27
+ overflow-x: hidden;
28
+ font-size: 1.4rem;
29
+ background: var(--mediaSliderBg);
30
+ }
31
+
32
+ .open {
33
+ display: block;
34
+ }
35
+
36
+ .hidden {
37
+ display: none;
38
+ }
39
+
40
+ .info-box {
41
+ padding: 1rem;
42
+ }
43
+
44
+ @media (max-width: ${TOPNAV_MOBILE_BREAKPOINT - 1}px) {
45
+ .overflow-clip.open {
46
+ display: block;
47
+ height: 35.8rem;
48
+ left: 4rem;
49
+ top: 0;
50
+ }
51
+ }
52
+
53
+ @media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
54
+ .overflow-clip {
55
+ display: block;
56
+ }
57
+
58
+ .information-menu {
59
+ left: 0;
60
+ z-index: 3;
61
+ height: auto;
62
+ min-height: 21rem;
63
+ background: var(--mediaSliderDesktopBg);
64
+ transform: translate(0, -100%);
65
+ transition: transform 0.2s ease;
66
+ }
67
+
68
+ .overflow-clip.open {
69
+ height: 22rem;
70
+ }
71
+
72
+ .information-menu.open {
73
+ transform: translate(0, 0);
74
+ }
75
+
76
+ .info-box {
77
+ max-width: 100rem;
78
+ padding: 1.5rem 0;
79
+ margin: 0 auto;
80
+ }
81
+ }
82
+ `;