-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathindex.css
More file actions
186 lines (158 loc) · 8.51 KB
/
index.css
File metadata and controls
186 lines (158 loc) · 8.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*!
* Copyright 2025 Adobe. All rights reserved.
*
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at <http://www.apache.org/licenses/LICENSE-2.0>
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
.spectrum-CoachMark {
--spectrum-coachmark-width: var(--spectrum-coach-mark-width);
--spectrum-coachmark-min-width: var(--spectrum-coach-mark-minimum-width);
--spectrum-coachmark-max-width: var(--spectrum-coach-mark-maximum-width);
--spectrum-coachmark-media-min-height: var(--spectrum-coach-mark-media-minimum-height);
--spectrum-coachmark-border-size: var(--mod-coachmark-border-size, var(--mod-popover-border-width));
--spectrum-coachmark-border-radius: var(--mod-coachmark-border-radius, var(--mod-popover-corner-radius));
--spectrum-coachmark-media-fixed-height: var(--spectrum-coach-mark-media-height);
/* layout */
--spectrum-coachmark-padding: var(--spectrum-coach-mark-edge-to-content);
--spectrum-coachmark-image-to-heading: var(--spectrum-coach-mark-edge-to-content);
--spectrum-coachmark-header-to-body: var(--spectrum-spacing-200);
--spectrum-coachmark-body-to-footer: var(--spectrum-spacing-300);
/* font */
--spectrum-coachmark-title-color: var(--spectrum-heading-color);
--spectrum-coachmark-title-font-family: var(--spectrum-sans-serif-font);
--spectrum-coachmark-title-font-size: var(--spectrum-coach-mark-title-font-size);
--spectrum-coachmark-title-font-style: var(--spectrum-title-serif-font-style);
--spectrum-coachmark-title-text-font-weight: var(--spectrum-title-sans-serif-font-weight);
--spectrum-coachmark-title-text-line-height: var(--spectrum-title-line-height);
--spectrum-coachmark-content-font-size: var(--spectrum-coach-mark-body-font-size);
--spectrum-coachmark-content-font-weight: var(--spectrum-body-sans-serif-font-weight);
--spectrum-coachmark-step-color: var(--spectrum-coach-mark-pagination-color);
--spectrum-coachmark-step-font-style: var(--spectrum-body-serif-font-style);
--spectrum-coachmark-step-font-size: var(--spectrum-coach-mark-pagination-body-font-size);
--spectrum-coachmark-step-text-font-weight: var(--spectrum-medium-font-weight);
--spectrum-coachmark-step-text-line-height: var(--spectrum-line-height-200);
--spectrum-coachmark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge);
/* @passthrough start */
--mod-buttongroup-justify-content: flex-end;
--mod-popover-border-width: var(--spectrum-border-width-100);
--mod-popover-corner-radius: var(--spectrum-corner-radius-large-default);
--mod-popover-content-area-spacing: 0;
--mod-button-edge-to-visual-only: 9px;
/* @passthrough end */
}
.spectrum-CoachMark {
position: relative;
min-inline-size: var(--mod-coachmark-min-width, var(--spectrum-coachmark-min-width));
max-inline-size: var(--mod-coachmark-max-width, var(--spectrum-coachmark-max-width));
inline-size: var(--mod-coachmark-width, var(--spectrum-coachmark-width));
}
/* Used when the coachmark has an image */
.spectrum-CoachMark-image-wrapper {
min-block-size: var(--mod-coachmark-media-min-height, var(--spectrum-coachmark-media-min-height));
inline-size: calc(var(--mod-coachmark-width, var(--spectrum-coach-mark-width)) - (var(--spectrum-coachmark-border-size) * 2));
object-fit: cover;
object-position: center;
border-start-start-radius: inherit;
border-start-end-radius: inherit;
}
.spectrum-CoachMark-image-wrapper--fixedHeight {
block-size: var(--mod-coachmark-media-fixed-height, var(--spectrum-coachmark-media-fixed-height));
}
/* Class for the image; nested inside image-wrapper */
.spectrum-CoachMark-image {
display: block;
inline-size: 100%;
block-size: 100%;
min-block-size: var(--mod-coachmark-media-min-height, var(--spectrum-coachmark-media-min-height));
object-fit: cover;
border-start-start-radius: calc(var(--spectrum-coachmark-border-radius) - var(--spectrum-coachmark-border-size));
border-start-end-radius: calc(var(--spectrum-coachmark-border-radius) - var(--spectrum-coachmark-border-size));
}
/* Shared content styles */
.spectrum-CoachMark-header,
.spectrum-CoachMark-content,
.spectrum-CoachMark-footer {
padding-block: 0;
padding-inline: var(--mod-coachmark-padding, var(--spectrum-coachmark-padding));
}
/* Wrapper contains title, action-menu */
.spectrum-CoachMark-header {
padding-block-start: var(--mod-coachmark-image-to-heading, var(--spectrum-coachmark-image-to-heading));
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-block-end: var(--mod-coachmark-header-to-body, var(--spectrum-coachmark-header-to-body));
}
/* Text wrapper for the title content; sides besdie action menu if present */
.spectrum-CoachMark-title {
color: var(--mod-coachmark-title-color, var(--spectrum-coachmark-title-color));
font-size: var(--mod-coachmark-title-font-size, var(--spectrum-coachmark-title-font-size));
font-weight: var(--mod-coachmark-title-text-font-weight, var(--spectrum-coachmark-title-text-font-weight));
font-family: var(--mod-coachmark-title-font-family, var(--spectrum-coachmark-title-font-family));
font-style: var(--mod-coachmark-title-font-style, var(--spectrum-coachmark-title-font-style));
line-height: var(--mod-coachmark-title-text-line-height, var(--spectrum-coachmark-title-text-line-height));
margin-block-end: 0;
}
/* Wrapper element around the nested action menu sub-component */
.spectrum-CoachMark-action-menu {
--mod-popover-content-area-spacing: var(--spectrum-popover-content-area-spacing);
white-space: nowrap;
z-index: 1;
margin-inline-start: var(--mod-coachmark-heading-to-action-button, var(--spectrum-spacing-300));
margin-block: var(--mod-coachmark-action-menu-vertical-offset, var(--spectrum-coachmark-action-menu-vertical-offset));
}
/* @deprecated not used currently in demos or by SWC */
.spectrum-CoachMark-menu {
display: var(--spectrum-coachmark-menu-display);
}
/* @deprecated not used currently in demos or by SWC */
.spectrum-CoachMark-menu--mobile {
--spectrum-coachmark-menu-display: var(--spectrum-coachmark-menu-mobile-display);
}
/* Text wrapper for the content */
.spectrum-CoachMark-content {
margin-block-end: var(--mod-coachmark-body-to-footer, var(--spectrum-coachmark-body-to-footer));
color: var(--mod-coachmark-content-font-color, var(--spectrum-body-color));
font-size: var(--mod-coachmark-content-font-size, var(--spectrum-coachmark-content-font-size));
font-weight: var(--mod-coachmark-content-font-weight, var(--spectrum-coachmark-content-font-weight));
font-family: var(--mod-coachmark-content-font-family, var(--spectrum-sans-serif-font));
font-style: var(--mod-coachmark-content-font-style, var(--spectrum-body-sans-serif-font-style));
line-height: var(--mod-coachmark-content-line-height, var(--spectrum-body-line-height));
}
/* Footer wrapper for the pagination and button group sub-components */
.spectrum-CoachMark-footer {
display: grid;
align-items: end;
margin-block-start: 0;
padding-block-end: var(--mod-coachmark-padding, var(--spectrum-coachmark-padding));
}
/* Text wrapper for the step count */
.spectrum-CoachMark-step {
justify-self: start;
margin-block-end: calc(var(--mod-coachmark-step-to-bottom, var(--spectrum-coachmark-step-to-bottom)) - var(--mod-coachmark-padding, var(--spectrum-coachmark-padding)));
color: var(--mod-coachmark-step-color, var(--spectrum-coachmark-step-color));
font-size: var(--mod-coachmark-step-font-size, var(--spectrum-coachmark-step-font-size));
font-weight: var(--mod-coachmark-step-text-font-weight, var(--spectrum-coachmark-step-text-font-weight));
font-family: var(--spectrum-sans-serif-font);
font-style: var(--mod-coachmark-step-font-style, var(--spectrum-coachmark-step-font-style));
line-height: var(--mod-coachmark-step-text-line-height, var(--spectrum-coachmark-step-text-line-height));
white-space: nowrap;
}
/* Class attached to the ButtonGroup sub-component */
.spectrum-CoachMark-buttongroup {
display: var(--spectrum-coachmark-buttongroup-display);
grid-column-start: 2;
}
/* Variant for mobile */
/* @todo can we use a media query here or base this on scale? */
.spectrum-CoachMark-buttongroup--mobile {
--spectrum-coachmark-buttongroup-display: var(--spectrum-coachmark-buttongroup-mobile-display);
/* @passthrough -- ButtonGroup */
--mod-buttongroup-spacing: var(--spectrum-spacing-100);
}