wickes-css2 2.116.0 → 2.117.0-develop.1

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.
Files changed (32) hide show
  1. package/build/css/pages/checkout-new.css +1 -1
  2. package/build/css/pages/checkout.css +1 -1
  3. package/build/css/pages/tradePro-signup.css +1 -1
  4. package/build/css/pdp-main-non-critical.css +1 -1
  5. package/build/img/file-pdf-solid-full.svg +3 -0
  6. package/build/img/lorem_ipsum.pdf +150 -0
  7. package/build/js/emulation.min.js +151 -11
  8. package/build/js/pdf-preview.min.js +1 -0
  9. package/package.json +1 -1
  10. package/src/components/modal-capture.hbs +1 -1
  11. package/src/components/modal-id-type.hbs +271 -0
  12. package/src/components/modal-pdf-preview.hbs +70 -0
  13. package/src/components/partner-signup-form.hbs +1 -231
  14. package/src/img/file-pdf-solid-full.svg +3 -0
  15. package/src/img/lorem_ipsum.pdf +150 -0
  16. package/src/js/emulation/tradepro-id-pdf.js +182 -0
  17. package/src/js/libs/pdf-preview.js +1177 -0
  18. package/src/page_checkout_confirmation-billie.html +5 -231
  19. package/src/page_checkout_confirmation-clearpay.html +5 -231
  20. package/src/page_checkout_confirmation-new-apple.html +5 -231
  21. package/src/page_checkout_confirmation-new-google.html +5 -231
  22. package/src/page_checkout_confirmation-new-klarna.html +5 -231
  23. package/src/page_checkout_confirmation-new-paypal.html +5 -231
  24. package/src/page_pdf-preview-example.html +955 -0
  25. package/src/page_tradePro-checkout-summary-klarna.html +4 -231
  26. package/src/page_tradePro-checkout-summary.html +4 -231
  27. package/src/page_tradePro-signup.html +5 -0
  28. package/src/scss/components/_id-type-modal.scss +39 -0
  29. package/src/scss/components/_pdf-preview-modal.scss +122 -0
  30. package/src/scss/pages/_checkout-tradepro.scss +1 -0
  31. package/src/scss/pages/tradePro-signup.scss +1 -0
  32. package/src/sitemap.html +1 -0
@@ -0,0 +1,122 @@
1
+ .pdf-preview {
2
+ &__heading {
3
+ font-size: 1rem;
4
+ padding: 10px 0;
5
+
6
+ .pdf-preview__icon {
7
+ font-size: 1.25rem;
8
+ color: $blue;
9
+ margin-right: 10px;
10
+ }
11
+ }
12
+
13
+ &__controls {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ padding: 8px 0;
18
+ border-top: 1px solid $gray-light;
19
+
20
+ .btn {
21
+ margin: 0 4px;
22
+
23
+ // The global button-secondary mixin styles :focus like :hover, so a tapped
24
+ // button stays filled. Keep the filled look for keyboard focus only.
25
+ &:focus:not(:focus-visible) {
26
+ color: $blue;
27
+ background-color: $white;
28
+ border-color: $blue;
29
+ box-shadow: none;
30
+ }
31
+
32
+ // Touch screens keep :hover on the last tapped element; drop it where
33
+ // there is no real hover. :active still gives feedback while pressed.
34
+ @media (hover: none) {
35
+ &:hover {
36
+ color: $blue;
37
+ background-color: $white;
38
+ border-color: $blue;
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ &__pages {
45
+ display: inline-flex;
46
+ align-items: center;
47
+ margin: 0 8px;
48
+ font-size: 0.875rem;
49
+ }
50
+
51
+ &__page-input {
52
+ width: 50px;
53
+ margin-right: 4px;
54
+ padding: 2px 4px;
55
+ border: 1px solid $gray;
56
+ border-radius: 3px;
57
+ text-align: center;
58
+ }
59
+
60
+ // Scrolling, page stacking and the spacing around the pages come from the
61
+ // PdfPreview library; only the decoration is set here. The background makes
62
+ // the gutter visible, so it reads as the edge of the preview.
63
+ &__viewer {
64
+ height: 50vh;
65
+ background: $gray-light;
66
+ }
67
+
68
+ &__info {
69
+ margin-top: 1rem;
70
+ text-align: center;
71
+ }
72
+
73
+ &__actions {
74
+ padding: 0 30px;
75
+
76
+ .btn {
77
+ width: 100%;
78
+
79
+ &:last-of-type {
80
+ margin-top: 1rem;
81
+ }
82
+ }
83
+ }
84
+
85
+ &__page {
86
+ background: $white;
87
+ box-shadow: 0 2px 8px $black-transparent20;
88
+ }
89
+
90
+ // sass-lint:disable no-important
91
+ .modal-header {
92
+ .modal-title {
93
+ margin-bottom: 0 !important;
94
+ }
95
+ }
96
+ }
97
+
98
+ .id-pdf-preview {
99
+ padding-bottom: 10px;
100
+ }
101
+
102
+ // Only the preview area breaks out of the modal's content column; the heading
103
+ // and the navigation above it keep the default width. Row margin and column
104
+ // gutter are both zeroed so the preview sits flush with the popup edges. The
105
+ // border sits here rather than on the controls so it spans the whole popup.
106
+ .id-pdf-preview-pages {
107
+ border: 1px solid $gray-light;
108
+
109
+ .modal-box__inner-row {
110
+ margin: 0;
111
+ }
112
+
113
+ .modal-box__inner-columns {
114
+ @include make-col(12);
115
+
116
+ padding: 0;
117
+ }
118
+ }
119
+
120
+ .id-pdf-preview-actions {
121
+ padding-bottom: 30px;
122
+ }
@@ -1,6 +1,7 @@
1
1
  @import '../helpers/helpers';
2
2
  @import '../components/id-type-modal';
3
3
  @import '../components/capture-modal';
4
+ @import '../components/pdf-preview-modal';
4
5
 
5
6
  .page_checkout-tradePro,
6
7
  .page_checkout-confirmation-new {
@@ -1,6 +1,7 @@
1
1
  @import '../helpers/helpers';
2
2
  @import '../components/id-type-modal';
3
3
  @import '../components/capture-modal';
4
+ @import '../components/pdf-preview-modal';
4
5
 
5
6
  .page_signup-tradepro {
6
7
  .page-header {
package/src/sitemap.html CHANGED
@@ -1331,6 +1331,7 @@
1331
1331
  <li><a href="badges.html" target="_blank">Badges</a></li>
1332
1332
  <li><a href="badges-ripple.html" target="_blank">Badges static</a></li>
1333
1333
  <li><a href="loader-page.html" target="_blank">Loader</a></li>
1334
+ <li><a href="page_pdf-preview-example.html" target="_blank">PDF Preview</a></li>
1334
1335
  </ul>
1335
1336
  </div>
1336
1337
  </div>