@salesforcedevs/dx-components 1.2.19-lightdom → 1.3.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/LICENSE +12 -0
- package/lwc.config.json +1 -0
- package/package.json +3 -2
- package/src/modules/dx/banner/banner.css +32 -0
- package/src/modules/dx/banner/banner.html +2 -2
- package/src/modules/dx/banner/banner.ts +1 -3
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +1 -2
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +5 -8
- package/src/modules/dx/button/button.css +1 -0
- package/src/modules/dx/cardCallout/cardCallout.css +44 -4
- package/src/modules/dx/cardCallout/cardCallout.html +1 -1
- package/src/modules/dx/cardCallout/cardCallout.ts +0 -2
- package/src/modules/dx/cardPodcastEpisode/{cardPodcastEpisode.scoped.css → cardPodcastEpisode.css} +4 -0
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +1 -1
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +0 -2
- package/src/modules/dx/cardTitle/cardTitle.css +24 -2
- package/src/modules/dx/cardTitle/cardTitle.html +3 -7
- package/src/modules/dx/cardTitle/cardTitle.ts +0 -1
- package/src/modules/dx/dropdown/dropdown.css +1 -7
- package/src/modules/dx/dropdown/dropdown.html +2 -4
- package/src/modules/dx/dropdown/dropdown.ts +2 -4
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +8 -8
- package/src/modules/dx/header/header.css +94 -7
- package/src/modules/dx/header/header.html +1 -1
- package/src/modules/dx/header/header.ts +0 -2
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +146 -1
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +4 -12
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +5 -5
- package/src/modules/dx/headerNav/{headerNav.scoped.css → headerNav.css} +2 -0
- package/src/modules/dx/headerNav/headerNav.html +2 -5
- package/src/modules/dx/headerNav/headerNav.ts +0 -2
- package/src/modules/dx/headerSearch/headerSearch.css +60 -1
- package/src/modules/dx/headerSearch/headerSearch.html +1 -1
- package/src/modules/dx/headerSearch/headerSearch.ts +0 -2
- package/src/modules/dx/icon/icon.css +4 -2
- package/src/modules/dx/icon/icon.html +1 -1
- package/src/modules/dx/icon/icon.ts +0 -2
- package/src/modules/dx/interactiveImage/interactiveImage.css +59 -0
- package/src/modules/dx/interactiveImage/interactiveImage.html +32 -0
- package/src/modules/dx/interactiveImage/interactiveImage.ts +71 -0
- package/src/modules/dx/logo/{logo.scoped.css → logo.css} +3 -0
- package/src/modules/dx/logo/logo.html +1 -1
- package/src/modules/dx/logo/logo.ts +0 -2
- package/src/modules/dx/relativeDateTime/relativeDateTime.html +1 -1
- package/src/modules/dx/relativeDateTime/relativeDateTime.ts +0 -1
- package/src/modules/dx/skipNavLink/{skipNavLink.scoped.css → skipNavLink.css} +2 -0
- package/src/modules/dx/skipNavLink/skipNavLink.html +1 -1
- package/src/modules/dx/skipNavLink/skipNavLink.ts +1 -3
- package/src/modules/dxHelpers/card/card.css +0 -10
- package/src/modules/dxHelpers/commonSidebar/commonSidebar.css +2 -2
- package/src/modules/dxHelpers/reset/reset.css +1 -0
- package/src/modules/dx/banner/banner.scoped.css +0 -28
- package/src/modules/dx/cardCallout/cardCallout.scoped.css +0 -45
- package/src/modules/dx/cardTitle/cardTitle.scoped.css +0 -25
- package/src/modules/dx/checkbox/checkbox.scoped.css +0 -169
- package/src/modules/dx/header/header.scoped.css +0 -92
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.scoped.css +0 -142
- package/src/modules/dx/headerSearch/headerSearch.scoped.css +0 -56
- package/src/modules/dx/relativeDateTime/relativeDateTime.scoped.css +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -27,5 +27,6 @@
|
|
|
27
27
|
"@types/lodash.get": "^4.4.6",
|
|
28
28
|
"@types/lodash.kebabcase": "^4.1.7",
|
|
29
29
|
"@types/vimeo__player": "^2.16.2"
|
|
30
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "b5d88aa134399d66a9f894d05ecec170843bc30f"
|
|
31
32
|
}
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
|
+
|
|
4
|
+
.container {
|
|
5
|
+
--primary-color: var(--dx-g-cloud-blue-vibrant-50);
|
|
6
|
+
--secondary-color: var(--dx-g-cloud-blue-vibrant-40);
|
|
7
|
+
|
|
8
|
+
width: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
min-height: 24px;
|
|
14
|
+
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
15
|
+
background: repeating-linear-gradient(
|
|
16
|
+
45deg,
|
|
17
|
+
var(--primary-color),
|
|
18
|
+
var(--primary-color) 20px,
|
|
19
|
+
var(--secondary-color) 20px,
|
|
20
|
+
var(--secondary-color) 40px
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.container_inner {
|
|
25
|
+
height: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
background: var(--primary-color);
|
|
28
|
+
padding: var(--dx-g-spacing-xs) var(--dx-g-spacing-sm);
|
|
29
|
+
color: white;
|
|
30
|
+
font-weight: bold;
|
|
31
|
+
}
|
|
32
|
+
|
|
1
33
|
.container a {
|
|
2
34
|
text-decoration: underline;
|
|
3
35
|
transition: var(--dx-g-transition-hue-1x);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<template
|
|
1
|
+
<template>
|
|
2
2
|
<div class="container">
|
|
3
3
|
<div class="container_inner dx-text-body-4">
|
|
4
4
|
<dx-icon symbol="announcement"></dx-icon>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
option instead of slots because the html markup will come as a
|
|
8
8
|
property to the component from a configuration
|
|
9
9
|
-->
|
|
10
|
-
<div class="info-container"></div>
|
|
10
|
+
<div lwc:dom="manual" class="info-container"></div>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
@@ -2,13 +2,11 @@ import { LightningElement, api } from "lwc";
|
|
|
2
2
|
import { setContainerInnerHtml } from "dxUtils/lwc";
|
|
3
3
|
|
|
4
4
|
export default class Banner extends LightningElement {
|
|
5
|
-
static renderMode = "light";
|
|
6
|
-
|
|
7
5
|
@api bannerMarkup =
|
|
8
6
|
'Thank you for visiting the Salesforce Developers website! <span><a href="https://forms.gle/oWYTbH9RvGyt9uxx7" target="blank">We value your feedback</a></span>';
|
|
9
7
|
|
|
10
8
|
renderedCallback() {
|
|
11
|
-
const container = this.querySelector(".info-container");
|
|
9
|
+
const container = this.template.querySelector(".info-container");
|
|
12
10
|
setContainerInnerHtml(container, this.bannerMarkup);
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -3,7 +3,7 @@ import brandCssVars from "./brandCssVars";
|
|
|
3
3
|
import { Brand } from "typings/custom";
|
|
4
4
|
|
|
5
5
|
export const toCss = (brand: Brand | null) => `
|
|
6
|
-
|
|
6
|
+
:host {
|
|
7
7
|
${brandCssVars.reduce(
|
|
8
8
|
(acc, v) => `
|
|
9
9
|
${acc}
|
|
@@ -15,8 +15,6 @@ export const toCss = (brand: Brand | null) => `
|
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
17
|
export default class BrandThemeProvider extends LightningElement {
|
|
18
|
-
static renderMode = "light";
|
|
19
|
-
|
|
20
18
|
@api brand: Brand | null = null;
|
|
21
19
|
|
|
22
20
|
private get css() {
|
|
@@ -32,18 +30,17 @@ export default class BrandThemeProvider extends LightningElement {
|
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
setBrandVars() {
|
|
35
|
-
let style = this.querySelector("style");
|
|
36
|
-
|
|
33
|
+
let style = this.template.querySelector("style");
|
|
37
34
|
if (!style) {
|
|
38
35
|
style = document.createElement("style");
|
|
39
|
-
this.
|
|
36
|
+
this.template.appendChild(style);
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
if (style
|
|
39
|
+
if (style.firstChild) {
|
|
43
40
|
style.removeChild(style.firstChild);
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
const css = document.createTextNode(this.css);
|
|
47
|
-
style
|
|
44
|
+
style.appendChild(css);
|
|
48
45
|
}
|
|
49
46
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
width: min-content;
|
|
5
5
|
font-size: inherit;
|
|
6
6
|
|
|
7
|
+
--dx-c-button-background-color: transparent;
|
|
7
8
|
--dx-c-button-primary-color: var(--dx-g-blue-vibrant-50);
|
|
8
9
|
--dx-c-button-primary-color-hover: var(--dx-g-blue-vibrant-40);
|
|
9
10
|
--dx-c-button-secondary-color-hover: var(--dx-g-cloud-blue-vibrant-90);
|
|
@@ -1,17 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
|
+
@import "dxHelpers/card";
|
|
4
|
+
|
|
5
|
+
.card-callout {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* in the callout card's case it needs to be subservient to the other items in the grid */
|
|
12
|
+
.dx-card-base_override-width {
|
|
13
|
+
height: 100% !important;
|
|
14
|
+
min-height: unset !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* title */
|
|
18
|
+
|
|
19
|
+
.dx-text-heading-3 {
|
|
20
|
+
color: inherit;
|
|
21
|
+
margin-bottom: var(--dx-g-spacing-3xl);
|
|
22
|
+
overflow-wrap: hyphenate-word;
|
|
23
|
+
hyphens: overflow;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* label */
|
|
27
|
+
|
|
28
|
+
.dx-text-button-light {
|
|
29
|
+
color: inherit;
|
|
30
|
+
margin-top: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* callout arrow */
|
|
34
|
+
|
|
35
|
+
dx-icon {
|
|
2
36
|
display: inline;
|
|
3
37
|
color: inherit;
|
|
4
38
|
margin-left: var(--dx-g-spacing-sm);
|
|
5
39
|
}
|
|
6
40
|
|
|
7
|
-
dx-
|
|
41
|
+
dx-icon::part(svg) {
|
|
8
42
|
transition: var(--dx-g-transition-transform-2x);
|
|
9
43
|
}
|
|
10
44
|
|
|
11
|
-
.card-callout:hover dx-icon
|
|
45
|
+
.card-callout:hover dx-icon::part(svg) {
|
|
12
46
|
transform: translate(var(--dx-g-spacing-xs));
|
|
13
47
|
}
|
|
14
48
|
|
|
15
|
-
.card-callout:active dx-icon
|
|
49
|
+
.card-callout:active dx-icon::part(svg) {
|
|
16
50
|
transform: translate(var(--dx-g-spacing-2xs));
|
|
17
51
|
}
|
|
52
|
+
|
|
53
|
+
@media screen and (max-width: 1024px) {
|
|
54
|
+
.dx-text-heading-3 {
|
|
55
|
+
margin-bottom: var(--dx-g-spacing-xl);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -6,8 +6,6 @@ import { track } from "dxUtils/analytics";
|
|
|
6
6
|
export const ANALYTICS_EVENT_NAME = "custEv_ctaLinkClick";
|
|
7
7
|
|
|
8
8
|
export default class CardCallout extends LightningElement {
|
|
9
|
-
static renderMode = "light";
|
|
10
|
-
|
|
11
9
|
@api backgroundColor: string = "indigo-vibrant-40";
|
|
12
10
|
@api color: string = "white";
|
|
13
11
|
@api href!: string;
|
|
@@ -2,7 +2,6 @@ import { LightningElement, api } from "lwc";
|
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
|
|
4
4
|
export default class CardPodcastEpisode extends LightningElement {
|
|
5
|
-
static renderMode = "light";
|
|
6
5
|
@api body!: string;
|
|
7
6
|
@api datetime!: string;
|
|
8
7
|
@api dateTime?: string | null = null;
|
|
@@ -22,7 +21,6 @@ export default class CardPodcastEpisode extends LightningElement {
|
|
|
22
21
|
private get className() {
|
|
23
22
|
return cx(
|
|
24
23
|
"card-podcast-episode",
|
|
25
|
-
"base-card",
|
|
26
24
|
"dx-card-base_borderless",
|
|
27
25
|
this.isLinkHovered && "dx-card-base_link-hovered"
|
|
28
26
|
);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
|
+
|
|
4
|
+
:host {
|
|
2
5
|
--dx-c-card-title-color: var(--dx-g-text-heading-color);
|
|
3
6
|
--dx-c-card-title-font-size: var(--dx-g-text-xl);
|
|
4
7
|
--dx-c-card-title-line-height: 28px;
|
|
@@ -6,7 +9,21 @@ dx-card-title {
|
|
|
6
9
|
--dx-c-card-title-icon-size: 22px;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
dx-
|
|
12
|
+
h3.dx-text-heading-4 {
|
|
13
|
+
color: var(--dx-c-card-title-color);
|
|
14
|
+
transition: var(--dx-g-transition-hue-1x);
|
|
15
|
+
font-size: var(--dx-c-card-title-font-size);
|
|
16
|
+
line-height: var(--dx-c-card-title-line-height);
|
|
17
|
+
letter-spacing: var(--dx-c-card-title-letter-spacing);
|
|
18
|
+
word-break: break-word;
|
|
19
|
+
hyphens: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.nowrap {
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
dx-icon {
|
|
10
27
|
--dx-c-icon-size: var(--dx-c-card-title-icon-size);
|
|
11
28
|
|
|
12
29
|
display: inline-flex;
|
|
@@ -15,6 +32,11 @@ dx-card-title dx-icon {
|
|
|
15
32
|
}
|
|
16
33
|
|
|
17
34
|
@media screen and (max-width: 1024px) {
|
|
35
|
+
.dx-text-heading-4 {
|
|
36
|
+
font-size: 20px;
|
|
37
|
+
line-height: 24px;
|
|
38
|
+
}
|
|
39
|
+
|
|
18
40
|
dx-icon {
|
|
19
41
|
--dx-c-card-title-icon-size: 20px;
|
|
20
42
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
<template
|
|
1
|
+
<template>
|
|
2
2
|
<h3 class="dx-text-heading-4">
|
|
3
3
|
<a if:true={href} href={href} target={target}>
|
|
4
4
|
{titleToWrap}
|
|
5
|
-
<template if:true={needsSpace}>
|
|
6
|
-
 
|
|
7
|
-
</template>
|
|
5
|
+
<template if:true={needsSpace}> </template>
|
|
8
6
|
<span class="nowrap" if:true={isExternal}>
|
|
9
7
|
{titleNoWrap}
|
|
10
8
|
<dx-icon symbol="new_window" size="override"></dx-icon>
|
|
@@ -12,9 +10,7 @@
|
|
|
12
10
|
</a>
|
|
13
11
|
<template if:false={href}>
|
|
14
12
|
{titleToWrap}
|
|
15
|
-
<template if:true={needsSpace}>
|
|
16
|
-
 
|
|
17
|
-
</template>
|
|
13
|
+
<template if:true={needsSpace}> </template>
|
|
18
14
|
<span class="nowrap" if:true={isExternal}>
|
|
19
15
|
{titleNoWrap}
|
|
20
16
|
<dx-icon symbol="new_window" size="override"></dx-icon>
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
--dx-c-button-primary-color: var(--button-primary-color);
|
|
3
|
-
--dx-c-button-primary-color-hover: var(--button-primary-color-hover);
|
|
4
|
-
--border-color: var(--button-primary-color);
|
|
5
|
-
|
|
6
|
-
border-bottom: 1px dashed var(--border-color);
|
|
7
|
-
}
|
|
1
|
+
@import "dxHelpers/reset";
|
|
8
2
|
|
|
9
3
|
.menu-nested::part(content) {
|
|
10
4
|
padding-top: var(--dx-g-spacing-sm);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<template
|
|
1
|
+
<template>
|
|
2
2
|
<dx-popover
|
|
3
3
|
aria-label={ariaLabel}
|
|
4
4
|
class={className}
|
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
small={small}
|
|
13
13
|
width={width}
|
|
14
14
|
>
|
|
15
|
-
<
|
|
16
|
-
<slot></slot>
|
|
17
|
-
</div>
|
|
15
|
+
<slot slot="control"></slot>
|
|
18
16
|
<div
|
|
19
17
|
class="menu_list"
|
|
20
18
|
if:false={areOptionsEmpty}
|
|
@@ -20,8 +20,6 @@ interface DropdownOption extends OptionWithNested {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export default class Dropdown extends LightningElement {
|
|
23
|
-
static renderMode = "light";
|
|
24
|
-
|
|
25
23
|
@api value: string | null = null; // "active option" id
|
|
26
24
|
@api valuePath: string = "id"; // path to match for the active value (useful for url matching)
|
|
27
25
|
@api stayOpenAfterChange?: boolean = false;
|
|
@@ -100,7 +98,7 @@ export default class Dropdown extends LightningElement {
|
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
private get optionsElements() {
|
|
103
|
-
return this.querySelectorAll("dx-dropdown-option");
|
|
101
|
+
return this.template.querySelectorAll("dx-dropdown-option");
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
private get areOptionsEmpty() {
|
|
@@ -189,7 +187,7 @@ export default class Dropdown extends LightningElement {
|
|
|
189
187
|
|
|
190
188
|
renderedCallback() {
|
|
191
189
|
if (!this.popoverEl) {
|
|
192
|
-
this.popoverEl = this.querySelector("dx-popover");
|
|
190
|
+
this.popoverEl = this.template.querySelector("dx-popover");
|
|
193
191
|
}
|
|
194
192
|
}
|
|
195
193
|
}
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
:host {
|
|
7
7
|
width: 100%;
|
|
8
8
|
|
|
9
|
-
--dx-c-featured-content-header-background-color
|
|
10
|
-
--dx-g-indigo-vibrant-90
|
|
11
|
-
);
|
|
9
|
+
/* --dx-c-featured-content-header-background-color */
|
|
12
10
|
--dx-c-tree-graphic-color: var(--dx-g-indigo-vibrant-40);
|
|
13
11
|
--dx-c-featured-content-header-padding-horizontal: var(
|
|
14
12
|
--dx-g-page-padding-horizontal
|
|
@@ -42,7 +40,10 @@
|
|
|
42
40
|
position: relative;
|
|
43
41
|
padding: var(--dx-c-featured-content-header-padding-vertical)
|
|
44
42
|
var(--dx-c-featured-content-header-padding-horizontal);
|
|
45
|
-
background-color: var(
|
|
43
|
+
background-color: var(
|
|
44
|
+
--dx-c-featured-content-header-background-color,
|
|
45
|
+
--dx-g-indigo-vibrant-90
|
|
46
|
+
);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/* LAYOUTS */
|
|
@@ -380,10 +381,9 @@ dx-image-and-label {
|
|
|
380
381
|
|
|
381
382
|
/* DARK VARIANT */
|
|
382
383
|
.variant_dark {
|
|
383
|
-
background:
|
|
384
|
-
-
|
|
385
|
-
rgb(40, 23, 153) 0%,
|
|
386
|
-
rgb(46, 43, 182) 100%
|
|
384
|
+
background: var(
|
|
385
|
+
--dx-c-featured-content-header-background-color,
|
|
386
|
+
linear-gradient(-180deg, rgb(40, 23, 153) 0%, rgb(46, 43, 182) 100%)
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
|
|
@@ -1,12 +1,99 @@
|
|
|
1
1
|
@import "dxHelpers/commonHeader";
|
|
2
|
-
@import "dxHelpers/text";
|
|
3
|
-
@import "dxHelpers/reset";
|
|
4
|
-
@import "dxHelpers/card";
|
|
5
|
-
|
|
6
|
-
dx-header {
|
|
7
|
-
/* TODO: these variables definitely aren't getting picked up correctly */
|
|
8
|
-
z-index: var(--dx-g-z-index-500);
|
|
9
2
|
|
|
3
|
+
:host {
|
|
10
4
|
--dx-c-header-search-width: 316px;
|
|
11
5
|
--dx-g-text-xs: 14px;
|
|
12
6
|
}
|
|
7
|
+
|
|
8
|
+
dx-header-mobile-nav-menu {
|
|
9
|
+
--dx-c-color-background: var(--dx-g-brand-current-color-background);
|
|
10
|
+
--dx-c-button-color-background-inactive: var(
|
|
11
|
+
--dx-g-brand-current-button-color-background-inactive
|
|
12
|
+
);
|
|
13
|
+
--dx-c-button-color-background-active: var(
|
|
14
|
+
--dx-g-brand-current-button-color-background-active
|
|
15
|
+
);
|
|
16
|
+
--dx-c-color: var(--dx-g-brand-current-color);
|
|
17
|
+
--dx-c-color-border: var(--dx-g-brand-current-color-border);
|
|
18
|
+
--dx-c-color-background-2: var(--dx-g-brand-current-color-background-2);
|
|
19
|
+
--dx-c-button-color-background-inactive-hover: var(
|
|
20
|
+
--dx-g-brand-current-button-color-background-inactive-hover
|
|
21
|
+
);
|
|
22
|
+
--dx-c-color-border-2: var(--dx-g-brand-current-color-border-2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.header_l2_group-title {
|
|
26
|
+
margin-right: var(--dx-g-spacing-4xl);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.header_l2_group-nav_menu-ctas {
|
|
30
|
+
display: none;
|
|
31
|
+
position: relative;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
padding-right: var(--dx-g-spacing-sm);
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.header_l2_group-nav_menu-ctas::after {
|
|
39
|
+
content: "";
|
|
40
|
+
position: absolute;
|
|
41
|
+
right: 0;
|
|
42
|
+
top: var(--dx-g-spacing-sm);
|
|
43
|
+
height: calc(100% - var(--dx-g-spacing-md));
|
|
44
|
+
width: 1px;
|
|
45
|
+
background: transparent;
|
|
46
|
+
transition: var(--dx-g-transition-hue-1x);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
header.has-navscrollshadow .header_l2_group-nav_menu-ctas::after {
|
|
50
|
+
background: var(--dx-g-brand-current-color-border);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.header_l2_group-nav_menu-button {
|
|
54
|
+
--dx-c-button-primary-color: var(--dx-g-blue-vibrant-20);
|
|
55
|
+
--dx-c-button-secondary-color-hover: var(
|
|
56
|
+
--dx-g-brand-current-button-color-background-inactive
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: 1024px) {
|
|
61
|
+
.header_l2 {
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
height: unset;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.header_l2_group-title {
|
|
68
|
+
margin-right: 0;
|
|
69
|
+
padding: 12px var(--dx-g-page-padding-horizontal);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.header_l2_group {
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.header_l2_group-nav {
|
|
77
|
+
height: var(--dx-g-spacing-3xl);
|
|
78
|
+
padding: 0;
|
|
79
|
+
padding-left: var(--dx-g-spacing-sm);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.header_l2_group-nav_overflow {
|
|
83
|
+
margin-right: var(--dx-g-spacing-sm);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.header_version-dropdown {
|
|
87
|
+
margin-left: auto;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.has-nav-items .header_l2_group-title {
|
|
91
|
+
border-bottom: 1px solid var(--dx-g-brand-current-color-border-2);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (max-width: 768px) {
|
|
96
|
+
.header_l2_group-nav > .header_l2_group-nav_menu-ctas {
|
|
97
|
+
display: flex;
|
|
98
|
+
}
|
|
99
|
+
}
|