|
1 | 1 | /*!
|
2 |
| - * Copyright 2024 Adobe. All rights reserved. |
| 2 | + * Copyright 2025 Adobe. All rights reserved. |
3 | 3 | *
|
4 | 4 | * This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License. You may obtain a copy
|
|
11 | 11 | * governing permissions and limitations under the License.
|
12 | 12 | */
|
13 | 13 |
|
| 14 | +.spectrum-ContextualHelp { |
| 15 | + --spectrum-contextual-help-title-sans-serif-font-family: var(--spectrum-sans-font-family-stack); |
| 16 | + --spectrum-contextual-help-title-font-weight: var(--spectrum-title-sans-serif-font-weight); |
| 17 | + --spectrum-contextual-help-title-font-style: var(--spectrum-title-sans-serif-font-style); |
| 18 | + --spectrum-contextual-help-title-line-height: var(--spectrum-title-line-height); |
| 19 | + |
| 20 | + --spectrum-contextual-help-title-color: var(--spectrum-title-color); |
| 21 | + |
| 22 | + --spectrum-contextual-help-body-sans-serif-font-family: var(--spectrum-sans-font-family-stack); |
| 23 | + --spectrum-contextual-help-body-sans-serif-font-weight: var(--spectrum-body-sans-serif-font-weight); |
| 24 | + --spectrum-contextual-help-body-sans-serif-font-style: var(--spectrum-body-sans-serif-font-style); |
| 25 | + --spectrum-contextual-help-body-line-height: var(--spectrum-line-height-200); |
| 26 | + |
| 27 | + --spectrum-contextual-help-body-color: var(--spectrum-body-color); |
| 28 | + |
| 29 | + --spectrum-contextual-help-min-inline-size: var(--spectrum-contextual-help-minimum-width); |
| 30 | + --spectrum-contextual-help-link-spacing: var(--spectrum-spacing-300); |
| 31 | + --spectrum-contextual-help-padding: var(--spectrum-spacing-400); |
| 32 | + |
| 33 | + /* @passthrough start */ |
| 34 | + --mod-popover-animation-distance: var(--spectrum-spacing-100); |
| 35 | + --mod-popover-corner-radius: var(--spectrum-corner-radius-large-default); |
| 36 | + /* @passthrough end */ |
| 37 | +} |
| 38 | + |
14 | 39 | .spectrum-ContextualHelp {
|
15 | 40 | position: relative;
|
16 |
| - min-inline-size: var(--mod-spectrum-contextual-help-minimum-width, var(--spectrum-contextual-help-minimum-width)); |
| 41 | + min-inline-size: var(--mod-contextual-help-min-inline-size, var(--spectrum-contextual-help-min-inline-size)); |
17 | 42 | }
|
18 | 43 |
|
19 | 44 | .spectrum-ContextualHelp-button {
|
20 | 45 | display: flex;
|
21 | 46 | }
|
22 | 47 |
|
23 | 48 | .spectrum-ContextualHelp-popover {
|
24 |
| - padding-block: var(--mod-spectrum-contextual-help-padding, var(--spectrum-spacing-400)); |
25 |
| - padding-inline: var(--mod-spectrum-contextual-help-padding, var(--spectrum-spacing-400)); |
26 |
| - font-size: var(--mod-spectrum-contextual-help-body-size, var(--spectrum-contextual-help-body-size)); |
| 49 | + padding: var(--mod-contextual-help-padding, var(--spectrum-contextual-help-padding)); |
| 50 | + font-size: var(--mod-contextual-help-body-size, var(--spectrum-contextual-help-body-size)); |
27 | 51 | color: var(--highcontrast-contextual-help-body-color, var(--mod-contextual-help-body-color, var(--spectrum-body-color)));
|
28 | 52 |
|
29 |
| - max-inline-size: var(--mod-spectrum-contextual-help-popover-maximum-width); |
| 53 | + max-inline-size: var(--mod-contextual-help-popover-maximum-width); |
30 | 54 |
|
31 | 55 | .spectrum-ContextualHelp-heading,
|
32 | 56 | .spectrum-ContextualHelp-body {
|
33 | 57 | margin: 0;
|
34 | 58 | }
|
35 | 59 |
|
36 | 60 | .spectrum-ContextualHelp-heading {
|
37 |
| - margin-block-end: var(--mod-spectrum-contextual-help-content-spacing, var(--spectrum-contextual-help-content-spacing)); |
38 |
| - font-size: var(--mod-spectrum-contextual-help-heading-size, var(--spectrum-contextual-help-title-size)); |
39 |
| - color: var(--highcontrast-contextual-help-heading-color, var(--mod-contextual-help-heading-color, var(--spectrum-heading-color))); |
| 61 | + font-family: var(--mod-contextual-help-title-sans-serif-font-family, var(--spectrum-contextual-help-title-sans-serif-font-family)); |
| 62 | + font-weight: var(--mod-contextual-help-title-font-weight, var(--spectrum-contextual-help-title-font-weight)); |
| 63 | + font-size: var(--mod-contextual-help-heading-size, var(--spectrum-contextual-help-title-size)); |
| 64 | + font-style: var(--mod-contextual-help-title-font-style, var(--spectrum-contextual-help-title-font-style)); |
| 65 | + line-height: var(--mod-contextual-help-title-line-height, var(--spectrum-contextual-help-title-line-height)); |
| 66 | + color: var(--highcontrast-contextual-help-title-color, var(--mod-contextual-help-title-color, var(--spectrum-contextual-help-title-color))); |
| 67 | + margin-block-end: var(--mod-contextual-help-content-spacing, var(--spectrum-contextual-help-content-spacing)); |
| 68 | + } |
| 69 | + |
| 70 | + .spectrum-ContextualHelp-body { |
| 71 | + font-size: var(--mod-contextual-help-body-size, var(--spectrum-contextual-help-body-size)); |
| 72 | + font-family: var(--mod-contextual-help-body-sans-serif-font-family, var(--spectrum-contextual-help-body-sans-serif-font-family)); |
| 73 | + font-weight: var(--mod-contextual-help-body-sans-serif-font-weight, var(--spectrum-contextual-help-body-sans-serif-font-weight)); |
| 74 | + font-style: var(--mod-contextual-help-body-sans-serif-font-style, var(--spectrum-contextual-help-body-sans-serif-font-style)); |
| 75 | + line-height: var(--mod-contextual-help-body-line-height, var(--spectrum-contextual-help-body-line-height)); |
| 76 | + color: var(--mod-contextual-help-body-color, var(--spectrum-contextual-help-body-color)); |
40 | 77 | }
|
41 | 78 | }
|
42 | 79 |
|
43 | 80 | .spectrum-ContextualHelp-link {
|
44 |
| - margin-block-start: var(--mod-spectrum-contextual-help-link-spacing, var(--spectrum-spacing-300)); |
| 81 | + margin-block-start: var(--mod-contextual-help-link-spacing, var(--spectrum-contextual-help-link-spacing)); |
45 | 82 | }
|
46 | 83 |
|
47 | 84 | @media (forced-colors: active) {
|
48 | 85 | .spectrum-ContextualHelp {
|
49 |
| - --highcontrast-contextual-help-heading-color: CanvasText; |
| 86 | + --highcontrast-contextual-help-title-color: CanvasText; |
50 | 87 | --highcontrast-contextual-help-body-color: CanvasText;
|
51 | 88 | }
|
52 | 89 | }
|
0 commit comments