-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve checkout impl + UI. Added validation and data structure for p…
…ickup locations.
- Loading branch information
1 parent
685e69e
commit 0bbac9d
Showing
13 changed files
with
555 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 2 additions & 120 deletions
122
assets/js/blocks/checkout-pickup-location-select/slotfills/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,123 +1,5 @@ | ||
.wc-gzd-checkout-dhl { | ||
.wc-gzd-checkout-dhl-title { | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
.wc-gzd-shipments-pickup-location-delivery { | ||
h4 { | ||
font-size: 1em; | ||
|
||
.dhl-icon { | ||
width: 130px; | ||
height: auto; | ||
margin-left: auto; | ||
} | ||
} | ||
|
||
.wc-block-components-radio-control-accordion-option { | ||
position: relative; | ||
|
||
.wc-block-components-radio-control__option-layout { | ||
font-size: .875em; | ||
} | ||
|
||
.wc-block-components-radio-control-accordion-content { | ||
font-size: .875em; | ||
} | ||
|
||
.wc-block-components-radio-control__option { | ||
border-bottom: none; | ||
padding-left: 56px; | ||
padding-right: 16px; | ||
margin: 0; | ||
padding-bottom: 1em; | ||
padding-top: 1em; | ||
|
||
&::after { | ||
border-style: solid; | ||
border-width: 1px 1px 0; | ||
bottom: 0; | ||
content: ""; | ||
display: block; | ||
left: 0; | ||
opacity: .3; | ||
pointer-events: none; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
} | ||
|
||
.wc-block-components-radio-control__input { | ||
left: 16px; | ||
} | ||
|
||
&::after { | ||
border-width: 0; | ||
} | ||
} | ||
|
||
&::after { | ||
border-style: solid; | ||
border-width: 1px 1px 0; | ||
bottom: 0; | ||
content: ""; | ||
display: block; | ||
left: 0; | ||
opacity: .3; | ||
pointer-events: none; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
} | ||
|
||
&:last-child { | ||
&::after { | ||
border-width: 1px; | ||
} | ||
} | ||
} | ||
|
||
.wc-gzd-dhl-preferred-day-select { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
margin: 0; | ||
padding: 0; | ||
|
||
.wc-gzd-dhl-preferred-day { | ||
color: inherit; | ||
flex-basis: 10%; | ||
flex-grow: 1; | ||
text-align: center; | ||
padding: 10px 0 0; | ||
margin: 0 8px 8px 0; | ||
background-color: #e3e3e3; | ||
border: none; | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
|
||
.inner { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
padding: 5px 10px; | ||
font-size: 1em; | ||
background-color: #eef4f2; | ||
cursor: pointer; | ||
margin: 0; | ||
line-height: 1.8em; | ||
|
||
.day { | ||
font-size: 1.4em; | ||
} | ||
} | ||
|
||
&.active { | ||
.inner { | ||
background-color: #FFCC00; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.