@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.
- package/dist/index.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/index.ts +3 -3
- package/package.json +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
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
|
|
3
|
-
|
|
4
|
-
export default css`
|
|
5
|
-
div {
|
|
6
|
-
display: grid;
|
|
7
|
-
grid-template-columns: 1fr auto;
|
|
8
|
-
grid-column-gap: 0.8rem;
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
border: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
input[type='text'] {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 3rem;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
border: 1px solid var(--savePageInputBorder);
|
|
19
|
-
border-radius: 0.5rem;
|
|
20
|
-
color: var(--grey13);
|
|
21
|
-
font-size: inherit;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
input[type='submit'] {
|
|
25
|
-
-webkit-appearance: none;
|
|
26
|
-
-moz-appearance: none;
|
|
27
|
-
appearance: none;
|
|
28
|
-
padding: 0.4rem 0.8rem;
|
|
29
|
-
font: normal 1.3rem var(--themeFontFamily);
|
|
30
|
-
text-transform: uppercase;
|
|
31
|
-
color: var(--savePageSubmitText);
|
|
32
|
-
border: none;
|
|
33
|
-
border-radius: 16px;
|
|
34
|
-
background: var(--savePageSubmitBg);
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.error {
|
|
39
|
-
display: none;
|
|
40
|
-
margin-top: 0.5rem;
|
|
41
|
-
font-weight: bold;
|
|
42
|
-
color: var(--savePageErrorText);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.visible {
|
|
46
|
-
display: block;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
|
|
50
|
-
h3 {
|
|
51
|
-
margin-top: 0;
|
|
52
|
-
font: normal 100 1.6rem var(--themeFontFamily);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
|
|
3
|
+
|
|
4
|
+
export default css`
|
|
5
|
+
div {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: 1fr auto;
|
|
8
|
+
grid-column-gap: 0.8rem;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
border: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
input[type='text'] {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 3rem;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
border: 1px solid var(--savePageInputBorder);
|
|
19
|
+
border-radius: 0.5rem;
|
|
20
|
+
color: var(--grey13);
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input[type='submit'] {
|
|
25
|
+
-webkit-appearance: none;
|
|
26
|
+
-moz-appearance: none;
|
|
27
|
+
appearance: none;
|
|
28
|
+
padding: 0.4rem 0.8rem;
|
|
29
|
+
font: normal 1.3rem var(--themeFontFamily);
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
color: var(--savePageSubmitText);
|
|
32
|
+
border: none;
|
|
33
|
+
border-radius: 16px;
|
|
34
|
+
background: var(--savePageSubmitBg);
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.error {
|
|
39
|
+
display: none;
|
|
40
|
+
margin-top: 0.5rem;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
color: var(--savePageErrorText);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.visible {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
|
|
50
|
+
h3 {
|
|
51
|
+
margin-top: 0;
|
|
52
|
+
font: normal 100 1.6rem var(--themeFontFamily);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
|
|
3
|
-
|
|
4
|
-
export default css`
|
|
5
|
-
form {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
p {
|
|
9
|
-
margin-bottom: 1rem;
|
|
10
|
-
font-size: 1.6rem;
|
|
11
|
-
text-align: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
fieldset {
|
|
15
|
-
padding: 0.5rem;
|
|
16
|
-
border-radius: 5px;
|
|
17
|
-
box-shadow: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
input {
|
|
21
|
-
padding-left: 3rem;
|
|
22
|
-
margin-top: 0.3rem;
|
|
23
|
-
font-size: 1.4rem;
|
|
24
|
-
border-color: #bca38e;
|
|
25
|
-
background: #fff;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
input::placeholder,
|
|
29
|
-
input::-webkit-input-placeholder {
|
|
30
|
-
color: #8e8e8e;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.search-field svg {
|
|
34
|
-
top: 50%;
|
|
35
|
-
transform: translateY(-50%);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
|
|
39
|
-
fieldset a,
|
|
40
|
-
.search-field {
|
|
41
|
-
display: block;
|
|
42
|
-
width: auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
fieldset a {
|
|
46
|
-
margin: 0 1.5rem;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
|
|
3
|
+
|
|
4
|
+
export default css`
|
|
5
|
+
form {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
p {
|
|
9
|
+
margin-bottom: 1rem;
|
|
10
|
+
font-size: 1.6rem;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
fieldset {
|
|
15
|
+
padding: 0.5rem;
|
|
16
|
+
border-radius: 5px;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
input {
|
|
21
|
+
padding-left: 3rem;
|
|
22
|
+
margin-top: 0.3rem;
|
|
23
|
+
font-size: 1.4rem;
|
|
24
|
+
border-color: #bca38e;
|
|
25
|
+
background: #fff;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input::placeholder,
|
|
29
|
+
input::-webkit-input-placeholder {
|
|
30
|
+
color: #8e8e8e;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.search-field svg {
|
|
34
|
+
top: 50%;
|
|
35
|
+
transform: translateY(-50%);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
|
|
39
|
+
fieldset a,
|
|
40
|
+
.search-field {
|
|
41
|
+
display: block;
|
|
42
|
+
width: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
fieldset a {
|
|
46
|
+
margin: 0 1.5rem;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
|
|
3
|
-
import { subnavListCSS } from './base';
|
|
4
|
-
|
|
5
|
-
export default [
|
|
6
|
-
subnavListCSS,
|
|
7
|
-
css`
|
|
8
|
-
@media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
|
|
9
|
-
:host {
|
|
10
|
-
display: block;
|
|
11
|
-
grid-column: 1 / 4;
|
|
12
|
-
padding: 0 1.5rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
h4 {
|
|
16
|
-
margin-top: 0;
|
|
17
|
-
font: normal 100 1.6rem var(--themeFontFamily);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.grid {
|
|
21
|
-
display: grid;
|
|
22
|
-
grid-template-columns: minmax(auto, 260px) 1fr minmax(auto, 260px);
|
|
23
|
-
/* Possible for 890 - 935: minmax(auto, 260px) 1fr minmax(auto, 260px) */
|
|
24
|
-
grid-column-gap: 2.5rem;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.link-lists {
|
|
28
|
-
display: grid;
|
|
29
|
-
grid-template-columns: calc(50% - 1.25rem) calc(50% - 1.25rem);
|
|
30
|
-
grid-column-gap: 2.5rem;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
`,
|
|
34
|
-
];
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { TOPNAV_MOBILE_BREAKPOINT } from '../models';
|
|
3
|
+
import { subnavListCSS } from './base';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
subnavListCSS,
|
|
7
|
+
css`
|
|
8
|
+
@media (min-width: ${TOPNAV_MOBILE_BREAKPOINT}px) {
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
grid-column: 1 / 4;
|
|
12
|
+
padding: 0 1.5rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h4 {
|
|
16
|
+
margin-top: 0;
|
|
17
|
+
font: normal 100 1.6rem var(--themeFontFamily);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.grid {
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: minmax(auto, 260px) 1fr minmax(auto, 260px);
|
|
23
|
+
/* Possible for 890 - 935: minmax(auto, 260px) 1fr minmax(auto, 260px) */
|
|
24
|
+
grid-column-gap: 2.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.link-lists {
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template-columns: calc(50% - 1.25rem) calc(50% - 1.25rem);
|
|
30
|
+
grid-column-gap: 2.5rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`,
|
|
34
|
+
];
|