@kickstartds/ds-agency-premium 1.3.23--canary.511.bf9d328.0 → 1.3.24
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/{HeaderProps-7a7ece57.d.ts → HeaderProps-c41aeb76.d.ts} +11 -1
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/button/button.css +1 -4
- package/dist/components/header/header.schema.dereffed.json +13 -0
- package/dist/components/header/header.schema.json +4 -38
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/index/index.d.ts +2 -2
- package/dist/components/nav-main/index.d.ts +38 -5
- package/dist/components/nav-main/index.js +3 -3
- package/dist/components/nav-main/nav-main.css +46 -36
- package/dist/components/nav-main/nav-main.schema.dereffed.json +23 -82
- package/dist/components/nav-main/nav-main.schema.json +51 -1
- package/dist/components/nav-main/nav-toggle.css +19 -19
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +1 -0
- package/dist/components/section/index.d.ts +4 -2
- package/dist/components/section/index.js +11 -6
- package/dist/components/settings/settings.schema.dereffed.json +13 -0
- package/dist/global.css +0 -991
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +1 -1
- /package/dist/{BlogPostProps-0910f130.d.ts → BlogPostProps-e1cbd5d3.d.ts} +0 -0
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Add a link to the logo
|
|
8
|
+
*/
|
|
9
|
+
type Link = string;
|
|
6
10
|
/**
|
|
7
11
|
* Logo file source
|
|
8
12
|
*/
|
|
@@ -23,6 +27,10 @@ type Width = number;
|
|
|
23
27
|
* Height of the picture
|
|
24
28
|
*/
|
|
25
29
|
type Height = number;
|
|
30
|
+
/**
|
|
31
|
+
* Toggle the inversion of the logo inside the mobile navigation
|
|
32
|
+
*/
|
|
33
|
+
type FlyoutLogoInverted = boolean;
|
|
26
34
|
/**
|
|
27
35
|
* Make the header float over the first Section
|
|
28
36
|
*/
|
|
@@ -34,6 +42,7 @@ type Inverted = boolean;
|
|
|
34
42
|
interface HeaderProps {
|
|
35
43
|
logo: Logo;
|
|
36
44
|
logoHref?: string;
|
|
45
|
+
flyoutLogoInverted?: FlyoutLogoInverted;
|
|
37
46
|
floating?: Floating;
|
|
38
47
|
inverted?: Inverted;
|
|
39
48
|
navItems?: {
|
|
@@ -43,10 +52,11 @@ interface HeaderProps {
|
|
|
43
52
|
}[];
|
|
44
53
|
}
|
|
45
54
|
interface Logo {
|
|
55
|
+
href?: Link;
|
|
46
56
|
src?: Source;
|
|
47
57
|
srcInverted?: SourceInverted;
|
|
48
58
|
alt?: AltText;
|
|
49
59
|
width?: Width;
|
|
50
60
|
height?: Height;
|
|
51
61
|
}
|
|
52
|
-
export { Source, SourceInverted, AltText, Width, Height, Floating, Inverted, HeaderProps, Logo };
|
|
62
|
+
export { Link, Source, SourceInverted, AltText, Width, Height, FlyoutLogoInverted, Floating, Inverted, HeaderProps, Logo };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BlogPostProps } from "../../BlogPostProps-
|
|
2
|
+
import { BlogPostProps } from "../../BlogPostProps-e1cbd5d3.js";
|
|
3
3
|
declare const BlogPost: {
|
|
4
4
|
({ head, content, aside, cta }: BlogPostProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -36,9 +36,6 @@
|
|
|
36
36
|
text-transform: var(--dsa-button--text-transform);
|
|
37
37
|
transition-property: box-shadow, transform, background-color, color, border;
|
|
38
38
|
}
|
|
39
|
-
.dsa-button.c-button .icon {
|
|
40
|
-
margin-left: var(--ks-spacing-xxs);
|
|
41
|
-
}
|
|
42
39
|
.dsa-button.c-button.c-button--solid {
|
|
43
40
|
--c-button--color: var(--dsa-button_primary--color, var(--dsa-text-color-on-primary));
|
|
44
41
|
--c-button--color-hover: var(--dsa-button_primary--color_hover, var(--dsa-text-color-on-primary));
|
|
@@ -87,7 +84,7 @@
|
|
|
87
84
|
);
|
|
88
85
|
--c-button--background-color-selected: var(
|
|
89
86
|
--dsa-button_secondary--background-color_selected,
|
|
90
|
-
var(--ks-background-color-clear-interactive-selected)
|
|
87
|
+
var(--ks-background-color-clear-interactive-selected)
|
|
91
88
|
);
|
|
92
89
|
}
|
|
93
90
|
.dsa-button.c-button.c-button--outline {
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
"title": "Logo",
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
|
+
"href": {
|
|
12
|
+
"title": "Link",
|
|
13
|
+
"description": "Add a link to the logo",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "uri",
|
|
16
|
+
"default": "/"
|
|
17
|
+
},
|
|
11
18
|
"src": {
|
|
12
19
|
"title": "Source",
|
|
13
20
|
"description": "Logo file source",
|
|
@@ -57,6 +64,12 @@
|
|
|
57
64
|
"format": "uri",
|
|
58
65
|
"default": "/"
|
|
59
66
|
},
|
|
67
|
+
"flyoutLogoInverted": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"title": "Flyout Logo Inverted",
|
|
70
|
+
"description": "Toggle the inversion of the logo inside the mobile navigation",
|
|
71
|
+
"default": false
|
|
72
|
+
},
|
|
60
73
|
"floating": {
|
|
61
74
|
"type": "boolean",
|
|
62
75
|
"title": "Floating",
|
|
@@ -5,48 +5,14 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"logo": {
|
|
8
|
-
"
|
|
9
|
-
"type": "object",
|
|
10
|
-
"properties": {
|
|
11
|
-
"src": {
|
|
12
|
-
"title": "Source",
|
|
13
|
-
"description": "Logo file source",
|
|
14
|
-
"type": "string",
|
|
15
|
-
"format": "image",
|
|
16
|
-
"examples": ["logo.svg"]
|
|
17
|
-
},
|
|
18
|
-
"srcInverted": {
|
|
19
|
-
"title": "Source Inverted",
|
|
20
|
-
"description": "Logo inverted file source",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"format": "image",
|
|
23
|
-
"examples": ["logo-inverted.svg"]
|
|
24
|
-
},
|
|
25
|
-
"alt": {
|
|
26
|
-
"title": "Alt text",
|
|
27
|
-
"description": "Alt text to display for picture",
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"width": {
|
|
31
|
-
"title": "Width",
|
|
32
|
-
"description": "Width of the picture",
|
|
33
|
-
"type": "integer",
|
|
34
|
-
"minimum": 0,
|
|
35
|
-
"examples": [300]
|
|
36
|
-
},
|
|
37
|
-
"height": {
|
|
38
|
-
"title": "Height",
|
|
39
|
-
"description": "Height of the picture",
|
|
40
|
-
"type": "integer",
|
|
41
|
-
"minimum": 0,
|
|
42
|
-
"examples": [300]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"additionalProperties": false
|
|
8
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/logo"
|
|
46
9
|
},
|
|
47
10
|
"logoHref": {
|
|
48
11
|
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/logoHref"
|
|
49
12
|
},
|
|
13
|
+
"flyoutLogoInverted": {
|
|
14
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/flyoutLogoInverted"
|
|
15
|
+
},
|
|
50
16
|
"floating": {
|
|
51
17
|
"type": "boolean",
|
|
52
18
|
"title": "Floating",
|
|
@@ -11,7 +11,7 @@ import '../nav-main/js/navMainEvents.client.js';
|
|
|
11
11
|
import '@kickstartds/core/lib/core';
|
|
12
12
|
import '../nav-main/js/body.client.js';
|
|
13
13
|
|
|
14
|
-
const Header = ({ logo, logoHref = "/", floating, inverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "dsa-header__content", children: [jsxs(Link, { className: "dsa-header__logo", href: logoHref, children: [jsx(Picture, { className: "dsa-header__logo__img", src: logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: inverted }), jsx(Picture, { className: "dsa-header__logo__img dsa-header__logo__img--inverted", src: logo?.srcInverted || logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: !inverted })] }), jsx(NavMain, { logo: logo, logoHref: logoHref, items: navItems })] }) }) }));
|
|
14
|
+
const Header = ({ logo, logoHref = "/", floating, inverted = false, flyoutLogoInverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "dsa-header__content", children: [jsxs(Link, { className: "dsa-header__logo", href: logoHref, children: [jsx(Picture, { className: "dsa-header__logo__img", src: logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: inverted }), jsx(Picture, { className: "dsa-header__logo__img dsa-header__logo__img--inverted", src: logo?.srcInverted || logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: !inverted })] }), jsx(NavMain, { flyoutLogoInverted: flyoutLogoInverted, logo: logo, logoHref: logoHref, items: navItems })] }) }) }));
|
|
15
15
|
Header.displayName = "Header";
|
|
16
16
|
|
|
17
17
|
export { Header };
|
|
@@ -12,7 +12,7 @@ import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
|
|
|
12
12
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
13
13
|
* and run json-schema-to-typescript to regenerate this file.
|
|
14
14
|
*/
|
|
15
|
-
import { HeaderProps } from "../../HeaderProps-
|
|
15
|
+
import { HeaderProps } from "../../HeaderProps-c41aeb76.js";
|
|
16
16
|
import { FooterProps } from "../../FooterProps-9f94ed98.js";
|
|
17
17
|
/**
|
|
18
18
|
* Collection of sections (with their contents) to render on the page
|
|
@@ -72,6 +72,6 @@ interface SettingsProps {
|
|
|
72
72
|
*/
|
|
73
73
|
seo: SeoProps;
|
|
74
74
|
}
|
|
75
|
-
export * from "../../BlogPostProps-
|
|
75
|
+
export * from "../../BlogPostProps-e1cbd5d3.js";
|
|
76
76
|
export * from "../../BlogOverviewProps-f385fc47.js";
|
|
77
77
|
export { Sections, ToggleFloating, ToggleInverted, ToggleInverted1, PageProps, Header, Footer, SettingsProps };
|
|
@@ -5,19 +5,52 @@ import { FC } from "react";
|
|
|
5
5
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
6
|
* and run json-schema-to-typescript to regenerate this file.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Add a link to the logo
|
|
10
|
+
*/
|
|
11
|
+
type Link = string;
|
|
12
|
+
/**
|
|
13
|
+
* Logo file source
|
|
14
|
+
*/
|
|
15
|
+
type Source = string;
|
|
16
|
+
/**
|
|
17
|
+
* Logo inverted file source
|
|
18
|
+
*/
|
|
19
|
+
type SourceInverted = string;
|
|
20
|
+
/**
|
|
21
|
+
* Alt text to display for picture
|
|
22
|
+
*/
|
|
23
|
+
type AltText = string;
|
|
24
|
+
/**
|
|
25
|
+
* Width of the picture
|
|
26
|
+
*/
|
|
27
|
+
type Width = number;
|
|
28
|
+
/**
|
|
29
|
+
* Height of the picture
|
|
30
|
+
*/
|
|
31
|
+
type Height = number;
|
|
32
|
+
/**
|
|
33
|
+
* Toggle the inversion of the logo inside the mobile navigation
|
|
34
|
+
*/
|
|
35
|
+
type FlyoutLogoInverted = boolean;
|
|
9
36
|
interface NavMainProps {
|
|
10
|
-
|
|
11
|
-
* Referenced component PictureProps
|
|
12
|
-
*/
|
|
13
|
-
logo: PictureProps;
|
|
37
|
+
logo: Logo;
|
|
14
38
|
logoHref?: string;
|
|
39
|
+
flyoutLogoInverted?: FlyoutLogoInverted;
|
|
15
40
|
items?: {
|
|
16
41
|
href: string;
|
|
17
42
|
label: string;
|
|
18
43
|
active?: boolean;
|
|
19
44
|
}[];
|
|
20
45
|
}
|
|
46
|
+
interface Logo {
|
|
47
|
+
href?: Link;
|
|
48
|
+
src?: Source;
|
|
49
|
+
srcInverted?: SourceInverted;
|
|
50
|
+
alt?: AltText;
|
|
51
|
+
width?: Width;
|
|
52
|
+
height?: Height;
|
|
53
|
+
}
|
|
21
54
|
declare const NavToggleComponent: FC;
|
|
22
55
|
declare const NavMainItem: FC<{
|
|
23
56
|
label: string;
|
|
@@ -11,8 +11,8 @@ import '@kickstartds/core/lib/component';
|
|
|
11
11
|
import './js/body.client.js';
|
|
12
12
|
import '@kickstartds/core/lib/core';
|
|
13
13
|
|
|
14
|
-
const NavToggleComponent = () => (jsxs("button", { type: "button", className: "nav-toggle", id: "toggle-sidebar", "aria-controls": "nav-main", "aria-expanded": "false", "ks-component": "base.nav-toggle", children: [jsx("span", { className: "nav-toggle__label", children: "toggle navigation" }), jsx("span", { className: "nav-toggle__icon", children: jsx("span", { className: "nav-toggle__icon__middle" }) })] }));
|
|
15
|
-
const NavMainItem = ({ label, href, active }) => (jsx("li", { className: classnames("nav-main__item", active === true ? "nav-main__item--active" : ""), children: jsx(Link, { className: "nav-main__link", href: href, children: label }) }));
|
|
16
|
-
const NavMain = ({ logo,
|
|
14
|
+
const NavToggleComponent = () => (jsxs("button", { type: "button", className: "dsa-nav-toggle", id: "toggle-sidebar", "aria-controls": "nav-main", "aria-expanded": "false", "ks-component": "base.nav-toggle", children: [jsx("span", { className: "dsa-nav-toggle__label", children: "toggle navigation" }), jsx("span", { className: "dsa-nav-toggle__icon", children: jsx("span", { className: "dsa-nav-toggle__icon__middle" }) })] }));
|
|
15
|
+
const NavMainItem = ({ label, href, active }) => (jsx("li", { className: classnames("dsa-nav-main__item", active === true ? "dsa-nav-main__item--active" : ""), children: jsx(Link, { className: "dsa-nav-main__link", href: href, children: label }) }));
|
|
16
|
+
const NavMain = ({ logo, items, flyoutLogoInverted, }) => items && items.length > 0 ? (jsxs("div", { className: "dsa-nav-main__wrap", children: [jsx(NavToggleComponent, {}), jsxs("nav", { className: classnames("dsa-nav-main", items.some((item) => item.active) ? "dsa-nav-main--active" : ""), id: "dsa-nav-main", "aria-label": "Hauptnavigation", children: [jsxs(Link, { className: "dsa-nav-main__logo", "ks-inverted": flyoutLogoInverted === true ? "true" : "false", href: logo?.href, children: [jsx(Picture, { className: "dsa-nav-main__logo__img", src: logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: flyoutLogoInverted }), jsx(Picture, { className: "dsa-nav-main__logo__img dsa-nav-main__logo__img--inverted", src: logo?.srcInverted || logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: !flyoutLogoInverted })] }), jsx("ul", { className: "dsa-nav-main__list", children: items.map((item) => (createElement(NavMainItem, { ...item, active: item.active ?? false, key: item.href + item.label }))) })] })] })) : null;
|
|
17
17
|
|
|
18
18
|
export { NavMain, NavMainItem, NavToggleComponent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.nav-main {
|
|
1
|
+
.dsa-nav-main {
|
|
2
2
|
--dsa-nav-main--background: linear-gradient(
|
|
3
3
|
125deg,
|
|
4
4
|
var(--ks-background-color-default),
|
|
@@ -17,35 +17,35 @@
|
|
|
17
17
|
--dsa-nav-main--shadow: 50px 0px 50px 50px rgba(0, 0, 0, 0.539);
|
|
18
18
|
}
|
|
19
19
|
@media (min-width: 62rem) {
|
|
20
|
-
.nav-main {
|
|
20
|
+
.dsa-nav-main {
|
|
21
21
|
--dsa-nav-main__link--padding: 0 0.75em;
|
|
22
22
|
--dsa-nav-main__link--font: var(--ks-font-interface-m);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.nav-main {
|
|
26
|
+
.dsa-nav-main {
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
justify-content: flex-start;
|
|
30
30
|
}
|
|
31
|
-
.nav-main--active .nav-main__item .nav-main__link {
|
|
31
|
+
.dsa-nav-main--active .dsa-nav-main__item .dsa-nav-main__link {
|
|
32
32
|
color: var(--dsa-nav-main__link--color);
|
|
33
33
|
}
|
|
34
34
|
@media (min-width: 62rem) {
|
|
35
|
-
.dsa-header--floating .nav-main--active .nav-main__item .nav-main__link {
|
|
35
|
+
.dsa-header--floating .dsa-nav-main--active .dsa-nav-main__item .dsa-nav-main__link {
|
|
36
36
|
color: var(--dsa-nav-main_floating__link--color);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
.nav-main--active .nav-main__item--active .nav-main__link {
|
|
39
|
+
.dsa-nav-main--active .dsa-nav-main__item--active .dsa-nav-main__link {
|
|
40
40
|
color: var(--dsa-nav-main__link--color_active);
|
|
41
41
|
font-weight: var(--dsa-nav-main__link--font-weight_active);
|
|
42
42
|
}
|
|
43
43
|
@media (min-width: 62rem) {
|
|
44
|
-
.dsa-header--floating .nav-main--active .nav-main__item--active .nav-main__link {
|
|
44
|
+
.dsa-header--floating .dsa-nav-main--active .dsa-nav-main__item--active .dsa-nav-main__link {
|
|
45
45
|
color: var(--dsa-nav-main_floating__link--color_active);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
.nav-main ul {
|
|
48
|
+
.dsa-nav-main ul {
|
|
49
49
|
/* critical:start */
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
margin: 0;
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
list-style: none;
|
|
54
54
|
/* critical:end */
|
|
55
55
|
}
|
|
56
|
-
.nav-main ul li {
|
|
56
|
+
.dsa-nav-main ul li {
|
|
57
57
|
display: block;
|
|
58
58
|
margin: 0;
|
|
59
59
|
}
|
|
60
|
-
.nav-main__item {
|
|
60
|
+
.dsa-nav-main__item {
|
|
61
61
|
position: relative;
|
|
62
62
|
}
|
|
63
|
-
.nav-main__list:hover .nav-main__link {
|
|
63
|
+
.dsa-nav-main__list:hover .dsa-nav-main__link {
|
|
64
64
|
opacity: var(--dsa-nav-main__link--opacity_hover);
|
|
65
65
|
}
|
|
66
66
|
@media (min-width: 62rem) {
|
|
67
|
-
.dsa-header--floating .nav-main__list:hover .nav-main__link {
|
|
67
|
+
.dsa-header--floating .dsa-nav-main__list:hover .dsa-nav-main__link {
|
|
68
68
|
opacity: var(--dsa-nav-main_floating__link--opacity_hover);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
.nav-main .nav-main__item a.nav-main__link {
|
|
71
|
+
.dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link {
|
|
72
72
|
/* critical:start */
|
|
73
73
|
font: var(--dsa-nav-main__link--font);
|
|
74
74
|
font-weight: var(--dsa-nav-main__link--font-weight);
|
|
@@ -78,26 +78,36 @@
|
|
|
78
78
|
padding: var(--dsa-nav-main__link--padding);
|
|
79
79
|
/* critical:end */
|
|
80
80
|
}
|
|
81
|
-
.nav-main .nav-main__item a.nav-main__link:hover {
|
|
81
|
+
.dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link:hover {
|
|
82
82
|
opacity: 1;
|
|
83
83
|
color: var(--dsa-nav-main__link--color_active);
|
|
84
84
|
}
|
|
85
|
-
.nav-main .nav-main__item a.nav-main__link:active {
|
|
85
|
+
.dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link:active {
|
|
86
86
|
color: var(--dsa-nav-main__link--color_active);
|
|
87
87
|
}
|
|
88
|
-
.nav-main__logo {
|
|
88
|
+
.dsa-nav-main__logo {
|
|
89
|
+
display: block;
|
|
89
90
|
padding: var(--dsa-header--spacing-v) 0;
|
|
90
91
|
}
|
|
91
|
-
.nav-
|
|
92
|
-
height: var(--dsa-
|
|
92
|
+
.dsa-nav-main__logo__img {
|
|
93
|
+
height: var(--dsa-header__logo--height);
|
|
93
94
|
width: auto;
|
|
94
95
|
}
|
|
95
|
-
.nav-
|
|
96
|
+
[ks-inverted=true] .dsa-nav-main__logo__img {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
.dsa-nav-main__logo__img--inverted {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
[ks-inverted=true] .dsa-nav-main__logo__img--inverted {
|
|
103
|
+
display: block !important;
|
|
104
|
+
}
|
|
105
|
+
.dsa-nav-main__wrap {
|
|
96
106
|
flex-grow: 0;
|
|
97
107
|
flex-shrink: 1;
|
|
98
108
|
}
|
|
99
109
|
@media (max-width: 62rem) {
|
|
100
|
-
.nav-main {
|
|
110
|
+
.dsa-nav-main {
|
|
101
111
|
/* critical:start */
|
|
102
112
|
left: -100%;
|
|
103
113
|
/* critical:end */
|
|
@@ -117,7 +127,7 @@
|
|
|
117
127
|
-webkit-overflow-scrolling: touch;
|
|
118
128
|
box-shadow: 20px 0px 30px rgba(0, 0, 0, 0);
|
|
119
129
|
}
|
|
120
|
-
.nav-main__item--icon {
|
|
130
|
+
.dsa-nav-main__item--icon {
|
|
121
131
|
border: 0;
|
|
122
132
|
clip: rect(1px, 1px, 1px, 1px);
|
|
123
133
|
clip-path: inset(100%);
|
|
@@ -128,57 +138,57 @@
|
|
|
128
138
|
white-space: nowrap;
|
|
129
139
|
width: 1px;
|
|
130
140
|
}
|
|
131
|
-
.overlay-open .nav-main {
|
|
141
|
+
.overlay-open .dsa-nav-main {
|
|
132
142
|
left: 0;
|
|
133
143
|
box-shadow: var(--dsa-nav-main--shadow);
|
|
134
144
|
}
|
|
135
|
-
.nav-main > .nav-main__logo {
|
|
145
|
+
.dsa-nav-main > .dsa-nav-main__logo {
|
|
136
146
|
margin-top: var(--dsa-header--spacing-vertical);
|
|
137
147
|
margin-bottom: var(--dsa-header--spacing-vertical);
|
|
138
148
|
}
|
|
139
|
-
.nav-main ul.nav-main__list {
|
|
149
|
+
.dsa-nav-main ul.dsa-nav-main__list {
|
|
140
150
|
padding-top: calc(var(--dsa-header--spacing-vertical) - var(--ks-spacing-s));
|
|
141
151
|
}
|
|
142
|
-
.nav-main ul.nav-main__list .nav-main--button {
|
|
152
|
+
.dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button {
|
|
143
153
|
margin-left: var(--dsa-header--spacing-horizontal);
|
|
144
154
|
margin-top: var(--dsa-header--spacing-vertical);
|
|
145
155
|
}
|
|
146
|
-
.nav-main ul.nav-main__list .nav-main--button .button {
|
|
156
|
+
.dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button .button {
|
|
147
157
|
--button--font: var(--ks-font-interface-s);
|
|
148
158
|
}
|
|
149
|
-
.nav-main ul.nav-main__list .nav-main--button .button .button__content {
|
|
159
|
+
.dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button .button .button__content {
|
|
150
160
|
--button--padding: 0.4rem 1rem;
|
|
151
161
|
}
|
|
152
162
|
}
|
|
153
163
|
@media (min-width: 62rem) {
|
|
154
|
-
.nav-main {
|
|
164
|
+
.dsa-nav-main {
|
|
155
165
|
/* critical:start */
|
|
156
166
|
/* critical:end */
|
|
157
167
|
}
|
|
158
|
-
.nav-main > .nav-main__logo {
|
|
168
|
+
.dsa-nav-main > .dsa-nav-main__logo {
|
|
159
169
|
display: none;
|
|
160
170
|
}
|
|
161
|
-
.nav-main .button--wrapper {
|
|
171
|
+
.dsa-nav-main .button--wrapper {
|
|
162
172
|
margin-left: var(--ks-spacing-inline-xs);
|
|
163
173
|
}
|
|
164
|
-
.nav-main__wrap {
|
|
174
|
+
.dsa-nav-main__wrap {
|
|
165
175
|
display: flex;
|
|
166
176
|
align-items: center;
|
|
167
177
|
}
|
|
168
|
-
.nav-main__list {
|
|
178
|
+
.dsa-nav-main__list {
|
|
169
179
|
/* critical:start */
|
|
170
180
|
display: flex;
|
|
171
181
|
flex-wrap: nowrap;
|
|
172
182
|
align-items: center;
|
|
173
183
|
/* critical:end */
|
|
174
184
|
}
|
|
175
|
-
.nav-main__list .nav-main--button .button {
|
|
185
|
+
.dsa-nav-main__list .dsa-nav-main--button .button {
|
|
176
186
|
--button--font: var(--ks-font-interface-s);
|
|
177
187
|
}
|
|
178
|
-
.nav-main__list .nav-main--button .button span {
|
|
188
|
+
.dsa-nav-main__list .dsa-nav-main--button .button span {
|
|
179
189
|
font-size: 98%;
|
|
180
190
|
}
|
|
181
|
-
.nav-main__item {
|
|
191
|
+
.dsa-nav-main__item {
|
|
182
192
|
/* critical:start */
|
|
183
193
|
flex-shrink: 0;
|
|
184
194
|
/* critical:end */
|
|
@@ -186,6 +196,6 @@
|
|
|
186
196
|
}
|
|
187
197
|
}
|
|
188
198
|
|
|
189
|
-
.nav-main-toggle[aria-expanded=true] + .nav-main {
|
|
199
|
+
.dsa-nav-main-toggle[aria-expanded=true] + .dsa-nav-main {
|
|
190
200
|
display: block;
|
|
191
201
|
}
|
|
@@ -5,26 +5,33 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"logo": {
|
|
8
|
-
"
|
|
9
|
-
"$id": "http://schema.kickstartds.com/base/picture.schema.json",
|
|
10
|
-
"title": "Picture",
|
|
11
|
-
"description": "Base component to display a picture",
|
|
8
|
+
"title": "Logo",
|
|
12
9
|
"type": "object",
|
|
13
10
|
"properties": {
|
|
11
|
+
"href": {
|
|
12
|
+
"title": "Link",
|
|
13
|
+
"description": "Add a link to the logo",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "uri",
|
|
16
|
+
"default": "/"
|
|
17
|
+
},
|
|
14
18
|
"src": {
|
|
15
19
|
"title": "Source",
|
|
16
|
-
"description": "
|
|
20
|
+
"description": "Logo file source",
|
|
17
21
|
"type": "string",
|
|
18
22
|
"format": "image",
|
|
19
23
|
"examples": [
|
|
20
|
-
"
|
|
24
|
+
"logo.svg"
|
|
21
25
|
]
|
|
22
26
|
},
|
|
23
|
-
"
|
|
24
|
-
"title": "
|
|
25
|
-
"description": "
|
|
27
|
+
"srcInverted": {
|
|
28
|
+
"title": "Source Inverted",
|
|
29
|
+
"description": "Logo inverted file source",
|
|
26
30
|
"type": "string",
|
|
27
|
-
"format": "image"
|
|
31
|
+
"format": "image",
|
|
32
|
+
"examples": [
|
|
33
|
+
"logo-inverted.svg"
|
|
34
|
+
]
|
|
28
35
|
},
|
|
29
36
|
"alt": {
|
|
30
37
|
"title": "Alt text",
|
|
@@ -48,78 +55,6 @@
|
|
|
48
55
|
"examples": [
|
|
49
56
|
300
|
|
50
57
|
]
|
|
51
|
-
},
|
|
52
|
-
"className": {
|
|
53
|
-
"title": "Additional Classes",
|
|
54
|
-
"description": "Add additional css classes that should be applied to the button",
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
"component": {
|
|
58
|
-
"title": "`ks-component` attribute",
|
|
59
|
-
"description": "Optional custom component identifier",
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
"id": {
|
|
63
|
-
"title": "Id",
|
|
64
|
-
"description": "Add id attribute to the image",
|
|
65
|
-
"type": "string"
|
|
66
|
-
},
|
|
67
|
-
"itemProp": {
|
|
68
|
-
"title": "`itemprop` attribute",
|
|
69
|
-
"description": "Define an itemprop attribute for the picture",
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
"style": {
|
|
73
|
-
"title": "`style` attribute",
|
|
74
|
-
"description": "Define a style attribute for the picture",
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
"noscript": {
|
|
78
|
-
"title": "Noscript",
|
|
79
|
-
"description": "Render noscript fallback",
|
|
80
|
-
"type": "boolean",
|
|
81
|
-
"default": true
|
|
82
|
-
},
|
|
83
|
-
"lazy": {
|
|
84
|
-
"title": "Lazy",
|
|
85
|
-
"description": "Load the picture lazily",
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": true
|
|
88
|
-
},
|
|
89
|
-
"sources": {
|
|
90
|
-
"title": "Sources",
|
|
91
|
-
"description": "Additional sources. This will result in a `picture`-Element",
|
|
92
|
-
"type": "array",
|
|
93
|
-
"items": {
|
|
94
|
-
"type": "object",
|
|
95
|
-
"properties": {
|
|
96
|
-
"srcSet": {
|
|
97
|
-
"title": "Picture sourceset",
|
|
98
|
-
"description": "Use a srcSet to display picture",
|
|
99
|
-
"type": "string",
|
|
100
|
-
"format": "image"
|
|
101
|
-
},
|
|
102
|
-
"media": {
|
|
103
|
-
"title": "TODO MEDIA TITLE",
|
|
104
|
-
"description": "TODO MEDIA DESCRIPTION",
|
|
105
|
-
"type": "string"
|
|
106
|
-
},
|
|
107
|
-
"type": {
|
|
108
|
-
"title": "TODO TYPE TITLE",
|
|
109
|
-
"description": "TODO TYPE DESCRIPTION",
|
|
110
|
-
"type": "string"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"additionalProperties": false
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"pictureClassName": {
|
|
117
|
-
"title": "`class` attribute",
|
|
118
|
-
"description": "Set additional class(es) to the picture",
|
|
119
|
-
"type": "string"
|
|
120
|
-
},
|
|
121
|
-
"type": {
|
|
122
|
-
"const": "picture"
|
|
123
58
|
}
|
|
124
59
|
},
|
|
125
60
|
"additionalProperties": false
|
|
@@ -129,6 +64,12 @@
|
|
|
129
64
|
"format": "uri",
|
|
130
65
|
"default": "/"
|
|
131
66
|
},
|
|
67
|
+
"flyoutLogoInverted": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"title": "Flyout Logo Inverted",
|
|
70
|
+
"description": "Toggle the inversion of the logo inside the mobile navigation",
|
|
71
|
+
"default": false
|
|
72
|
+
},
|
|
132
73
|
"items": {
|
|
133
74
|
"type": "array",
|
|
134
75
|
"items": {
|
|
@@ -5,13 +5,63 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"logo": {
|
|
8
|
-
"
|
|
8
|
+
"title": "Logo",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"href": {
|
|
12
|
+
"title": "Link",
|
|
13
|
+
"description": "Add a link to the logo",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "uri",
|
|
16
|
+
"default": "/"
|
|
17
|
+
},
|
|
18
|
+
"src": {
|
|
19
|
+
"title": "Source",
|
|
20
|
+
"description": "Logo file source",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "image",
|
|
23
|
+
"examples": ["logo.svg"]
|
|
24
|
+
},
|
|
25
|
+
"srcInverted": {
|
|
26
|
+
"title": "Source Inverted",
|
|
27
|
+
"description": "Logo inverted file source",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "image",
|
|
30
|
+
"examples": ["logo-inverted.svg"]
|
|
31
|
+
},
|
|
32
|
+
"alt": {
|
|
33
|
+
"title": "Alt text",
|
|
34
|
+
"description": "Alt text to display for picture",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"width": {
|
|
38
|
+
"title": "Width",
|
|
39
|
+
"description": "Width of the picture",
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"examples": [300]
|
|
43
|
+
},
|
|
44
|
+
"height": {
|
|
45
|
+
"title": "Height",
|
|
46
|
+
"description": "Height of the picture",
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"minimum": 0,
|
|
49
|
+
"examples": [300]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
9
53
|
},
|
|
10
54
|
"logoHref": {
|
|
11
55
|
"type": "string",
|
|
12
56
|
"format": "uri",
|
|
13
57
|
"default": "/"
|
|
14
58
|
},
|
|
59
|
+
"flyoutLogoInverted": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"title": "Flyout Logo Inverted",
|
|
62
|
+
"description": "Toggle the inversion of the logo inside the mobile navigation",
|
|
63
|
+
"default": false
|
|
64
|
+
},
|
|
15
65
|
"items": {
|
|
16
66
|
"type": "array",
|
|
17
67
|
"items": {
|