Skip to content

Commit fb972a9

Browse files
committed
Add missing styles
1 parent 957080c commit fb972a9

File tree

5 files changed

+11
-165
lines changed

5 files changed

+11
-165
lines changed

Diff for: integration-libs/opf/_index.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ $opf-components-allowlist: cx-opf-payment-method-details,
1313
cx-opf-checkout-review-card, cx-opf-checkout-terms-and-conditions-alert,
1414
cx-opf-error-modal, cx-opf-cta-element, cx-opf-google-pay, cx-opf-apple-pay,
1515
cx-opf-quick-buy-buttons, cx-opf-b2b-checkout-payment-type,
16-
cx-opf-b2b-checkout-review !default;
16+
cx-opf-b2b-checkout-review, cx-opf-b2b-checkout-delivery-address,
17+
cx-opf-b2b-checkout-cost-center !default;
1718

1819
$skipComponentStyles: () !default;
1920

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
@import './opf-b2b-checkout-payment-type';
22
@import './opf-b2b-checkout-review';
3+
@import './opf-b2b-checkout-delivery-address';
4+
@import './opf-b2b-checkout-cost-center';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%cx-opf-b2b-checkout-cost-center {
2+
@extend %cx-cost-center;
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%cx-opf-b2b-checkout-delivery-address {
2+
@extend %cx-delivery-address;
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,3 @@
11
%cx-opf-b2b-checkout-review {
2-
@include checkout-media-style();
3-
margin-top: 1.5rem;
4-
5-
@include media-breakpoint-down(md) {
6-
background-color: var(--cx-color-transparent);
7-
}
8-
9-
h3 {
10-
padding-bottom: 1rem;
11-
margin-bottom: 0;
12-
font-size: 1.15rem;
13-
}
14-
15-
cx-opf-checkout-billing-address-form,
16-
cx-opf-checkout-payments,
17-
.cx-opf-payment-wrapper,
18-
.cx-opf-terms-and-conditions {
19-
display: block;
20-
margin-bottom: 2rem;
21-
border: 1px solid #d3d6db;
22-
padding: 1.75rem 1.75rem;
23-
border-radius: 10px;
24-
background-color: #ffffff;
25-
}
26-
27-
.cx-card .cx-card-title {
28-
font-size: var(--cx-font-size, 1.125rem);
29-
line-height: var(--cx-line-height, 1.2222222222);
30-
font-weight: var(--cx-font-weight-normal);
31-
margin-bottom: 0.5rem;
32-
}
33-
34-
.cx-opf-terms-and-conditions {
35-
margin-bottom: 2rem;
36-
37-
.form-check,
38-
.form-group {
39-
margin-bottom: 0;
40-
}
41-
}
42-
43-
.cx-review-cart-item {
44-
padding: 0;
45-
}
46-
47-
.cx-review-cart-total {
48-
font-size: var(--cx-font-size, 1.125rem);
49-
font-weight: var(--cx-font-weight-bold);
50-
line-height: var(--cx-line-height, 1.2222222222);
51-
padding-top: 1rem;
52-
padding-bottom: 1.25rem;
53-
}
54-
55-
.cx-items-to-ship-label {
56-
display: flex;
57-
flex-direction: row;
58-
align-items: center;
59-
padding: 1rem 2rem;
60-
font-weight: var(--cx-font-weight-semi);
61-
height: 65px;
62-
background: #f1f1f1;
63-
64-
@include media-breakpoint-down(md) {
65-
background: #d3d6db;
66-
}
67-
}
68-
69-
.cx-shipping-and-delivery-info-cards {
70-
display: flex;
71-
gap: 1rem;
72-
margin-top: 1rem;
73-
flex-direction: row;
74-
75-
@include media-breakpoint-down(md) {
76-
flex-direction: column;
77-
}
78-
79-
.card-body {
80-
padding: 0;
81-
}
82-
83-
.cx-review-summary-card {
84-
display: flex;
85-
flex: 1;
86-
position: relative;
87-
border: 1px solid #d3d6db;
88-
border-radius: 10px;
89-
padding: 1.75rem;
90-
background-color: #ffffff;
91-
92-
button {
93-
position: absolute;
94-
top: 1.75rem;
95-
right: 1.75rem;
96-
color: var(--cx-color-primary);
97-
outline: none;
98-
border: none;
99-
background: none;
100-
padding: 0;
101-
cursor: pointer;
102-
margin: 0;
103-
104-
cx-icon {
105-
color: inherit;
106-
}
107-
}
108-
109-
cx-card {
110-
flex-grow: 1;
111-
padding: 0 2rem 0 0;
112-
}
113-
}
114-
115-
.cx-card-title {
116-
font-weight: var(--cx-font-weight-semi);
117-
}
118-
}
119-
120-
> section > cx-opf-checkout-terms-and-conditions-alert {
121-
display: none;
122-
@include media-breakpoint-down(md) {
123-
display: block;
124-
}
125-
}
126-
127-
.cx-opf-review-card-wrapper {
128-
display: flex;
129-
flex-wrap: wrap;
130-
gap: 2rem;
131-
margin-bottom: 2rem;
132-
133-
> *:last-child:nth-child(odd) {
134-
flex: 1 1 100%;
135-
}
136-
}
137-
138-
%edit-button-styles {
139-
position: absolute;
140-
top: 1.75rem;
141-
right: 1.75rem;
142-
color: var(--cx-color-primary);
143-
outline: none;
144-
border: none;
145-
background: none;
146-
padding: 0;
147-
cursor: pointer;
148-
margin: 0;
149-
150-
cx-icon {
151-
color: inherit;
152-
}
153-
}
154-
155-
cx-opf-checkout-billing-address-form {
156-
position: relative;
157-
158-
button {
159-
@extend %edit-button-styles;
160-
}
161-
162-
cx-card {
163-
padding: 0 2rem 0 0;
164-
}
165-
}
2+
@extend %cx-opf-checkout-payment-and-review;
1663
}

0 commit comments

Comments
 (0)