-
Notifications
You must be signed in to change notification settings - Fork 395
/
Copy path_index.scss
36 lines (31 loc) · 1.15 KB
/
_index.scss
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
@import '@spartacus/styles/scss/core';
@import '@spartacus/checkout';
@import './base/styles/index';
@import './checkout/styles/index';
@import './cta/styles/index';
@import './payment/styles/index';
@import './quick-buy/styles/index';
$opf-components-allowlist: cx-opf-payment-method-details,
cx-opf-checkout-payment-and-review, cx-opf-checkout-payments,
cx-opf-checkout-billing-address-form, cx-opf-checkout-payment-wrapper,
cx-opf-checkout-review-card, cx-opf-checkout-terms-and-conditions-alert,
cx-opf-error-modal, cx-opf-cta-element, cx-opf-google-pay, cx-opf-apple-pay,
cx-opf-quick-buy-buttons, cx-opf-b2b-checkout-payment-type,
cx-opf-b2b-checkout-review !default;
$skipComponentStyles: () !default;
@each $selector in $opf-components-allowlist {
#{$selector} {
// skip selectors if they're added to the $skipComponentStyles list
@if (index($skipComponentStyles, $selector) == null) {
@extend %#{$selector} !optional;
}
}
}
// add body specific selectors
body {
@each $selector in $opf-components-allowlist {
@if (index($skipComponentStyles, $selector) == null) {
@extend %#{$selector}__body !optional;
}
}
}