@repobit/dex-system-design 2.5.1 → 2.6.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/CHANGELOG.md +84 -0
- package/README.md +2 -1
- package/package.json +14 -27
- package/schemas/component-manifest.json +226 -33
- package/schemas/manifest-omissions.json +23 -0
- package/src/components/accordion/accordion-bg.css.js +39 -30
- package/src/components/accordion/accordion-bg.js +17 -28
- package/src/components/accordion/accordion-bg.stories.js +5 -0
- package/src/components/accordion/accordion-panel.js +24 -0
- package/src/components/accordion/accordion.css.js +105 -111
- package/src/components/accordion/accordion.js +23 -37
- package/src/components/accordion/accordion.stories.js +5 -1
- package/src/components/anchor/anchor-nav.css.js +131 -53
- package/src/components/anchor/anchor-nav.js +276 -201
- package/src/components/annotation/annotation.css.js +7 -4
- package/src/components/architecture.stories.js +8 -7
- package/src/components/audience-card/audience-card.css.js +30 -4
- package/src/components/audience-card/audience-card.js +8 -13
- package/src/components/awards/awards-flex.css.js +23 -6
- package/src/components/awards/awards-flex.js +21 -6
- package/src/components/awards/awards-spotlight.css.js +25 -5
- package/src/components/awards/awards-spotlight.js +19 -7
- package/src/components/awards/awards.css.js +20 -8
- package/src/components/awards/awards.js +30 -91
- package/src/components/awards/awards.stories.js +5 -5
- package/src/components/awards/scroll-slides.js +128 -0
- package/src/components/back/back.css.js +2 -0
- package/src/components/badge/badge.css.js +15 -0
- package/src/components/bento-grid/bento-grid.css.js +105 -11
- package/src/components/bento-grid/bento-grid.js +37 -124
- package/src/components/bento-grid/bento-grid.stories.js +3 -2
- package/src/components/bento-grid/bento-item.css.js +71 -32
- package/src/components/bento-grid/bento-item.js +1 -30
- package/src/components/blockquote/blockquote.css.js +2 -2
- package/src/components/breadcrumb/breadcrumb.css.js +10 -9
- package/src/components/breadcrumb/breadcrumb.js +35 -34
- package/src/components/button/button.css.js +42 -17
- package/src/components/button/button.js +84 -3
- package/src/components/button/button.stories.js +17 -0
- package/src/components/card-features/card-features.css.js +23 -2
- package/src/components/card-features/card-features.js +6 -48
- package/src/components/cards/card.css.js +43 -14
- package/src/components/cards/card.js +43 -177
- package/src/components/cards/card.stories.js +8 -10
- package/src/components/carousel/carousel.css.js +101 -70
- package/src/components/carousel/carousel.js +107 -71
- package/src/components/carousel/carousel.stories.js +18 -16
- package/src/components/checkbox/checkbox.css.js +26 -9
- package/src/components/checkbox/checkbox.js +73 -39
- package/src/components/checkbox/checkbox.stories.js +35 -18
- package/src/components/compare/compare.css.js +68 -10
- package/src/components/compare/compare.js +40 -103
- package/src/components/compare/compare.stories.js +1 -1
- package/src/components/compatibility-table/compatibility-table.css.js +70 -37
- package/src/components/compatibility-table/compatibility-table.js +47 -40
- package/src/components/compatibility-table/compatibility-table.stories.js +78 -1
- package/src/components/display/display.css.js +7 -0
- package/src/components/dropdown/dropdown.css.js +20 -3
- package/src/components/dropdown/dropdown.js +57 -21
- package/src/components/dropdown/dropdown.stories.js +31 -9
- package/src/components/features/features.css.js +56 -21
- package/src/components/features/features.js +7 -117
- package/src/components/fieldset/fieldset.stories.js +68 -0
- package/src/components/footer/footer-images.js +34 -0
- package/src/components/footer/footer-links-group.css.js +10 -10
- package/src/components/footer/footer-locale.js +47 -0
- package/src/components/footer/footer-lp.js +27 -114
- package/src/components/footer/footer-lp.stories.js +2 -2
- package/src/components/footer/footer-nav-menu.css.js +2 -2
- package/src/components/footer/footer-nav-menu.js +8 -3
- package/src/components/footer/footer.css.js +238 -197
- package/src/components/footer/footer.js +109 -187
- package/src/components/footer/footer.stories.js +14 -4
- package/src/components/grid/grid.css.js +64 -5
- package/src/components/header/header-code.css.js +20 -11
- package/src/components/header/header-code.js +1 -1
- package/src/components/header/header.css.js +20 -14
- package/src/components/header/header.js +6 -7
- package/src/components/header/header.stories.js +29 -24
- package/src/components/heading/heading.css.js +11 -0
- package/src/components/hero/hero.js +10 -2
- package/src/components/highlight/highlight.css.js +30 -6
- package/src/components/icons/arrow-icon.js +4 -1
- package/src/components/icons/arrow-right-icon.js +5 -1
- package/src/components/icons/icon-element.js +18 -0
- package/src/components/image/image.js +29 -9
- package/src/components/image/image.stories.js +38 -2
- package/src/components/input/custom-form.stories.js +38 -7
- package/src/components/input/input-clipboard.css.js +15 -1
- package/src/components/input/input-clipboard.js +84 -21
- package/src/components/input/input.js +27 -7
- package/src/components/install-options/install-options.css.js +26 -6
- package/src/components/install-options/install-options.js +32 -8
- package/src/components/label/label.css.js +1 -1
- package/src/components/light-carousel/light-carousel.css.js +100 -48
- package/src/components/light-carousel/light-carousel.js +43 -5
- package/src/components/link/link.css.js +15 -15
- package/src/components/link/link.js +17 -1
- package/src/components/link/link.stories.js +20 -7
- package/src/components/list/list.css.js +3 -3
- package/src/components/logo-marquee/logo-marquee.css.js +12 -1
- package/src/components/logo-marquee/logo-marquee.js +33 -8
- package/src/components/logo-marquee/logo-marquee.stories.js +10 -4
- package/src/components/modal/modal.css.js +74 -40
- package/src/components/modal/modal.js +85 -74
- package/src/components/modal/modal.stories.js +27 -14
- package/src/components/motion-art/motion-art.js +67 -1
- package/src/components/page-switcher/page-switcher.css.js +27 -9
- package/src/components/page-switcher/page-switcher.js +11 -8
- package/src/components/partner-banner/partner-banner.css.js +2 -0
- package/src/components/picture/picture.css.js +4 -4
- package/src/components/picture/picture.js +13 -3
- package/src/components/picture/picture.stories.js +28 -2
- package/src/components/post-card/post-card.css.js +18 -3
- package/src/components/pricing-cards/adopt-styles.js +16 -0
- package/src/components/pricing-cards/new-pricing-card.js +2 -4
- package/src/components/pricing-cards/new-pricing-card.stories.js +20 -22
- package/src/components/pricing-cards/pricing-card-actions.css.js +8 -12
- package/src/components/pricing-cards/pricing-card-actions.js +26 -13
- package/src/components/pricing-cards/pricing-card-container.css.js +4 -3
- package/src/components/pricing-cards/pricing-card-container.js +10 -4
- package/src/components/pricing-cards/pricing-card-header.css.js +5 -4
- package/src/components/pricing-cards/pricing-card-header.js +18 -31
- package/src/components/pricing-cards/pricing-card-pricing.css.js +84 -61
- package/src/components/pricing-cards/pricing-card-pricing.js +38 -24
- package/src/components/pricing-cards/pricing-card-show-more.js +8 -3
- package/src/components/pricing-cards/pricing-card.css.js +75 -41
- package/src/components/pricing-cards/pricing-card.js +356 -308
- package/src/components/progress/progress.css.js +58 -13
- package/src/components/progress/progress.js +13 -10
- package/src/components/progress/progress.stories.js +9 -7
- package/src/components/radio/radio-group.css.js +42 -0
- package/src/components/radio/radio-group.js +89 -0
- package/src/components/radio/radio.css.js +63 -6
- package/src/components/radio/radio.js +173 -140
- package/src/components/radio/radio.stories.js +99 -44
- package/src/components/radio/toggle-radio.js +44 -0
- package/src/components/review/review-grid.css.js +5 -1
- package/src/components/review/review-grid.js +2 -0
- package/src/components/review/review.js +13 -0
- package/src/components/shared/announcer.js +37 -0
- package/src/components/shared/fill-width.css.js +33 -0
- package/src/components/shared/form-control.js +194 -0
- package/src/components/shared/form-field.css.js +31 -3
- package/src/components/shared/token-scales.js +75 -26
- package/src/components/spotlight-section/spotlight-section.js +2 -2
- package/src/components/stat/stat-highlight.js +1 -1
- package/src/components/stat/stat.css.js +18 -3
- package/src/components/switch/switch.css.js +58 -5
- package/src/components/switch/switch.js +53 -5
- package/src/components/switch/switch.stories.js +30 -8
- package/src/components/tab-list/tab-list.css.js +51 -13
- package/src/components/tab-list/tab-list.js +7 -2
- package/src/components/tab-list/tab-list.stories.js +2 -2
- package/src/components/tabs/tabs.css.js +18 -1
- package/src/components/tabs/tabs.js +119 -41
- package/src/components/terminal/terminal-message.css.js +6 -1
- package/src/components/termsOfUse/terms.css.js +4 -2
- package/src/components/textarea/textarea.js +22 -7
- package/src/components/textarea/textarea.stories.js +12 -9
- package/src/components/trust-panel/trust-panel.css.js +13 -3
- package/src/components/ultimate-security-demo.stories.js +5 -5
- package/src/components/video/video.css.js +5 -0
- package/src/components/video/video.js +5 -0
- package/src/components/video/video.stories.js +12 -0
- package/src/components/video-player/video-player.css.js +20 -8
- package/src/components/video-player/video-player.js +74 -20
- package/src/components/video-player/video-player.stories.js +17 -3
- package/src/tokens/brands.stories.js +1 -1
- package/src/tokens/themes/index.js +2 -2
- package/src/tokens/typography.stories.js +4 -3
- package/src/vendor/motion-art/README.md +4 -1
- package/src/components/footer/footer-lp.css.js +0 -159
|
@@ -1,70 +1,93 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
|
|
3
|
+
/* Adopted by the document (or the shadow root the card sits in) rather than
|
|
4
|
+
copied into each card, so every selector starts at the element: unscoped,
|
|
5
|
+
".price" and ".terms" would style any element of that class on the page. */
|
|
3
6
|
export default css`
|
|
4
|
-
.pricing {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
pricing-card-pricing .pricing {
|
|
8
|
+
text-align: start;
|
|
9
|
+
margin-top: var(--spacing-16);
|
|
10
|
+
}
|
|
11
|
+
pricing-card-pricing .pricing-info {
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: var(--spacing-8);
|
|
14
|
+
align-items: baseline;
|
|
15
|
+
margin-top: var(--spacing-16);
|
|
16
|
+
}
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
pricing-card-pricing .original-price {
|
|
19
|
+
text-decoration: line-through;
|
|
20
|
+
font-family: var(--typography-fontFamily-sans);
|
|
21
|
+
color: var(--color-text-primary);
|
|
22
|
+
font-size: var(--typography-body-regular-fontSize);
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
pricing-card-pricing .discount {
|
|
27
|
+
color: var(--color-text-success);
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
/* -surface-strong is the step tokens.js calls "the heavier tint, badge
|
|
30
|
+
shade", and this pill's ink is already --color-text-success, which is
|
|
31
|
+
the same green-800 --status-success-text resolves to. So the pair now
|
|
32
|
+
matches bd-badge's success variant exactly (badge.css.js:78-79) and
|
|
33
|
+
measures the 5.93:1 that file records. Value-identical at #d1fadc. */
|
|
34
|
+
background: var(--status-success-surface-strong);
|
|
35
|
+
font-size: var(--typography-body-regular-fontSize);
|
|
36
|
+
padding: 5px;
|
|
37
|
+
border-radius: var(--radius-full);
|
|
38
|
+
font-family: var(--typography-fontFamily-sans);
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
/* The price, a paragraph and not a heading: a figure the card states, not
|
|
43
|
+
the title of anything below it. As an <h3> under the card's <h4> it put an
|
|
44
|
+
out-of-order heading on every card. It keeps the look it had by reading
|
|
45
|
+
the heading-h3 role's axes directly, as the hero's final price reads
|
|
46
|
+
heading-h2. The 40px that stood here was on the bd-h host, where the atom
|
|
47
|
+
sets its own size, and never painted. */
|
|
48
|
+
pricing-card-pricing .price {
|
|
49
|
+
margin: 0;
|
|
50
|
+
text-align: start;
|
|
51
|
+
font-family: var(--typography-heading-h3-fontFamily);
|
|
52
|
+
font-size: var(--typography-heading-h3-fontSize);
|
|
53
|
+
font-weight: var(--typography-heading-h3-fontWeight);
|
|
54
|
+
line-height: var(--typography-heading-h3-lineHeight);
|
|
55
|
+
letter-spacing: var(--typography-heading-h3-letterSpacing);
|
|
56
|
+
color: var(--color-text-primary);
|
|
57
|
+
}
|
|
49
58
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
pricing-card-pricing .terms {
|
|
60
|
+
font-family: var(--typography-fontFamily-sans);
|
|
61
|
+
font-size: var(--typography-label-small-fontSize);
|
|
62
|
+
color: var(--color-text-primary);
|
|
63
|
+
text-align: start;
|
|
64
|
+
margin: 0;
|
|
65
|
+
margin-top: var(--spacing-8);
|
|
66
|
+
margin-bottom: var(--spacing-16);
|
|
67
|
+
}
|
|
59
68
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
pricing-card-pricing .terms a {
|
|
70
|
+
font-family: var(--typography-fontFamily-sans);
|
|
71
|
+
font-size: var(--typography-label-small-fontSize);
|
|
72
|
+
color: var(--color-text-primary);
|
|
73
|
+
text-decoration: underline;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* The two radios side by side, as the .toggle-group row they replace, and
|
|
77
|
+
the group's label kept for a screen reader only: the card's layout has
|
|
78
|
+
no line for it. */
|
|
79
|
+
pricing-card-pricing .billing::part(options) {
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
gap: var(--spacing-16);
|
|
82
|
+
}
|
|
83
|
+
pricing-card-pricing .billing::part(label) {
|
|
84
|
+
position: absolute;
|
|
85
|
+
/* no token: 1px is the clip idiom's own measure, as in
|
|
86
|
+
visually-hidden.css.js */
|
|
87
|
+
width: 1px;
|
|
88
|
+
height: 1px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
clip-path: inset(50%);
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
}
|
|
70
93
|
`;
|
|
@@ -2,11 +2,20 @@ import { LitElement, html } from "lit";
|
|
|
2
2
|
// Installs the design tokens into document scope; see src/tokens/tokens.js
|
|
3
3
|
import "../../tokens/tokens.js";
|
|
4
4
|
import "../badge/badge.js";
|
|
5
|
-
import "../heading/heading.js";
|
|
6
5
|
import "../paragraph/paragraph.js";
|
|
7
6
|
import "../link/link.js";
|
|
8
7
|
import "../radio/radio.js";
|
|
8
|
+
import "../radio/radio-group.js";
|
|
9
9
|
import newPricingPricingCSS from "../pricing-cards/pricing-card-pricing.css.js";
|
|
10
|
+
import { adoptStyles } from "./adopt-styles.js";
|
|
11
|
+
|
|
12
|
+
/* What the store renders for each billing period, and the period it is per.
|
|
13
|
+
The toggle used to change nothing but its own radios: the card showed the
|
|
14
|
+
yearly price, labelled "/month", whichever was selected. */
|
|
15
|
+
const PERIODS = {
|
|
16
|
+
monthly: { price: "discounted-monthly||full-monthly", full: "full-monthly", per: "/month" },
|
|
17
|
+
yearly : { price: "discounted||full", full: "full", per: "/year" }
|
|
18
|
+
};
|
|
10
19
|
|
|
11
20
|
class PricingCardPricing extends LitElement {
|
|
12
21
|
static properties = {
|
|
@@ -14,7 +23,9 @@ class PricingCardPricing extends LitElement {
|
|
|
14
23
|
devices : { type: String },
|
|
15
24
|
subscription : { type: String },
|
|
16
25
|
billingPeriod : { type: String, state: true },
|
|
17
|
-
dataLayerEvent: { type: String }
|
|
26
|
+
dataLayerEvent: { type: String },
|
|
27
|
+
/** Where "terms of use" goes. Without it the words are plain text. */
|
|
28
|
+
termsHref : { type: String, attribute: "terms-href" }
|
|
18
29
|
};
|
|
19
30
|
|
|
20
31
|
constructor() {
|
|
@@ -24,6 +35,7 @@ class PricingCardPricing extends LitElement {
|
|
|
24
35
|
this.devices = "5";
|
|
25
36
|
this.subscription = "1";
|
|
26
37
|
this.dataLayerEvent = "info";
|
|
38
|
+
this.termsHref = "";
|
|
27
39
|
}
|
|
28
40
|
|
|
29
41
|
// FOLOSEȘTE LIGHT DOM
|
|
@@ -31,61 +43,63 @@ class PricingCardPricing extends LitElement {
|
|
|
31
43
|
return this;
|
|
32
44
|
}
|
|
33
45
|
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
super.connectedCallback();
|
|
48
|
+
adoptStyles(this, newPricingPricingCSS);
|
|
49
|
+
}
|
|
50
|
+
|
|
34
51
|
render() {
|
|
35
52
|
const isMonthly = this.billingPeriod === "monthly";
|
|
53
|
+
const period = PERIODS[this.billingPeriod];
|
|
36
54
|
|
|
55
|
+
/* Each card's pair is its own group. Three cards on a page all named their
|
|
56
|
+
radios "billing", so choosing a period in one card cleared the others. */
|
|
37
57
|
return html`
|
|
38
|
-
<style>
|
|
39
|
-
${newPricingPricingCSS}
|
|
40
|
-
</style>
|
|
41
|
-
|
|
42
58
|
<bd-context ignore-events-parent>
|
|
43
59
|
<bd-product product-id="${this.productId}">
|
|
44
|
-
<bd-option
|
|
45
|
-
devices="${this.devices}"
|
|
46
|
-
subscription="${this.subscription}"
|
|
60
|
+
<bd-option
|
|
61
|
+
devices="${this.devices}"
|
|
62
|
+
subscription="${this.subscription}"
|
|
47
63
|
data-layer-event="${this.dataLayerEvent}">
|
|
48
|
-
|
|
64
|
+
|
|
49
65
|
<div class="pricing">
|
|
50
|
-
<
|
|
66
|
+
<bd-radio-group class="billing" label="Billing period" name="billing">
|
|
51
67
|
<bd-radio
|
|
52
|
-
name="billing"
|
|
53
68
|
value="monthly"
|
|
54
69
|
label="Monthly"
|
|
55
70
|
?checked=${isMonthly}
|
|
56
71
|
@change=${this.onBillingChange}
|
|
57
72
|
></bd-radio>
|
|
58
73
|
<bd-radio
|
|
59
|
-
name="billing"
|
|
60
74
|
value="yearly"
|
|
61
75
|
label="Yearly"
|
|
62
76
|
?checked=${!isMonthly}
|
|
63
77
|
@change=${this.onBillingChange}
|
|
64
78
|
></bd-radio>
|
|
65
|
-
</
|
|
79
|
+
</bd-radio-group>
|
|
66
80
|
|
|
67
81
|
<div class="pricing-info" data-store-hide="!it.option.price.discounted">
|
|
68
82
|
<bd-p variant="small" class="original-price">
|
|
69
|
-
<s data-store-render data-store-price="full"></s>
|
|
83
|
+
<s data-store-render data-store-price="${period.full}"></s>
|
|
70
84
|
</bd-p>
|
|
71
|
-
|
|
85
|
+
|
|
72
86
|
<bd-badge tone="success" variant="shade">
|
|
73
87
|
Save <span data-store-render data-store-discount="percentage"></span>
|
|
74
88
|
</bd-badge>
|
|
75
89
|
</div>
|
|
76
90
|
|
|
77
|
-
<
|
|
78
|
-
<span data-store-render data-store-price="
|
|
79
|
-
</
|
|
91
|
+
<p class="price">
|
|
92
|
+
<span data-store-render data-store-price="${period.price}"></span>${period.per}
|
|
93
|
+
</p>
|
|
80
94
|
|
|
81
95
|
<bd-p variant="small" class="terms">
|
|
82
96
|
First year price. Plus applicable sales tax. See
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
97
|
+
${this.termsHref
|
|
98
|
+
? html`<bd-link href="${this.termsHref}" font-size="sm" color="strong" underline>terms of use</bd-link>`
|
|
99
|
+
: "terms of use"}
|
|
86
100
|
</bd-p>
|
|
87
101
|
</div>
|
|
88
|
-
|
|
102
|
+
|
|
89
103
|
</bd-option>
|
|
90
104
|
</bd-product>
|
|
91
105
|
</bd-context>
|
|
@@ -100,4 +114,4 @@ class PricingCardPricing extends LitElement {
|
|
|
100
114
|
}
|
|
101
115
|
}
|
|
102
116
|
|
|
103
|
-
customElements.define("pricing-card-pricing", PricingCardPricing);
|
|
117
|
+
customElements.define("pricing-card-pricing", PricingCardPricing);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, html } from 'lit';
|
|
1
|
+
import { LitElement, html, nothing } from 'lit';
|
|
2
2
|
// Installs the design tokens into document scope; see src/tokens/tokens.js
|
|
3
3
|
import "../../tokens/tokens.js";
|
|
4
4
|
import newShowMorePricingCSS from "../pricing-cards/pricing-card-show-more.css.js";
|
|
@@ -22,13 +22,18 @@ class PricingCardShowMore extends LitElement {
|
|
|
22
22
|
|
|
23
23
|
render() {
|
|
24
24
|
return html`
|
|
25
|
-
<button
|
|
25
|
+
<button
|
|
26
|
+
@click="${this.toggleFeatures}"
|
|
27
|
+
class="show-more-toggle"
|
|
28
|
+
aria-expanded="${this.expanded}"
|
|
29
|
+
aria-controls="${this.expanded ? "feature-items" : nothing}"
|
|
30
|
+
>
|
|
26
31
|
${this.expanded
|
|
27
32
|
? html`<bd-minus-icon aria-hidden="true"></bd-minus-icon>Hide features`
|
|
28
33
|
: html`<bd-plus-icon aria-hidden="true"></bd-plus-icon>Show more features`}
|
|
29
34
|
</button>
|
|
30
35
|
${this.expanded
|
|
31
|
-
? html`<div class="feature-items"><slot></slot></div>`
|
|
36
|
+
? html`<div id="feature-items" class="feature-items"><slot></slot></div>`
|
|
32
37
|
: ''}
|
|
33
38
|
`;
|
|
34
39
|
}
|
|
@@ -96,7 +96,13 @@ export default css`
|
|
|
96
96
|
border-top-left-radius: var(--spacing-20);
|
|
97
97
|
border-top-right-radius: var(--spacing-20);
|
|
98
98
|
position: absolute;
|
|
99
|
-
|
|
99
|
+
/* -30px is what every banner rendered. A "-2.67em" stood here and lost to
|
|
100
|
+
a ".pricing-cards .card:nth-child(2) .highlight-banner { top: -30px }"
|
|
101
|
+
rule, which looked like "the second card" and matched every card
|
|
102
|
+
instead: each card's .card came second, after the <style> copy of this
|
|
103
|
+
sheet the card used to render before it. With the copies gone the rule
|
|
104
|
+
matched nothing, so its value moves here. */
|
|
105
|
+
top: -30px;
|
|
100
106
|
left: 50%;
|
|
101
107
|
transform: translateX(-50%);
|
|
102
108
|
width: 85%;
|
|
@@ -107,9 +113,6 @@ export default css`
|
|
|
107
113
|
line-height: var(--typography-lineHeight-tight);
|
|
108
114
|
z-index: var(--z-base);
|
|
109
115
|
}
|
|
110
|
-
.pricing-cards .card:nth-child(2) .highlight-banner {
|
|
111
|
-
top: -30px;
|
|
112
|
-
}
|
|
113
116
|
.card-header {
|
|
114
117
|
text-align: start;
|
|
115
118
|
}
|
|
@@ -216,21 +219,24 @@ export default css`
|
|
|
216
219
|
margin: var(--spacing-0);
|
|
217
220
|
}
|
|
218
221
|
|
|
222
|
+
/* The price is a <p> now, not a bd-h at h3 (pricing-card.js, renderPricing),
|
|
223
|
+
and keeps the look it had by reading the heading-h3 role's axes directly,
|
|
224
|
+
as the hero's final price reads heading-h2.
|
|
225
|
+
|
|
226
|
+
What stood here was a 40px / 700 / leading-none rule on the bd-h host,
|
|
227
|
+
plus 32, 28 and 24px at three viewport widths, and none of it ever
|
|
228
|
+
painted: the atom sets size, weight and leading on its own inner heading,
|
|
229
|
+
which a host declaration cannot reach (proved by sabotage when this rule
|
|
230
|
+
was last touched). Moving the rule onto the paragraph as it was would have
|
|
231
|
+
switched all of it on, so it is replaced, not moved. */
|
|
219
232
|
.price {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
by the same mechanism -- deleting the whole rule is a larger call, and is
|
|
228
|
-
an item in plans/foundation-plan.md rather than part of this change. */
|
|
229
|
-
font-size: 40px;
|
|
230
|
-
font-weight: 700;
|
|
231
|
-
font-family: var(--typography-fontFamily-sans);
|
|
232
|
-
/* 40px text; was 34px (0.85) — the line box was smaller than the text */
|
|
233
|
-
line-height: var(--typography-lineHeight-none);
|
|
233
|
+
margin: 0;
|
|
234
|
+
font-family: var(--typography-heading-h3-fontFamily);
|
|
235
|
+
font-size: var(--typography-heading-h3-fontSize);
|
|
236
|
+
font-weight: var(--typography-heading-h3-fontWeight);
|
|
237
|
+
line-height: var(--typography-heading-h3-lineHeight);
|
|
238
|
+
letter-spacing: var(--typography-heading-h3-letterSpacing);
|
|
239
|
+
color: var(--color-text-primary);
|
|
234
240
|
}
|
|
235
241
|
|
|
236
242
|
.terms {
|
|
@@ -280,7 +286,9 @@ export default css`
|
|
|
280
286
|
}
|
|
281
287
|
|
|
282
288
|
.features ul {
|
|
283
|
-
padding-left:
|
|
289
|
+
/* inline-start, not left: in a right-to-left page "padding-left: 0" left
|
|
290
|
+
the browser's own 40px list indent standing on the right */
|
|
291
|
+
padding-inline-start: var(--spacing-0);
|
|
284
292
|
padding-top: var(--spacing-16);
|
|
285
293
|
}
|
|
286
294
|
|
|
@@ -294,7 +302,8 @@ export default css`
|
|
|
294
302
|
text-align: start;
|
|
295
303
|
}
|
|
296
304
|
.additional-info li {
|
|
297
|
-
/* No colour here
|
|
305
|
+
/* No colour here, and for a different reason than a bd-h host's colour is
|
|
306
|
+
inert (see .price above). This
|
|
298
307
|
li is a plain element, not an atom host: its text lives in a bd-p child,
|
|
299
308
|
and paragraph.css.js declares the ink on that atom's own :host. A direct
|
|
300
309
|
declaration on an element beats a value inherited into it, so a colour set
|
|
@@ -323,7 +332,7 @@ export default css`
|
|
|
323
332
|
}
|
|
324
333
|
|
|
325
334
|
.badge-icon {
|
|
326
|
-
margin-
|
|
335
|
+
margin-inline-end: var(--spacing-8);
|
|
327
336
|
}
|
|
328
337
|
.features h4 {
|
|
329
338
|
text-align: start;
|
|
@@ -434,14 +443,41 @@ export default css`
|
|
|
434
443
|
position: relative;
|
|
435
444
|
display: flex;
|
|
436
445
|
align-items: center;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/* The feature's name, as the button that opens its description
|
|
449
|
+
(pricing-card.js, FeatureTips): it reads as the text it was, and the ring
|
|
450
|
+
is the shared one at the top of this sheet. */
|
|
451
|
+
.feature-toggle {
|
|
452
|
+
margin: 0;
|
|
453
|
+
padding: 0;
|
|
454
|
+
border: 0;
|
|
455
|
+
background: none;
|
|
456
|
+
font: inherit;
|
|
457
|
+
letter-spacing: inherit;
|
|
458
|
+
color: inherit;
|
|
459
|
+
text-align: inherit;
|
|
437
460
|
cursor: pointer;
|
|
461
|
+
border-radius: var(--focus-outline-radius);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* The whole row is the button's target, as the whole row was the hover's. */
|
|
465
|
+
.feature-toggle::after {
|
|
466
|
+
content: "";
|
|
467
|
+
position: absolute;
|
|
468
|
+
inset: 0;
|
|
438
469
|
}
|
|
439
470
|
|
|
440
471
|
.feature-item .tooltip {
|
|
441
472
|
display: none;
|
|
442
473
|
position: absolute;
|
|
443
|
-
|
|
444
|
-
|
|
474
|
+
/* Above the row, by its own height: the arrow below the box ends on the
|
|
475
|
+
row's top edge. It was top: -70px, and every description is taller than
|
|
476
|
+
that -- measured 75 to 156px -- so the open box always covered the name
|
|
477
|
+
it describes, which once the name is a button means covering the focused
|
|
478
|
+
control and taking the tap meant to close it. */
|
|
479
|
+
bottom: calc(100% + var(--spacing-8));
|
|
480
|
+
inset-inline-start: 0;
|
|
445
481
|
background-color: var(--color-surface-container);
|
|
446
482
|
/* Tooltip copy: supporting, not primary. */
|
|
447
483
|
color: var(--color-text-secondary);
|
|
@@ -464,17 +500,27 @@ export default css`
|
|
|
464
500
|
content: "";
|
|
465
501
|
position: absolute;
|
|
466
502
|
bottom: -8px;
|
|
467
|
-
|
|
468
|
-
|
|
503
|
+
/* centred on 20% from the start: half the arrow's width is one of the two
|
|
504
|
+
--spacing-8 borders that draw it, which a translate could not flip */
|
|
505
|
+
inset-inline-start: calc(20% - var(--spacing-8));
|
|
469
506
|
border-left: var(--spacing-8) solid transparent;
|
|
470
507
|
border-right: var(--spacing-8) solid transparent;
|
|
471
508
|
/* the arrow, same role as the box above -- they are one shape */
|
|
472
509
|
border-top: var(--spacing-8) solid var(--color-border-subtle);
|
|
473
510
|
}
|
|
474
511
|
|
|
475
|
-
|
|
512
|
+
/* Open on the button, and previewed on hover where there is a hover. A
|
|
513
|
+
touch screen's emulated hover sticks after a tap, so without the query the
|
|
514
|
+
tap that closes the description would leave it showing. */
|
|
515
|
+
.feature-item .tooltip.open {
|
|
476
516
|
display: block;
|
|
477
517
|
}
|
|
518
|
+
|
|
519
|
+
@media (hover: hover) {
|
|
520
|
+
.feature-item:hover .tooltip {
|
|
521
|
+
display: block;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
478
524
|
.badge-feature {
|
|
479
525
|
background-color: var(--color-surface-brand);
|
|
480
526
|
color: var(--color-text-inverse);
|
|
@@ -485,7 +531,7 @@ export default css`
|
|
|
485
531
|
align-items: center;
|
|
486
532
|
justify-content: center;
|
|
487
533
|
font-size: 12px;
|
|
488
|
-
margin-
|
|
534
|
+
margin-inline-start: var(--spacing-8);
|
|
489
535
|
text-align: center;
|
|
490
536
|
padding: var(--spacing-2);
|
|
491
537
|
}
|
|
@@ -497,7 +543,7 @@ export default css`
|
|
|
497
543
|
width: var(--spacing-20) !important;
|
|
498
544
|
height: var(--spacing-20) !important;
|
|
499
545
|
top: var(--spacing-2);
|
|
500
|
-
padding-
|
|
546
|
+
padding-inline-end: var(--spacing-4);
|
|
501
547
|
}
|
|
502
548
|
.family-text {
|
|
503
549
|
position: relative;
|
|
@@ -519,10 +565,6 @@ export default css`
|
|
|
519
565
|
font-size: 1.5em;
|
|
520
566
|
}
|
|
521
567
|
|
|
522
|
-
.price {
|
|
523
|
-
font-size: 32px;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
568
|
.highlight-banner {
|
|
527
569
|
font-size: 16px;
|
|
528
570
|
width: 90%;
|
|
@@ -542,10 +584,6 @@ export default css`
|
|
|
542
584
|
font-size: 1.3em;
|
|
543
585
|
}
|
|
544
586
|
|
|
545
|
-
.price {
|
|
546
|
-
font-size: 28px;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
587
|
.badge-subtitle,
|
|
550
588
|
.original-price,
|
|
551
589
|
.discount,
|
|
@@ -579,10 +617,6 @@ export default css`
|
|
|
579
617
|
font-size: 1.1em;
|
|
580
618
|
}
|
|
581
619
|
|
|
582
|
-
.price {
|
|
583
|
-
font-size: 24px;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
620
|
.badge-subtitle,
|
|
587
621
|
.original-price,
|
|
588
622
|
.discount,
|
|
@@ -616,7 +650,7 @@ export default css`
|
|
|
616
650
|
also a raw literal. If the gap is wanted, it should be asked for on its own
|
|
617
651
|
terms. */
|
|
618
652
|
.text-left {
|
|
619
|
-
text-align:
|
|
653
|
+
text-align: start !important;
|
|
620
654
|
padding-bottom: 15px;
|
|
621
655
|
}
|
|
622
656
|
|