@ebay/skin 14.0.6 → 14.1.0-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/.storybook/preview-head.html +374 -55
- package/_cdn/skin/v14.1.0-0/skin-default.min.css +6 -0
- package/_cdn/skin/v14.1.0-0/skin-full.min.css +6 -0
- package/_cdn/skin/v14.1.0-0/skin-headless.min.css +6 -0
- package/_cdn/skin/v14.1.0-0/skin-legacy.min.css +6 -0
- package/dist/drawer-dialog/drawer-dialog.css +2 -2
- package/dist/floating-label/floating-label.css +7 -8
- package/dist/fullscreen-dialog/fullscreen-dialog.css +17 -20
- package/dist/icon/direction.css +4 -0
- package/dist/icon/general.css +102 -2
- package/dist/icon/icon.css +169 -13
- package/dist/icon/interface.css +34 -2
- package/dist/icon/internal.css +4 -0
- package/dist/icon/large.css +6 -2
- package/dist/icon/photo.css +15 -3
- package/dist/icon/shipping.css +2 -2
- package/dist/icon/user.css +2 -2
- package/dist/lightbox-dialog/lightbox-dialog.css +8 -11
- package/dist/link/link.css +1 -1
- package/dist/page-notice/page-notice.css +35 -14
- package/dist/panel-dialog/panel-dialog.css +8 -21
- package/dist/progress-stepper/progress-stepper.css +21 -6
- package/dist/select/select.css +10 -10
- package/dist/svg/direction.svg +5 -0
- package/dist/svg/general.svg +181 -8
- package/dist/svg/icons.svg +374 -55
- package/dist/svg/interface.svg +75 -10
- package/dist/svg/internal.svg +160 -77
- package/dist/svg/large.svg +14 -2
- package/dist/svg/photo.svg +104 -35
- package/dist/svg/shipping.svg +79 -48
- package/dist/svg/social.svg +2 -13
- package/dist/svg/user.svg +45 -25
- package/package.json +1 -1
- package/src/less/floating-label/floating-label.less +8 -12
- package/src/less/floating-label/stories/floating-label.stories.js +41 -0
- package/src/less/fullscreen-dialog/fullscreen-dialog.less +14 -14
- package/src/less/fullscreen-dialog/stories/fullscreen-dialog.stories.js +33 -11
- package/src/less/icon/generated/direction.less +4 -0
- package/src/less/icon/generated/general.less +102 -2
- package/src/less/icon/generated/interface.less +34 -2
- package/src/less/icon/generated/internal.less +4 -0
- package/src/less/icon/generated/large.less +6 -2
- package/src/less/icon/generated/photo.less +15 -3
- package/src/less/icon/generated/shipping.less +2 -2
- package/src/less/icon/generated/user.less +2 -2
- package/src/less/lightbox-dialog/lightbox-dialog.less +7 -13
- package/src/less/lightbox-dialog/stories/lightbox-dialog.stories.js +38 -10
- package/src/less/link/link.less +1 -1
- package/src/less/mixins/private/dialog-mixins.less +13 -10
- package/src/less/page-notice/page-notice.less +42 -14
- package/src/less/page-notice/stories/page-notice.stories.js +43 -0
- package/src/less/panel-dialog/panel-dialog.less +8 -18
- package/src/less/panel-dialog/stories/panel-dialog.stories.js +32 -10
- package/src/less/progress-stepper/progress-stepper.less +24 -6
- package/src/less/progress-stepper/stories/progress-stepper.stories.js +108 -17
- package/src/less/select/select.less +11 -11
- package/src/svg/direction.svg +5 -0
- package/src/svg/general.svg +181 -8
- package/src/svg/icons.svg +374 -55
- package/src/svg/interface.svg +75 -10
- package/src/svg/internal.svg +160 -77
- package/src/svg/large.svg +14 -2
- package/src/svg/photo.svg +104 -35
- package/src/svg/shipping.svg +79 -48
- package/src/svg/social.svg +2 -13
- package/src/svg/user.svg +45 -25
- package/svg.svg +374 -55
- package/_cdn/skin/v14.0.6/skin-default.min.css +0 -6
- package/_cdn/skin/v14.0.6/skin-full.min.css +0 -6
- package/_cdn/skin/v14.0.6/skin-headless.min.css +0 -6
- package/_cdn/skin/v14.0.6/skin-legacy.min.css +0 -6
|
@@ -92,8 +92,8 @@ svg.icon--following {
|
|
|
92
92
|
width: 16px;
|
|
93
93
|
}
|
|
94
94
|
svg.icon--flag {
|
|
95
|
-
height:
|
|
96
|
-
width:
|
|
95
|
+
height: 24px;
|
|
96
|
+
width: 24px;
|
|
97
97
|
}
|
|
98
98
|
svg.icon--key {
|
|
99
99
|
height: 13.5px;
|
|
@@ -195,3 +195,103 @@ svg.icon--scan {
|
|
|
195
195
|
height: 24px;
|
|
196
196
|
width: 24px;
|
|
197
197
|
}
|
|
198
|
+
svg.icon--lightbulb-small {
|
|
199
|
+
height: 16px;
|
|
200
|
+
width: 16px;
|
|
201
|
+
}
|
|
202
|
+
svg.icon--visa-xsmall {
|
|
203
|
+
height: 13px;
|
|
204
|
+
width: 21px;
|
|
205
|
+
}
|
|
206
|
+
svg.icon--visa-small {
|
|
207
|
+
height: 19px;
|
|
208
|
+
width: 31px;
|
|
209
|
+
}
|
|
210
|
+
svg.icon--visa {
|
|
211
|
+
height: 25px;
|
|
212
|
+
width: 39px;
|
|
213
|
+
}
|
|
214
|
+
svg.icon--visa-large {
|
|
215
|
+
height: 33px;
|
|
216
|
+
width: 51px;
|
|
217
|
+
}
|
|
218
|
+
svg.icon--archive {
|
|
219
|
+
height: 24px;
|
|
220
|
+
width: 24px;
|
|
221
|
+
}
|
|
222
|
+
svg.icon--archive-small {
|
|
223
|
+
height: 16px;
|
|
224
|
+
width: 16px;
|
|
225
|
+
}
|
|
226
|
+
svg.icon--inbox {
|
|
227
|
+
height: 24px;
|
|
228
|
+
width: 24px;
|
|
229
|
+
}
|
|
230
|
+
svg.icon--inbox-small {
|
|
231
|
+
height: 16px;
|
|
232
|
+
width: 16px;
|
|
233
|
+
}
|
|
234
|
+
svg.icon--folder {
|
|
235
|
+
height: 24px;
|
|
236
|
+
width: 24px;
|
|
237
|
+
}
|
|
238
|
+
svg.icon--folder-small {
|
|
239
|
+
height: 16px;
|
|
240
|
+
width: 16px;
|
|
241
|
+
}
|
|
242
|
+
svg.icon--reply {
|
|
243
|
+
height: 24px;
|
|
244
|
+
width: 24px;
|
|
245
|
+
}
|
|
246
|
+
svg.icon--reply-small {
|
|
247
|
+
height: 16px;
|
|
248
|
+
width: 16px;
|
|
249
|
+
}
|
|
250
|
+
svg.icon--live-eye {
|
|
251
|
+
height: 24px;
|
|
252
|
+
width: 24px;
|
|
253
|
+
}
|
|
254
|
+
svg.icon--live-eye-small {
|
|
255
|
+
height: 16px;
|
|
256
|
+
width: 16px;
|
|
257
|
+
}
|
|
258
|
+
svg.icon--return {
|
|
259
|
+
height: 24px;
|
|
260
|
+
width: 24px;
|
|
261
|
+
}
|
|
262
|
+
svg.icon--return-small {
|
|
263
|
+
height: 16px;
|
|
264
|
+
width: 16px;
|
|
265
|
+
}
|
|
266
|
+
svg.icon--undo {
|
|
267
|
+
height: 25px;
|
|
268
|
+
width: 24px;
|
|
269
|
+
}
|
|
270
|
+
svg.icon--certified-recycle {
|
|
271
|
+
height: 24px;
|
|
272
|
+
width: 24px;
|
|
273
|
+
}
|
|
274
|
+
svg.icon--certified-recycle-small {
|
|
275
|
+
height: 16px;
|
|
276
|
+
width: 16px;
|
|
277
|
+
}
|
|
278
|
+
svg.icon--selling-medium {
|
|
279
|
+
height: 20px;
|
|
280
|
+
width: 20px;
|
|
281
|
+
}
|
|
282
|
+
svg.icon--sort-small {
|
|
283
|
+
height: 16px;
|
|
284
|
+
width: 16px;
|
|
285
|
+
}
|
|
286
|
+
svg.icon--sort-up-small {
|
|
287
|
+
height: 16px;
|
|
288
|
+
width: 16px;
|
|
289
|
+
}
|
|
290
|
+
svg.icon--sort-down-small {
|
|
291
|
+
height: 16px;
|
|
292
|
+
width: 16px;
|
|
293
|
+
}
|
|
294
|
+
svg.icon--flag-small {
|
|
295
|
+
height: 16px;
|
|
296
|
+
width: 16px;
|
|
297
|
+
}
|
|
@@ -76,8 +76,8 @@ svg.icon--share {
|
|
|
76
76
|
width: 24px;
|
|
77
77
|
}
|
|
78
78
|
svg.icon--messages {
|
|
79
|
-
height:
|
|
80
|
-
width:
|
|
79
|
+
height: 24px;
|
|
80
|
+
width: 24px;
|
|
81
81
|
}
|
|
82
82
|
svg.icon--send {
|
|
83
83
|
height: 19px;
|
|
@@ -139,3 +139,35 @@ svg.icon--zoom-out {
|
|
|
139
139
|
height: 24px;
|
|
140
140
|
width: 24px;
|
|
141
141
|
}
|
|
142
|
+
svg.icon--messages-small {
|
|
143
|
+
height: 16px;
|
|
144
|
+
width: 16px;
|
|
145
|
+
}
|
|
146
|
+
svg.icon--mail-open {
|
|
147
|
+
height: 24px;
|
|
148
|
+
width: 24px;
|
|
149
|
+
}
|
|
150
|
+
svg.icon--mail-open-small {
|
|
151
|
+
height: 16px;
|
|
152
|
+
width: 16px;
|
|
153
|
+
}
|
|
154
|
+
svg.icon--mail-move {
|
|
155
|
+
height: 24px;
|
|
156
|
+
width: 24px;
|
|
157
|
+
}
|
|
158
|
+
svg.icon--mail-move-small {
|
|
159
|
+
height: 16px;
|
|
160
|
+
width: 16px;
|
|
161
|
+
}
|
|
162
|
+
svg.icon--mail-unread {
|
|
163
|
+
height: 24px;
|
|
164
|
+
width: 24px;
|
|
165
|
+
}
|
|
166
|
+
svg.icon--mail-unread-small {
|
|
167
|
+
height: 16px;
|
|
168
|
+
width: 16px;
|
|
169
|
+
}
|
|
170
|
+
svg.icon--download-small {
|
|
171
|
+
height: 16px;
|
|
172
|
+
width: 16px;
|
|
173
|
+
}
|
|
@@ -36,8 +36,8 @@ svg.icon--location-large {
|
|
|
36
36
|
width: 42px;
|
|
37
37
|
}
|
|
38
38
|
svg.icon--messages-large {
|
|
39
|
-
height:
|
|
40
|
-
width:
|
|
39
|
+
height: 64px;
|
|
40
|
+
width: 64px;
|
|
41
41
|
}
|
|
42
42
|
svg.icon--purchases-large {
|
|
43
43
|
height: 56px;
|
|
@@ -75,3 +75,7 @@ svg.icon--play-large {
|
|
|
75
75
|
height: 60px;
|
|
76
76
|
width: 60px;
|
|
77
77
|
}
|
|
78
|
+
svg.icon--bids-large {
|
|
79
|
+
height: 64px;
|
|
80
|
+
width: 64px;
|
|
81
|
+
}
|
|
@@ -8,12 +8,12 @@ svg.icon--photo-crop {
|
|
|
8
8
|
width: 20px;
|
|
9
9
|
}
|
|
10
10
|
svg.icon--photo-gallery {
|
|
11
|
-
height:
|
|
12
|
-
width:
|
|
11
|
+
height: 24px;
|
|
12
|
+
width: 24px;
|
|
13
13
|
}
|
|
14
14
|
svg.icon--photo-gallery-more {
|
|
15
15
|
height: 24px;
|
|
16
|
-
width:
|
|
16
|
+
width: 24px;
|
|
17
17
|
}
|
|
18
18
|
svg.icon--photo-rotate {
|
|
19
19
|
height: 21px;
|
|
@@ -43,3 +43,15 @@ svg.icon--photo-sharpen {
|
|
|
43
43
|
height: 20px;
|
|
44
44
|
width: 21px;
|
|
45
45
|
}
|
|
46
|
+
svg.icon--photo-gallery-small {
|
|
47
|
+
height: 16px;
|
|
48
|
+
width: 16px;
|
|
49
|
+
}
|
|
50
|
+
svg.icon--photo-image {
|
|
51
|
+
height: 24px;
|
|
52
|
+
width: 24px;
|
|
53
|
+
}
|
|
54
|
+
svg.icon--photo-image-small {
|
|
55
|
+
height: 16px;
|
|
56
|
+
width: 16px;
|
|
57
|
+
}
|
|
@@ -39,10 +39,14 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// inherits from .icon-btn
|
|
42
|
-
|
|
42
|
+
// Might need to see if icon-btn can support a small version
|
|
43
|
+
button.icon-btn.lightbox-dialog__close {
|
|
43
44
|
align-self: center;
|
|
44
45
|
border: 0;
|
|
46
|
+
height: 32px;
|
|
47
|
+
min-width: 32px;
|
|
45
48
|
position: relative;
|
|
49
|
+
width: 32px;
|
|
46
50
|
z-index: 1;
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -117,17 +121,7 @@ button.lightbox-dialog__close {
|
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
@media (min-width: 601px) {
|
|
120
|
-
.lightbox-dialog__window {
|
|
121
|
-
.
|
|
122
|
-
.dialog-header-content-large();
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.lightbox-dialog__main {
|
|
126
|
-
.dialog-body-content-large();
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.lightbox-dialog__footer {
|
|
130
|
-
.dialog-footer-content-large();
|
|
131
|
-
}
|
|
124
|
+
.lightbox-dialog__window .lightbox-dialog__footer {
|
|
125
|
+
.dialog-footer-content-large();
|
|
132
126
|
}
|
|
133
127
|
}
|
|
@@ -6,8 +6,8 @@ export const base = () => `
|
|
|
6
6
|
<div class="lightbox-dialog__header">
|
|
7
7
|
<h2 id="lightbox-dialog-title">Dialog Lightbox</h2>
|
|
8
8
|
<button class="icon-btn lightbox-dialog__close" type="button" aria-label="Close Dialog">
|
|
9
|
-
<svg class="icon icon--close" aria-hidden="true">
|
|
10
|
-
<use xlink:href="#icon-close"></use>
|
|
9
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
10
|
+
<use xlink:href="#icon-close-small"></use>
|
|
11
11
|
</svg>
|
|
12
12
|
</button>
|
|
13
13
|
</div>
|
|
@@ -23,13 +23,41 @@ export const base = () => `
|
|
|
23
23
|
</div>
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
+
export const baseWithFooter = () => `
|
|
27
|
+
<div aria-labelledby="lightbox-dialog-title" aria-modal="true" class="lightbox-dialog" role="dialog">
|
|
28
|
+
<div class="lightbox-dialog__window">
|
|
29
|
+
<div class="lightbox-dialog__header">
|
|
30
|
+
<h2 id="lightbox-dialog-title">Dialog Lightbox</h2>
|
|
31
|
+
<button class="icon-btn lightbox-dialog__close" type="button" aria-label="Close Dialog">
|
|
32
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
33
|
+
<use xlink:href="#icon-close-small"></use>
|
|
34
|
+
</svg>
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="lightbox-dialog__main">
|
|
38
|
+
<h3>Heading</h3>
|
|
39
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus convallis molestie erat, ut adipiscing risus blandit vel. Vivamus luctus elementum lorem, eu sodales velit sagittis id.</p>
|
|
40
|
+
<p><a href="http://www.ebay.com">www.ebay.com</a></p>
|
|
41
|
+
<h3>Heading</h3>
|
|
42
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus convallis molestie erat, ut adipiscing risus blandit vel. Vivamus luctus elementum lorem, eu sodales velit sagittis id.</p>
|
|
43
|
+
<p><a href="http://www.ebay.com">www.ebay.com</a></p>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="lightbox-dialog__footer">
|
|
46
|
+
<button class="btn btn--primary">Submit</button>
|
|
47
|
+
<button class="btn">Cancel</button>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
`;
|
|
53
|
+
|
|
26
54
|
export const mini = () => `
|
|
27
55
|
<div aria-label="mini Example" aria-modal="true" class="lightbox-dialog lightbox-dialog--mask-fade" role="dialog">
|
|
28
56
|
<div class="lightbox-dialog__window lightbox-dialog__window--fade lightbox-dialog__window--mini">
|
|
29
57
|
<div class="lightbox-dialog__header">
|
|
30
58
|
<button aria-label="Close dialog" class="icon-btn lightbox-dialog__close" type="button">
|
|
31
|
-
<svg aria-hidden="true" class="icon icon--close" focusable="false" height="16" width="16">
|
|
32
|
-
<use xlink:href="#icon-close"></use>
|
|
59
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="16" width="16">
|
|
60
|
+
<use xlink:href="#icon-close-small"></use>
|
|
33
61
|
</svg>
|
|
34
62
|
</button>
|
|
35
63
|
</div>
|
|
@@ -45,8 +73,8 @@ export const miniMinHeight = () => `
|
|
|
45
73
|
<div class="lightbox-dialog__window lightbox-dialog__window--fade lightbox-dialog__window--mini">
|
|
46
74
|
<div class="lightbox-dialog__header">
|
|
47
75
|
<button aria-label="Close dialog" class="icon-btn lightbox-dialog__close" type="button">
|
|
48
|
-
<svg aria-hidden="true" class="icon icon--close" focusable="false" height="16" width="16">
|
|
49
|
-
<use xlink:href="#icon-close"></use>
|
|
76
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="16" width="16">
|
|
77
|
+
<use xlink:href="#icon-close-small"></use>
|
|
50
78
|
</svg>
|
|
51
79
|
</button>
|
|
52
80
|
</div>
|
|
@@ -64,8 +92,8 @@ export const baseRTL = () => `
|
|
|
64
92
|
<div class="lightbox-dialog__header">
|
|
65
93
|
<h2 id="lightbox-dialog-title">Dialog Lightbox</h2>
|
|
66
94
|
<button class="icon-btn lightbox-dialog__close" type="button" aria-label="Close Dialog">
|
|
67
|
-
<svg class="icon icon--close" aria-hidden="true">
|
|
68
|
-
<use xlink:href="#icon-close"></use>
|
|
95
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
96
|
+
<use xlink:href="#icon-close-small"></use>
|
|
69
97
|
</svg>
|
|
70
98
|
</button>
|
|
71
99
|
</div>
|
|
@@ -88,8 +116,8 @@ export const miniRTL = () => `
|
|
|
88
116
|
<div class="lightbox-dialog__window lightbox-dialog__window--fade lightbox-dialog__window--mini">
|
|
89
117
|
<div class="lightbox-dialog__header">
|
|
90
118
|
<button aria-label="Close dialog" class="icon-btn lightbox-dialog__close" type="button">
|
|
91
|
-
<svg aria-hidden="true" class="icon icon--close" focusable="false" height="16" width="16">
|
|
92
|
-
<use xlink:href="#icon-close"></use>
|
|
119
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="16" width="16">
|
|
120
|
+
<use xlink:href="#icon-close-small"></use>
|
|
93
121
|
</svg>
|
|
94
122
|
</button>
|
|
95
123
|
</div>
|
package/src/less/link/link.less
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import "../public/utility-mixins.less";
|
|
2
2
|
|
|
3
|
+
// Deprecated, remove the gutter sizes next major
|
|
3
4
|
@dialog-small-gutter-size: 16px;
|
|
4
5
|
@dialog-large-gutter-size: 24px;
|
|
5
6
|
@dialog-scrim-color-hide: rgba(17, 24, 32, 0);
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
display: flex;
|
|
53
54
|
// Fix for Safari not honoring min-height
|
|
54
55
|
flex-shrink: 0;
|
|
55
|
-
margin: @
|
|
56
|
+
margin: @spacing-200 @spacing-200 0;
|
|
56
57
|
position: relative;
|
|
57
58
|
|
|
58
59
|
h1,
|
|
@@ -63,18 +64,18 @@
|
|
|
63
64
|
h6 {
|
|
64
65
|
align-self: center;
|
|
65
66
|
flex: 1 1 auto;
|
|
66
|
-
margin: 0
|
|
67
|
+
margin: 0;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
& > :last-child:not(:only-child) {
|
|
70
|
-
margin-left:
|
|
71
|
+
margin-left: @spacing-200;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.dialog-body-content() {
|
|
75
76
|
box-sizing: border-box;
|
|
76
77
|
flex: 1 1 auto;
|
|
77
|
-
margin: @
|
|
78
|
+
margin: @spacing-200;
|
|
78
79
|
position: relative;
|
|
79
80
|
|
|
80
81
|
& > :first-child {
|
|
@@ -90,29 +91,31 @@
|
|
|
90
91
|
display: flex;
|
|
91
92
|
flex-direction: column;
|
|
92
93
|
justify-content: center;
|
|
93
|
-
padding:
|
|
94
|
+
padding: @spacing-200;
|
|
94
95
|
position: relative;
|
|
95
96
|
|
|
96
97
|
& > :not(:first-child) {
|
|
97
|
-
margin-top:
|
|
98
|
+
margin-top: @spacing-200;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
102
|
+
// Unused, small and large are the same now
|
|
101
103
|
.dialog-header-content-large() {
|
|
102
|
-
margin:
|
|
104
|
+
margin: @spacing-200 @spacing-200 0;
|
|
103
105
|
}
|
|
104
106
|
|
|
107
|
+
// Unused, small and large are the same now
|
|
105
108
|
.dialog-body-content-large() {
|
|
106
|
-
margin:
|
|
109
|
+
margin: @spacing-200;
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
.dialog-footer-content-large() {
|
|
110
113
|
flex-direction: row;
|
|
111
114
|
justify-content: flex-end;
|
|
112
|
-
padding: @
|
|
115
|
+
padding: 0 @spacing-200 @spacing-200;
|
|
113
116
|
|
|
114
117
|
& > :not(:first-child) {
|
|
115
|
-
margin-left: @
|
|
118
|
+
margin-left: @spacing-100;
|
|
116
119
|
margin-top: initial;
|
|
117
120
|
}
|
|
118
121
|
}
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
div[role="region"].page-notice,
|
|
16
16
|
section.page-notice {
|
|
17
|
-
display:
|
|
17
|
+
display: grid;
|
|
18
|
+
// provide explicit structure up front, create loose markup model
|
|
19
|
+
grid-template-columns: 40px auto auto auto;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
span[role="region"].page-notice {
|
|
21
|
-
display:
|
|
23
|
+
display: grid;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.page-notice__title {
|
|
@@ -38,6 +40,15 @@ span[role="region"].page-notice {
|
|
|
38
40
|
font-weight: bold;
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
// force links with text having more than one word to remain on same line
|
|
44
|
+
.page-notice__cta a {
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.page-notice__dismiss {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
41
52
|
.page-notice a:hover {
|
|
42
53
|
.color-token(page-notice-color, color-foreground-on-inverse);
|
|
43
54
|
}
|
|
@@ -84,24 +95,20 @@ span[role="region"].page-notice {
|
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
.page-notice__header {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
justify-content: center;
|
|
98
|
+
grid-column: 1;
|
|
99
|
+
grid-row: 1;
|
|
90
100
|
padding-right: @spacing-200;
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
.page-notice__main
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
justify-content: center;
|
|
103
|
+
.page-notice__main {
|
|
104
|
+
grid-column: 2;
|
|
105
|
+
grid-row: 1;
|
|
106
|
+
padding-right: @spacing-200;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
.page-notice__footer {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
padding-left: @spacing-200;
|
|
104
|
-
width: auto;
|
|
110
|
+
grid-column: 4;
|
|
111
|
+
grid-row: 1;
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
/* support legacy 6.5 notice with heading + paragaphs */
|
|
@@ -110,6 +117,14 @@ span[role="region"].page-notice {
|
|
|
110
117
|
margin: @spacing-50 0 0;
|
|
111
118
|
}
|
|
112
119
|
|
|
120
|
+
p.page-notice__cta {
|
|
121
|
+
grid-column: 2;
|
|
122
|
+
grid-row: 2;
|
|
123
|
+
justify-self: start;
|
|
124
|
+
margin-right: @spacing-200;
|
|
125
|
+
margin-top: @spacing-200;
|
|
126
|
+
}
|
|
127
|
+
|
|
113
128
|
@media (min-width: 601px) {
|
|
114
129
|
section.page-notice,
|
|
115
130
|
div[role="region"].page-notice {
|
|
@@ -117,7 +132,20 @@ span[role="region"].page-notice {
|
|
|
117
132
|
margin: @spacing-200 0;
|
|
118
133
|
}
|
|
119
134
|
|
|
135
|
+
.page-notice__title {
|
|
136
|
+
margin-top: 4px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
p.page-notice__cta {
|
|
140
|
+
grid-column: 4;
|
|
141
|
+
grid-row: 1;
|
|
142
|
+
justify-self: end;
|
|
143
|
+
margin-top: 0;
|
|
144
|
+
padding-right: @spacing-200;
|
|
145
|
+
}
|
|
146
|
+
|
|
120
147
|
.page-notice__footer {
|
|
148
|
+
justify-self: end;
|
|
121
149
|
margin-top: 0;
|
|
122
150
|
}
|
|
123
151
|
}
|
|
@@ -126,6 +126,49 @@ export const informationWithLink = () => `
|
|
|
126
126
|
</section>
|
|
127
127
|
`;
|
|
128
128
|
|
|
129
|
+
export const dismissableWithTitle = () => `
|
|
130
|
+
<section class="page-notice page-notice--information" role="region" aria-label="Information">
|
|
131
|
+
<div class="page-notice__header">
|
|
132
|
+
<svg class="icon icon--information-filled" focusable="false" height="24" width="24" role="img" aria-label="Information">
|
|
133
|
+
<use xlink:href="#icon-information-filled"></use>
|
|
134
|
+
</svg>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="page-notice__main">
|
|
137
|
+
<h3 class="page-notice__title">Notice Title</h3>
|
|
138
|
+
<p>Opt into eBay payments before Jan 12th to pay no selling fees.</p>
|
|
139
|
+
</div>
|
|
140
|
+
<p class="page-notice__cta"><a href="https://www.ebay.com">Opt in</a></p>
|
|
141
|
+
<div class="page-notice__footer">
|
|
142
|
+
<button aria-label="Dismiss notification" class="fake-link page-notice__dismiss">
|
|
143
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="10" width="10">
|
|
144
|
+
<use xlink:href="#icon-close"></use>
|
|
145
|
+
</svg>
|
|
146
|
+
</a>
|
|
147
|
+
</div>
|
|
148
|
+
</section>
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
export const dismissableWithoutTitle = () => `
|
|
152
|
+
<section class="page-notice page-notice--information" role="region" aria-label="Information">
|
|
153
|
+
<div class="page-notice__header">
|
|
154
|
+
<svg class="icon icon--information-filled" focusable="false" height="24" width="24" role="img" aria-label="Information">
|
|
155
|
+
<use xlink:href="#icon-information-filled"></use>
|
|
156
|
+
</svg>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="page-notice__main">
|
|
159
|
+
<h3 class="page-notice__title">Opt into eBay payments before Jan 12th to pay no selling fees.</h3>
|
|
160
|
+
</div>
|
|
161
|
+
<p class="page-notice__cta"><a href="https://www.ebay.com">Opt in</a></p>
|
|
162
|
+
<div class="page-notice__footer">
|
|
163
|
+
<button aria-label="Dismiss notification" class="fake-link page-notice__dismiss">
|
|
164
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="10" width="10">
|
|
165
|
+
<use xlink:href="#icon-close"></use>
|
|
166
|
+
</svg>
|
|
167
|
+
</a>
|
|
168
|
+
</div>
|
|
169
|
+
</section>
|
|
170
|
+
`;
|
|
171
|
+
|
|
129
172
|
export const formErrors = () => `
|
|
130
173
|
<section class="page-notice page-notice--attention" role="region" aria-label="Attention">
|
|
131
174
|
<div class="page-notice__header">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
border-right: 1px solid rgba(153, 153, 153, 0.18);
|
|
15
15
|
-webkit-overflow-scrolling: touch;
|
|
16
16
|
overflow-y: auto;
|
|
17
|
-
width:
|
|
17
|
+
width: 100%;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.panel-dialog__window--end {
|
|
@@ -35,18 +35,20 @@
|
|
|
35
35
|
.dialog-body-content();
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// deprecated & undocumented, but still used by teams
|
|
39
38
|
.panel-dialog__footer {
|
|
40
39
|
.dialog-footer-content();
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
// inherits from .icon-btn
|
|
44
|
-
|
|
43
|
+
// Might need to see to add a small icon btn
|
|
44
|
+
button.icon-btn.panel-dialog__close {
|
|
45
45
|
align-self: center;
|
|
46
46
|
border: 0;
|
|
47
|
-
|
|
47
|
+
height: 32px;
|
|
48
|
+
min-width: 32px;
|
|
48
49
|
padding: 0;
|
|
49
50
|
position: relative;
|
|
51
|
+
width: 32px;
|
|
50
52
|
z-index: 1;
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -56,6 +58,7 @@ button.panel-dialog__close {
|
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
// Deprecated
|
|
59
62
|
.panel-dialog__title--center {
|
|
60
63
|
text-align: center;
|
|
61
64
|
}
|
|
@@ -126,19 +129,6 @@ button.panel-dialog__close {
|
|
|
126
129
|
|
|
127
130
|
@media (min-width: 601px) {
|
|
128
131
|
.panel-dialog__window {
|
|
129
|
-
width:
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.panel-dialog__header {
|
|
133
|
-
.dialog-header-content-large();
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.panel-dialog__main {
|
|
137
|
-
.dialog-body-content-large();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// deprecated & undocumented, but still used by teams
|
|
141
|
-
.panel-dialog__footer {
|
|
142
|
-
.dialog-footer-content-large();
|
|
132
|
+
width: 384px;
|
|
143
133
|
}
|
|
144
134
|
}
|