Skip to content

Commit 47fcf1d

Browse files
author
Adem Demir
committed
add whole code of new version
1 parent 1d8006e commit 47fcf1d

File tree

179 files changed

+46960
-9258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+46960
-9258
lines changed

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
IE>=9
2+
last 4 version
3+
> 1%

.eslintignore

Whitespace-only changes.

.huskyrc.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const packageName = '@myparcel/checkout';
2+
3+
const preCommit = [
4+
`npm run postcss`,
5+
`npm update ${packageName}`,
6+
`npm run postinstall`,
7+
'git add package.json',
8+
'git add package-lock.json',
9+
'git add assets/js/myparcel.js',
10+
].join(' && ');
11+
12+
module.exports = {
13+
hooks: {
14+
'pre-commit': preCommit
15+
},
16+
};

assets/css/checkout-admin.css

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#order_data .order_data_column ._billing_street_name_field,
2+
#order_data .order_data_column ._billing_box_number_field,
3+
#order_data .order_data_column ._shipping_street_name_field,
4+
#order_data .order_data_column ._shipping_box_number_field {
5+
float: left;
6+
}
7+
8+
#order_data .order_data_column ._shipping_house_number_field,
9+
#order_data .order_data_column ._billing_house_number_field {
10+
float: right;
11+
}

assets/css/checkout.css

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* Hack to disable yellow bg color on filled fields and allow js to listen for it */
2+
3+
@-webkit-keyframes onAutoFillStart {
4+
0% {
5+
}
6+
100% {
7+
}
8+
}
9+
10+
@keyframes onAutoFillStart {
11+
0% {
12+
}
13+
100% {
14+
}
15+
}
16+
17+
input:-webkit-autofill {
18+
-webkit-animation-name: onAutoFillStart;
19+
animation-name: onAutoFillStart;
20+
-webkit-transition: background-color 50000s ease-in-out 0s;
21+
-o-transition: background-color 50000s ease-in-out 0s;
22+
transition: background-color 50000s ease-in-out 0s;
23+
}
24+
25+
/* End of hack */
26+
27+
#mypabe-load,
28+
#mypabe-delivery-date-text,
29+
#header-delivery-options-title,
30+
#mypabe-delivery-option-form,
31+
#mypabe-location-details,
32+
.mypabe-message-model,
33+
.woocommerce form .optional {
34+
display: none;
35+
}
36+
37+
.woocommerce-page form .form-row-third {
38+
float: left;
39+
width: 16%;
40+
overflow: visible;
41+
}
42+
43+
.woocommerce form .form-row-third {
44+
margin-right: 4%;
45+
}
46+
47+
.woocommerce form .form-row-third.first {
48+
width: 60%;
49+
}
50+
51+
.woocommerce-page form .form-row-third.last {
52+
margin-right: 0 !important;
53+
}
54+
55+
@media screen and (max-width: 450px) {
56+
.woocommerce-page form .form-row-third.first {
57+
width: 100%;
58+
}
59+
60+
.woocommerce-page form .form-row-third {
61+
width: 48%;
62+
}
63+
}
64+
65+
#billing_house_number::-webkit-outer-spin-button,
66+
#billing_house_number::-webkit-inner-spin-button,
67+
#shipping_house_number::-webkit-outer-spin-button,
68+
#shipping_house_number::-webkit-inner-spin-button {
69+
-webkit-appearance: none;
70+
margin: 0;
71+
}
72+
73+
#billing_house_number, #shipping_house_number {
74+
-moz-appearance: textfield;
75+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* Storefront preset */
2+
.woocommerce-myparcel__delivery-options > .myparcel-delivery-options {
3+
background-color: #fafafa;
4+
clear: both;
5+
margin-bottom: 1rem;
6+
padding: 1em 1.41575em;
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Twenty Nineteen preset */
2+
.woocommerce-myparcel__delivery-options > .myparcel-delivery-options {
3+
padding: 1rem;
4+
clear: both;
5+
background: #eee;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Twenty Seventeen preset */
2+
.woocommerce-myparcel__delivery-options > .myparcel-delivery-options label {
3+
font-weight: normal;
4+
}
5+
6+
.woocommerce-myparcel__delivery-options > .myparcel-delivery-options {
7+
border: 1px solid #bbb;
8+
border-radius: 3px;
9+
display: block;
10+
padding: 0.7em;
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* Twenty Sixteen preset */
2+
.woocommerce-myparcel__delivery-options > .myparcel-delivery-options {
3+
background: #ebe9eb;
4+
border-radius: 5px;
5+
padding: 1em;
6+
margin: 3px;
7+
}
8+
9+
.woocommerce-myparcel__delivery-options > .myparcel-delivery-options table {
10+
border: none;
11+
table-layout: auto;
12+
}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Order actions button styling */
2-
.widefat .column-order_actions .column-wc_actions a.button.postnl {
3-
float: left;
4-
padding: 1px 2px;
2+
.widefat .column-order_actions .column-wc_actions a.button.myparcel {
3+
float: left;
4+
padding: 1px 2px;
55
}

0 commit comments

Comments
 (0)