wickes-css2 2.94.0-order-summary.18 → 2.94.0-preprod.2
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/Readme.md +3 -2
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/checkout.css +1 -1
- package/build/css/pages/my-account-v2.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_my-orders.css +1 -0
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pages/page_shopping-cart-v2.css +1 -1
- package/build/css/pages/tradePro-signup.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +53 -1
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/my-orders.min.js +1 -0
- package/build/js/page/basket/summary-mobile.js +6 -1
- package/build/js/page/components/order-summary.js +0 -1
- package/build/js/page/my-orders.js +165 -0
- package/build/js/page/quiz.js +20 -11
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/build/js/quiz.min.js +1 -1
- package/package.json +10 -2
- package/src/components/date-selection.hbs +1 -1
- package/src/components/flatpickr-calendar.hbs +26 -0
- package/src/components/my-account/active-orders/header.hbs +6 -2
- package/src/components/my-account/active-orders/list-orders.hbs +14 -2
- package/src/components/my-account/active-orders/order-header.hbs +1 -1
- package/src/components/my-account/active-orders/order.hbs +10 -6
- package/src/components/my-account/clipboard-code-card.hbs +1 -1
- package/src/components/my-account/empty-orders.hbs +9 -0
- package/src/components/my-account/mobile-nav.hbs +23 -19
- package/src/components/my-account/orders-nav.hbs +15 -0
- package/src/components/my-account/sort-by.hbs +3 -0
- package/src/components/my-account/user-account-actions.hbs +1 -1
- package/src/components/order-item.hbs +3 -3
- package/src/components/partner-signup-form.hbs +4 -0
- package/src/data/data_delivery-address-v2.json +1 -1
- package/src/data/data_shopping-cart-v2.json +24 -0
- package/src/data/my-account/data_my-orders.json +246 -0
- package/src/elements/dropdown.hbs +1 -1
- package/src/js/components/flatpickr.js +167 -0
- package/src/js/components/general/handleAccordion.js +35 -0
- package/src/js/components/general/is-trade-pro.js +15 -1
- package/src/js/emulation/basket-data.js +1 -1
- package/src/js/emulation/mock.js +10 -0
- package/src/js/emulation/my-orders-local.js +41 -0
- package/src/js/page/basket/summary-mobile.js +6 -1
- package/src/js/page/components/order-summary.js +0 -1
- package/src/js/page/my-orders.js +165 -0
- package/src/js/page/quiz.js +20 -11
- package/src/layouts/checkout-new.hbs +1 -0
- package/src/page_checkout_confirmation-new-marketing-consent-error.html +0 -2
- package/src/page_checkout_delivery-address-customer-journey.html +0 -5
- package/src/page_checkout_delivery-address-v2.html +0 -4
- package/src/page_checkout_delivery-details-v2-asm.html +1 -5
- package/src/page_checkout_delivery-details-v2-calendar-message.html +0 -3
- package/src/page_checkout_delivery-details-v2-oos.html +0 -3
- package/src/page_checkout_delivery-details-v2-wisdom-not-available.html +0 -5
- package/src/page_checkout_delivery-details-v2-wisdom.html +0 -5
- package/src/page_checkout_delivery-details-with-loader-v2.html +0 -3
- package/src/page_checkout_delivery-details_guest-new.html +0 -5
- package/src/page_checkout_delivery_address-asm-new.html +0 -4
- package/src/page_checkout_next-day-delivery-details.html +0 -6
- package/src/page_checkout_payment-details-v2.html +1 -1
- package/src/page_checkout_payment-details_guest-with-checkout-journey.html +0 -2
- package/src/page_checkout_payment-details_login-with-checkout-journey.html +0 -2
- package/src/page_checkout_rapid-delivery-details.html +0 -6
- package/src/page_klarna_payment-details_with-klarna.html +3 -6
- package/src/page_my-orders-empty.html +49 -0
- package/src/page_my-orders.html +64 -0
- package/src/page_payment-details-with-clearpay.html +1 -1
- package/src/page_payment-details_with_apple-pay.html +1 -1
- package/src/page_payment-details_with_google-pay.html +1 -1
- package/src/page_tradePro-signup.html +1 -1
- package/src/scss/components/_marketing-preferences.scss +1 -1
- package/src/scss/components/_order-summary.scss +93 -0
- package/src/scss/components/my-account/_active-orders.scss +263 -0
- package/src/scss/components/my-account/_orders-nav.scss +61 -0
- package/src/scss/helpers/_variables.scss +1 -0
- package/src/scss/libs/flatpickr.scss +235 -0
- package/src/scss/pages/_checkout-widget.scss +100 -4
- package/src/scss/pages/my-account-v2.scss +1 -136
- package/src/scss/pages/page_checkout_delivery-new.scss +12 -3
- package/src/scss/pages/page_my-orders.scss +232 -0
- package/src/scss/pages/page_products-list-combined.scss +0 -1
- package/src/scss/pages/page_products-list.scss +0 -1
- package/src/scss/pages/page_shopping-cart-v2.scss +45 -5
- package/src/scss/pages/tradePro-signup.scss +27 -0
- package/src/sitemap.html +2 -0
- package/src/scss/components/my-account/_order.scss +0 -112
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout-confirmation-new" title="Checkout - Payment details with Google Pay" isAsideSticky="true"}}
|
|
1
|
+
{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout-confirmation-new page_checkout" title="Checkout - Payment details with Google Pay" isAsideSticky="true"}}
|
|
2
2
|
{{#content "steps"}}
|
|
3
3
|
{{> steps-three-steps active-step-index="2"}}
|
|
4
4
|
{{/content}}
|
|
@@ -25,7 +25,7 @@ text="Sorry, your TradePro application has already been submitted with this info
|
|
|
25
25
|
{{> aside-nav2 trade-pages page-name="Wickes TradePro"}}
|
|
26
26
|
{{/content}}
|
|
27
27
|
{{#content "main"}}
|
|
28
|
-
{{> partner-signup-form }}
|
|
28
|
+
{{> partner-signup-form fill-remaining=true}}
|
|
29
29
|
<div class="component container divider-desk pl-0 pr-0">
|
|
30
30
|
<div class="row">
|
|
31
31
|
<div class="col-12">
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
@import '../helpers/helpers';
|
|
2
2
|
|
|
3
|
+
$android-offset: 60px !default;
|
|
4
|
+
$ios-notch-offset: 80px !default;
|
|
5
|
+
|
|
3
6
|
body.summary-hidden .back-to-top {
|
|
4
7
|
bottom: 20px !important;
|
|
5
8
|
right: 16px !important;
|
|
@@ -337,6 +340,12 @@ body.summary-hidden .back-to-top {
|
|
|
337
340
|
}
|
|
338
341
|
}
|
|
339
342
|
|
|
343
|
+
@include media-breakpoint-up(md) {
|
|
344
|
+
body:has(.summary__aside.collapse.show) .back-to-top {
|
|
345
|
+
display: none !important;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
340
349
|
@include media-breakpoint-up(lg) {
|
|
341
350
|
.summary {
|
|
342
351
|
&__aside {
|
|
@@ -436,3 +445,87 @@ body.summary-hidden .back-to-top {
|
|
|
436
445
|
}
|
|
437
446
|
}
|
|
438
447
|
}
|
|
448
|
+
|
|
449
|
+
@include media-breakpoint-down(md) {
|
|
450
|
+
.tp-app {
|
|
451
|
+
&.tp-android,
|
|
452
|
+
&.tp-ios:not(.tp-ios-notch) {
|
|
453
|
+
.summary--mobile {
|
|
454
|
+
.summary__mobile-bar,
|
|
455
|
+
.summary__aside {
|
|
456
|
+
bottom: $android-offset !important;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.summary__aside.collapse.show {
|
|
461
|
+
bottom: 177px + $android-offset !important;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.summary__aside.collapsing {
|
|
465
|
+
bottom: 177px + $android-offset !important;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.summary__aside.collapse.show.single-button,
|
|
469
|
+
.summary__aside.collapsing.single-button {
|
|
470
|
+
bottom: 125px + $android-offset !important;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
&.tp-ios-notch {
|
|
475
|
+
.summary--mobile {
|
|
476
|
+
.summary__mobile-bar,
|
|
477
|
+
.summary__aside {
|
|
478
|
+
bottom: $ios-notch-offset !important;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.summary__aside.collapse.show {
|
|
483
|
+
bottom: 177px + $ios-notch-offset !important;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.summary__aside.collapsing {
|
|
487
|
+
bottom: 177px + $ios-notch-offset !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.summary__aside.collapse.show.single-button,
|
|
491
|
+
.summary__aside.collapsing.single-button {
|
|
492
|
+
bottom: 125px + $ios-notch-offset !important;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@include media-breakpoint-up(sm) {
|
|
499
|
+
.tp-app {
|
|
500
|
+
&.tp-android,
|
|
501
|
+
&.tp-ios:not(.tp-ios-notch) {
|
|
502
|
+
.summary__aside.collapse.show {
|
|
503
|
+
bottom: 182px + $android-offset !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.summary__aside.collapsing {
|
|
507
|
+
bottom: 182px + $android-offset !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.summary__aside.collapse.show.single-button,
|
|
511
|
+
.summary__aside.collapsing.single-button {
|
|
512
|
+
bottom: 130px + $android-offset !important;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
&.tp-ios-notch {
|
|
517
|
+
.summary__aside.collapse.show {
|
|
518
|
+
bottom: 182px + $ios-notch-offset !important;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.summary__aside.collapsing {
|
|
522
|
+
bottom: 182px + $ios-notch-offset !important;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.summary__aside.collapse.show.single-button,
|
|
526
|
+
.summary__aside.collapsing.single-button {
|
|
527
|
+
bottom: 130px + $ios-notch-offset !important;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
@import '../../helpers/helpers';
|
|
2
|
+
|
|
3
|
+
.active-orders {
|
|
4
|
+
margin-top: 24px;
|
|
5
|
+
|
|
6
|
+
&__title {
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
font-size: 1.25rem;
|
|
9
|
+
line-height: 1rem;
|
|
10
|
+
color: $blue-dark;
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__item {
|
|
15
|
+
margin-top: 16px;
|
|
16
|
+
padding: 16px;
|
|
17
|
+
background: $white;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.view-more {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
padding-top: 12px;
|
|
26
|
+
border-top: 1px solid $gray;
|
|
27
|
+
|
|
28
|
+
.link {
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
font-size: .875rem;
|
|
31
|
+
line-height: 1.375rem;
|
|
32
|
+
text-align: center;
|
|
33
|
+
color: $blue;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
|
|
39
|
+
span:hover {
|
|
40
|
+
text-decoration: underline;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.icon {
|
|
44
|
+
margin-left: 8px;
|
|
45
|
+
font-size: 1rem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.btn--all-orders {
|
|
51
|
+
margin-top: 16px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tooltip {
|
|
55
|
+
filter: drop-shadow(0 0 8px rgba(0, 0, 0, .12));
|
|
56
|
+
position: absolute;
|
|
57
|
+
|
|
58
|
+
.tooltip-inner {
|
|
59
|
+
background: $white;
|
|
60
|
+
color: $gray-dark;
|
|
61
|
+
padding: 8px 16px !important;
|
|
62
|
+
border-radius: 4px;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-size: .75rem;
|
|
65
|
+
line-height: 1rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.arrow:before {
|
|
69
|
+
border-top-color: $white;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.order {
|
|
75
|
+
&-header {
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
align-items: center;
|
|
79
|
+
padding: 0;
|
|
80
|
+
|
|
81
|
+
&__title {
|
|
82
|
+
margin-bottom: 0;
|
|
83
|
+
font-size: 1.125rem;
|
|
84
|
+
line-height: 1.5rem;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-status {
|
|
89
|
+
background: rgba(2, 119, 189, .1);
|
|
90
|
+
padding: 2px 8px;
|
|
91
|
+
border-radius: 50px;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
|
|
96
|
+
.icon {
|
|
97
|
+
font-size: 1rem;
|
|
98
|
+
height: auto;
|
|
99
|
+
color: $blue;
|
|
100
|
+
margin-right: 8px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.completed {
|
|
104
|
+
background: rgba(103, 165, 9, .1);
|
|
105
|
+
|
|
106
|
+
.icon {
|
|
107
|
+
color: $green;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.cancelled {
|
|
112
|
+
background: rgba(207, 0, 15, .1);
|
|
113
|
+
|
|
114
|
+
.icon {
|
|
115
|
+
color: $red;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-details {
|
|
121
|
+
margin-top: 8px;
|
|
122
|
+
|
|
123
|
+
&__summary {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: baseline;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__price {
|
|
129
|
+
margin-bottom: 0;
|
|
130
|
+
font-weight: 700;
|
|
131
|
+
font-size: 1.125rem;
|
|
132
|
+
line-height: 1.5rem;
|
|
133
|
+
color: $blue-dark;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__vat {
|
|
137
|
+
margin-left: 5px;
|
|
138
|
+
line-height: 1rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&__count {
|
|
142
|
+
position: relative;
|
|
143
|
+
padding-left: 8px;
|
|
144
|
+
margin-left: 8px;
|
|
145
|
+
font-weight: 400;
|
|
146
|
+
font-size: .875rem;
|
|
147
|
+
line-height: 1.375rem;
|
|
148
|
+
color: $gray-dark;
|
|
149
|
+
|
|
150
|
+
&::before {
|
|
151
|
+
content: '';
|
|
152
|
+
height: 100%;
|
|
153
|
+
position: absolute;
|
|
154
|
+
max-height: 16px;
|
|
155
|
+
left: 0;
|
|
156
|
+
top: 50%;
|
|
157
|
+
width: 1px;
|
|
158
|
+
background: $gray;
|
|
159
|
+
transform: translateY(-50%);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&__date {
|
|
164
|
+
display: block;
|
|
165
|
+
margin-top: 4px;
|
|
166
|
+
font-weight: 400;
|
|
167
|
+
font-size: .875rem;
|
|
168
|
+
line-height: 1.375rem;
|
|
169
|
+
color: $gray-dark;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@include media-breakpoint-up(sm) {
|
|
175
|
+
.active-orders {
|
|
176
|
+
&__header {
|
|
177
|
+
display: flex;
|
|
178
|
+
justify-content: space-between;
|
|
179
|
+
align-items: center;
|
|
180
|
+
|
|
181
|
+
.btn--all-orders {
|
|
182
|
+
margin-top: 0;
|
|
183
|
+
max-width: 125px;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&__item {
|
|
188
|
+
display: grid;
|
|
189
|
+
grid-template-areas:
|
|
190
|
+
'header viewMore'
|
|
191
|
+
'orderDetails orderDetails'
|
|
192
|
+
'consignmentInfo consignmentInfo'
|
|
193
|
+
'shipment shipment';
|
|
194
|
+
|
|
195
|
+
.order-header {
|
|
196
|
+
flex-direction: row-reverse;
|
|
197
|
+
justify-content: flex-end;
|
|
198
|
+
grid-area: header;
|
|
199
|
+
|
|
200
|
+
&__title {
|
|
201
|
+
margin-left: 16px;
|
|
202
|
+
font-weight: 700;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.view-more {
|
|
207
|
+
grid-area: viewMore;
|
|
208
|
+
justify-content: flex-end;
|
|
209
|
+
border-top: 0;
|
|
210
|
+
padding: 0;
|
|
211
|
+
|
|
212
|
+
.link .icon {
|
|
213
|
+
margin-left: 13px;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.order-details {
|
|
220
|
+
grid-area: orderDetails;
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: baseline;
|
|
223
|
+
|
|
224
|
+
&__date {
|
|
225
|
+
margin-left: 8px;
|
|
226
|
+
padding-left: 8px;
|
|
227
|
+
margin-top: 0;
|
|
228
|
+
position: relative;
|
|
229
|
+
|
|
230
|
+
&::before {
|
|
231
|
+
content: '';
|
|
232
|
+
height: 100%;
|
|
233
|
+
position: absolute;
|
|
234
|
+
max-height: 16px;
|
|
235
|
+
left: 0;
|
|
236
|
+
top: 50%;
|
|
237
|
+
width: 1px;
|
|
238
|
+
background: $gray;
|
|
239
|
+
transform: translateY(-50%);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@include media-breakpoint-up(md) {
|
|
246
|
+
.active-orders__title {
|
|
247
|
+
font-size: 1.5rem;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@include media-breakpoint-up(lg) {
|
|
252
|
+
.active-orders {
|
|
253
|
+
&__item {
|
|
254
|
+
padding: 24px;
|
|
255
|
+
grid-template-areas:
|
|
256
|
+
'header consignmentInfo viewMore'
|
|
257
|
+
'orderDetails orderDetails orderDetails'
|
|
258
|
+
'shipment shipment shipment';
|
|
259
|
+
grid-template-columns: auto auto 1fr;
|
|
260
|
+
align-items: center;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.nav-orders {
|
|
2
|
+
margin-top: 24px;
|
|
3
|
+
|
|
4
|
+
.account-nav {
|
|
5
|
+
padding: 0;
|
|
6
|
+
|
|
7
|
+
.accordion__header-text {
|
|
8
|
+
color: $blue;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.accordion__header-text,
|
|
12
|
+
.account-nav__link {
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
line-height: 22px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__wrap {
|
|
20
|
+
list-style-type: none;
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
border-bottom: 2px solid $gray;
|
|
26
|
+
|
|
27
|
+
.link {
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
line-height: 22px;
|
|
32
|
+
color: $gray-dark;
|
|
33
|
+
transition: all .3s;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
color: $blue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__item {
|
|
42
|
+
padding: 7px 12px;
|
|
43
|
+
position: relative;
|
|
44
|
+
|
|
45
|
+
&.active {
|
|
46
|
+
.link {
|
|
47
|
+
color: $blue;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&::after {
|
|
52
|
+
content: '';
|
|
53
|
+
border-bottom: 2px solid $blue;
|
|
54
|
+
position: absolute;
|
|
55
|
+
bottom: -2px;
|
|
56
|
+
left: 0;
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
@import '../helpers/helpers';
|
|
2
|
+
|
|
3
|
+
.flatpickr-datepicker {
|
|
4
|
+
margin-top: 16px;
|
|
5
|
+
|
|
6
|
+
&__label {
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
line-height: 1.5rem;
|
|
10
|
+
margin-bottom: 8px;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
.icon-info {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.tooltip {
|
|
20
|
+
filter: drop-shadow(0 0 8px rgba(0, 0, 0, .12));
|
|
21
|
+
position: absolute;
|
|
22
|
+
|
|
23
|
+
.tooltip-inner {
|
|
24
|
+
background: $white;
|
|
25
|
+
color: $gray-dark;
|
|
26
|
+
padding: 8px 16px !important;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
font-size: .75rem;
|
|
30
|
+
line-height: 1rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.arrow:before {
|
|
34
|
+
border-top-color: $white;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__field {
|
|
40
|
+
border-radius: 3px;
|
|
41
|
+
border: 1px solid $gray;
|
|
42
|
+
padding: 7px 8px 7px 16px;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
max-width: 100%;
|
|
46
|
+
position: relative;
|
|
47
|
+
transition: all .3s;
|
|
48
|
+
|
|
49
|
+
&.active,
|
|
50
|
+
&:hover {
|
|
51
|
+
border-color: $blue;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.icon-wrap {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
width: 24px;
|
|
58
|
+
height: 24px;
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
|
|
63
|
+
&--cross {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& + .icon-wrap {
|
|
69
|
+
margin-left: 8px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.icon-calendar {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
color: $blue;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.flatpickr {
|
|
79
|
+
&-input {
|
|
80
|
+
padding: 0;
|
|
81
|
+
border: none;
|
|
82
|
+
font-size: 1rem;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
line-height: 1.5rem;
|
|
85
|
+
outline: none;
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-calendar {
|
|
90
|
+
&:before,
|
|
91
|
+
&:after {
|
|
92
|
+
content: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.static {
|
|
96
|
+
left: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
|
|
99
|
+
&.open {
|
|
100
|
+
margin-top: 4px;
|
|
101
|
+
padding: 16px;
|
|
102
|
+
border-radius: 3px;
|
|
103
|
+
box-shadow: 0 0 15px 0 rgba(0, 0, 0, .20);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-monthSelect-months {
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
111
|
+
margin: 12px 0 0;
|
|
112
|
+
grid-gap: 8px;
|
|
113
|
+
justify-items: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-monthSelect-month {
|
|
118
|
+
margin: 0;
|
|
119
|
+
width: 100%;
|
|
120
|
+
font-size: .875rem;
|
|
121
|
+
font-style: normal;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
line-height: 1.375rem;
|
|
124
|
+
padding: 4px;
|
|
125
|
+
border-radius: 999px;
|
|
126
|
+
max-width: 78px;
|
|
127
|
+
color: $gray-dark;
|
|
128
|
+
|
|
129
|
+
&.selected {
|
|
130
|
+
background: $blue;
|
|
131
|
+
border-color: $blue;
|
|
132
|
+
color: $white;
|
|
133
|
+
|
|
134
|
+
&:hover {
|
|
135
|
+
border-color: $blue;
|
|
136
|
+
background: $blue;
|
|
137
|
+
color: $gray-dark;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:not(.flatpickr-disabled):hover {
|
|
142
|
+
border-color: $blue;
|
|
143
|
+
background: transparent;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.flatpickr-disabled {
|
|
147
|
+
color: $gray-wait;
|
|
148
|
+
pointer-events: none;
|
|
149
|
+
|
|
150
|
+
&:hover {
|
|
151
|
+
border: none;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.today {
|
|
156
|
+
border-color: transparent;
|
|
157
|
+
|
|
158
|
+
&:hover {
|
|
159
|
+
border-color: $blue;
|
|
160
|
+
background: transparent;
|
|
161
|
+
color: initial;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&-current-month {
|
|
167
|
+
padding-top: 0;
|
|
168
|
+
height: auto;
|
|
169
|
+
|
|
170
|
+
input.cur-year {
|
|
171
|
+
padding-left: 0;
|
|
172
|
+
font-size: 0.875rem;
|
|
173
|
+
font-weight: 500;
|
|
174
|
+
line-height: 1.375rem;
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&-prev-month.flatpickr-disabled,
|
|
180
|
+
&-next-month.flatpickr-disabled {
|
|
181
|
+
display: block;
|
|
182
|
+
opacity: .6;
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&-months {
|
|
187
|
+
.flatpickr-prev-month,
|
|
188
|
+
.flatpickr-next-month {
|
|
189
|
+
position: relative;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
height: auto;
|
|
193
|
+
padding: 0;
|
|
194
|
+
|
|
195
|
+
svg path {
|
|
196
|
+
fill: $blue;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.flatpickr-month {
|
|
201
|
+
height: 100%;
|
|
202
|
+
|
|
203
|
+
.flatpickr-current-month {
|
|
204
|
+
width: 100%;
|
|
205
|
+
left: auto;
|
|
206
|
+
position: relative;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&-current-month {
|
|
212
|
+
.numInputWrapper {
|
|
213
|
+
&:hover {
|
|
214
|
+
background: transparent;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.arrowUp,
|
|
218
|
+
.arrowDown {
|
|
219
|
+
content: none;
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&-wrapper {
|
|
226
|
+
flex: 1;
|
|
227
|
+
position: initial;
|
|
228
|
+
width: 100%;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&-rContainer {
|
|
232
|
+
width: 100%;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|